Changeset 141658 in webkit
- Timestamp:
- Feb 1, 2013 4:10:09 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r141656 r141658 1 2013-02-01 Benjamin Poulain <bpoulain@apple.com> 2 3 [WK2] Use light supplement names instead of static AtomicStrings 4 https://bugs.webkit.org/show_bug.cgi?id=108570 5 6 Reviewed by Anders Carlsson. 7 8 Since all the supplement names are just string literals and are all different, 9 we can just use their pointer as the key in the supplement hashmaps. 10 11 This is lighter and faster than using AtomicString. WebCore already moved to this 12 in Supplementable. 13 14 * NetworkProcess/NetworkProcess.h: 15 (WebKit::NetworkProcess::addSupplement): 16 (NetworkProcess): 17 * Shared/Authentication/AuthenticationManager.cpp: 18 (WebKit::AuthenticationManager::supplementName): 19 * Shared/Authentication/AuthenticationManager.h: 20 (AuthenticationManager): 21 * Shared/Network/CustomProtocols/CustomProtocolManager.h: 22 (CustomProtocolManager): 23 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm: 24 (WebKit::CustomProtocolManager::supplementName): 25 * UIProcess/Notifications/WebNotificationManagerProxy.cpp: 26 (WebKit::WebNotificationManagerProxy::supplementName): 27 * UIProcess/Notifications/WebNotificationManagerProxy.h: 28 (WebNotificationManagerProxy): 29 * UIProcess/WebApplicationCacheManagerProxy.cpp: 30 (WebKit::WebApplicationCacheManagerProxy::supplementName): 31 * UIProcess/WebApplicationCacheManagerProxy.h: 32 (WebApplicationCacheManagerProxy): 33 * UIProcess/WebContext.h: 34 (WebContext): 35 * UIProcess/WebCookieManagerProxy.cpp: 36 (WebKit::WebCookieManagerProxy::supplementName): 37 * UIProcess/WebCookieManagerProxy.h: 38 (WebCookieManagerProxy): 39 * UIProcess/WebDatabaseManagerProxy.cpp: 40 (WebKit::WebDatabaseManagerProxy::supplementName): 41 * UIProcess/WebDatabaseManagerProxy.h: 42 (WebDatabaseManagerProxy): 43 * UIProcess/WebGeolocationManagerProxy.cpp: 44 (WebKit::WebGeolocationManagerProxy::supplementName): 45 * UIProcess/WebGeolocationManagerProxy.h: 46 (WebGeolocationManagerProxy): 47 * UIProcess/WebKeyValueStorageManagerProxy.cpp: 48 (WebKit::WebKeyValueStorageManagerProxy::supplementName): 49 * UIProcess/WebKeyValueStorageManagerProxy.h: 50 (WebKeyValueStorageManagerProxy): 51 * UIProcess/WebMediaCacheManagerProxy.cpp: 52 (WebKit::WebMediaCacheManagerProxy::supplementName): 53 * UIProcess/WebMediaCacheManagerProxy.h: 54 (WebMediaCacheManagerProxy): 55 * UIProcess/WebResourceCacheManagerProxy.cpp: 56 (WebKit::WebResourceCacheManagerProxy::supplementName): 57 * UIProcess/WebResourceCacheManagerProxy.h: 58 (WebResourceCacheManagerProxy): 59 * UIProcess/soup/WebSoupRequestManagerProxy.cpp: 60 (WebKit::WebSoupRequestManagerProxy::supplementName): 61 * UIProcess/soup/WebSoupRequestManagerProxy.h: 62 (WebSoupRequestManagerProxy): 63 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp: 64 (WebKit::WebApplicationCacheManager::supplementName): 65 * WebProcess/ApplicationCache/WebApplicationCacheManager.h: 66 (WebApplicationCacheManager): 67 * WebProcess/Cookies/WebCookieManager.cpp: 68 (WebKit::WebCookieManager::supplementName): 69 * WebProcess/Cookies/WebCookieManager.h: 70 (WebCookieManager): 71 * WebProcess/Geolocation/WebGeolocationManager.cpp: 72 (WebKit::WebGeolocationManager::supplementName): 73 * WebProcess/Geolocation/WebGeolocationManager.h: 74 (WebGeolocationManager): 75 * WebProcess/MediaCache/WebMediaCacheManager.cpp: 76 (WebKit::WebMediaCacheManager::supplementName): 77 * WebProcess/MediaCache/WebMediaCacheManager.h: 78 (WebMediaCacheManager): 79 * WebProcess/Notifications/WebNotificationManager.cpp: 80 (WebKit::WebNotificationManager::supplementName): 81 * WebProcess/Notifications/WebNotificationManager.h: 82 (WebNotificationManager): 83 * WebProcess/ResourceCache/WebResourceCacheManager.cpp: 84 (WebKit::WebResourceCacheManager::supplementName): 85 * WebProcess/ResourceCache/WebResourceCacheManager.h: 86 (WebResourceCacheManager): 87 * WebProcess/Storage/WebKeyValueStorageManager.cpp: 88 (WebKit::WebKeyValueStorageManager::supplementName): 89 * WebProcess/Storage/WebKeyValueStorageManager.h: 90 (WebKeyValueStorageManager): 91 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp: 92 (WebKit::WebDatabaseManager::supplementName): 93 * WebProcess/WebCoreSupport/WebDatabaseManager.h: 94 (WebDatabaseManager): 95 * WebProcess/WebProcess.h: 96 (WebKit::WebProcess::addSupplement): 97 (WebProcess): 98 1 99 2013-02-01 Benjamin Poulain <bpoulain@apple.com> 2 100 -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 62 62 void addSupplement() 63 63 { 64 m_supplements.add(T::supplementName(), new T(this));64 m_supplements.add(T::supplementName(), adoptPtr<NetworkProcessSupplement>(new T(this))); 65 65 } 66 66 … … 120 120 CacheModel m_cacheModel; 121 121 122 typedef HashMap< AtomicString, NetworkProcessSupplement*> NetworkProcessSupplementMap;122 typedef HashMap<const char*, OwnPtr<NetworkProcessSupplement>, PtrHash<const char*> > NetworkProcessSupplementMap; 123 123 NetworkProcessSupplementMap m_supplements; 124 124 }; -
trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 53 53 } 54 54 55 const AtomicString&AuthenticationManager::supplementName()55 const char* AuthenticationManager::supplementName() 56 56 { 57 DEFINE_STATIC_LOCAL(AtomicString, name, ("AuthenticationManager", AtomicString::ConstructFromLiteral)); 58 return name; 57 return "AuthenticationManager"; 59 58 } 60 59 -
trunk/Source/WebKit2/Shared/Authentication/AuthenticationManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 51 51 explicit AuthenticationManager(ChildProcess*); 52 52 53 static const AtomicString&supplementName();53 static const char* supplementName(); 54 54 55 55 // Called for resources in the WebProcess (NetworkProcess disabled) -
trunk/Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 61 61 explicit CustomProtocolManager(ChildProcess*); 62 62 63 static const AtomicString&supplementName();63 static const char* supplementName(); 64 64 65 65 ChildProcess* childProcess() const { return m_childProcess; } -
trunk/Source/WebKit2/Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm
r141361 r141658 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 110 110 namespace WebKit { 111 111 112 const AtomicString& CustomProtocolManager::supplementName() 113 { 114 DEFINE_STATIC_LOCAL(AtomicString, name, ("CustomProtocolManager", AtomicString::ConstructFromLiteral)); 115 return name; 112 const const char* CustomProtocolManager::supplementName() 113 { 114 return "CustomProtocolManager"; 116 115 } 117 116 -
trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 41 41 namespace WebKit { 42 42 43 const AtomicString& WebNotificationManagerProxy::supplementName() 44 { 45 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebNotificationManagerProxy", AtomicString::ConstructFromLiteral)); 46 return name; 43 const char* WebNotificationManagerProxy::supplementName() 44 { 45 return "WebNotificationManagerProxy"; 47 46 } 48 47 -
trunk/Source/WebKit2/UIProcess/Notifications/WebNotificationManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 48 48 static const Type APIType = TypeNotificationManager; 49 49 50 static const AtomicString&supplementName();50 static const char* supplementName(); 51 51 52 52 static PassRefPtr<WebNotificationManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 namespace WebKit { 36 36 37 const AtomicString&WebApplicationCacheManagerProxy::supplementName()37 const char* WebApplicationCacheManagerProxy::supplementName() 38 38 { 39 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebApplicationCacheManagerProxy", AtomicString::ConstructFromLiteral)); 40 return name; 39 return "WebApplicationCacheManagerProxy"; 41 40 } 42 41 -
trunk/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.h
r141472 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 51 51 static const Type APIType = TypeApplicationCacheManager; 52 52 53 static const AtomicString&supplementName();53 static const char* supplementName(); 54 54 55 55 static PassRefPtr<WebApplicationCacheManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebContext.h
r141510 r141658 1 1 /* 2 * Copyright (C) 2010, 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 425 425 RefPtr<StorageManager> m_storageManager; 426 426 427 typedef HashMap< AtomicString, RefPtr<WebContextSupplement> > WebContextSupplementMap;427 typedef HashMap<const char*, RefPtr<WebContextSupplement>, PtrHash<const char*> > WebContextSupplementMap; 428 428 WebContextSupplementMap m_supplements; 429 429 -
trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 namespace WebKit { 36 36 37 const AtomicString&WebCookieManagerProxy::supplementName()37 const char* WebCookieManagerProxy::supplementName() 38 38 { 39 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebCookieManagerProxy", AtomicString::ConstructFromLiteral)); 40 return name; 39 return "WebCookieManagerProxy"; 41 40 } 42 41 -
trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.h
r141472 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 57 57 static const Type APIType = TypeCookieManager; 58 58 59 static const AtomicString&supplementName();59 static const char* supplementName(); 60 60 61 61 static PassRefPtr<WebCookieManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 40 40 namespace WebKit { 41 41 42 const AtomicString& WebDatabaseManagerProxy::supplementName() 43 { 44 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebDatabaseManagerProxy", AtomicString::ConstructFromLiteral)); 45 return name; 42 const char* WebDatabaseManagerProxy::supplementName() 43 { 44 return "WebDatabaseManagerProxy"; 46 45 } 47 46 -
trunk/Source/WebKit2/UIProcess/WebDatabaseManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 51 51 static const Type APIType = TypeDatabaseManager; 52 52 53 static const AtomicString&supplementName();53 static const char* supplementName(); 54 54 55 55 static PassRefPtr<WebDatabaseManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebGeolocationManagerProxy.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 33 33 namespace WebKit { 34 34 35 const AtomicString&WebGeolocationManagerProxy::supplementName()35 const char* WebGeolocationManagerProxy::supplementName() 36 36 { 37 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebGeolocationManagerProxy", AtomicString::ConstructFromLiteral)); 38 return name; 37 return "WebGeolocationManagerProxy"; 39 38 } 40 39 -
trunk/Source/WebKit2/UIProcess/WebGeolocationManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 42 42 static const Type APIType = TypeGeolocationManager; 43 43 44 static const AtomicString&supplementName();44 static const char* supplementName(); 45 45 46 46 static PassRefPtr<WebGeolocationManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 namespace WebKit { 36 36 37 const AtomicString&WebKeyValueStorageManagerProxy::supplementName()37 const char* WebKeyValueStorageManagerProxy::supplementName() 38 38 { 39 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebKeyValueStorageManagerProxy", AtomicString::ConstructFromLiteral)); 40 return name; 39 return "WebKeyValueStorageManagerProxy"; 41 40 } 42 41 -
trunk/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 49 49 static const Type APIType = TypeKeyValueStorageManager; 50 50 51 static const AtomicString&supplementName();51 static const char* supplementName(); 52 52 53 53 static PassRefPtr<WebKeyValueStorageManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebMediaCacheManagerProxy.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 34 34 namespace WebKit { 35 35 36 const AtomicString&WebMediaCacheManagerProxy::supplementName()36 const char* WebMediaCacheManagerProxy::supplementName() 37 37 { 38 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebMediaCacheManagerProxy", AtomicString::ConstructFromLiteral)); 39 return name; 38 return "WebMediaCacheManagerProxy"; 40 39 } 41 40 -
trunk/Source/WebKit2/UIProcess/WebMediaCacheManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 47 47 static const Type APIType = TypeMediaCacheManager; 48 48 49 static const AtomicString&supplementName();49 static const char* supplementName(); 50 50 51 51 static PassRefPtr<WebMediaCacheManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/WebResourceCacheManagerProxy.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 39 39 namespace WebKit { 40 40 41 const AtomicString&WebResourceCacheManagerProxy::supplementName()41 const char* WebResourceCacheManagerProxy::supplementName() 42 42 { 43 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebResourceCacheManagerProxy", AtomicString::ConstructFromLiteral)); 44 return name; 43 return "WebResourceCacheManagerProxy"; 45 44 } 46 45 -
trunk/Source/WebKit2/UIProcess/WebResourceCacheManagerProxy.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 49 49 static const Type APIType = TypeCacheManager; 50 50 51 static const AtomicString&supplementName();51 static const char* supplementName(); 52 52 53 53 static PassRefPtr<WebResourceCacheManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/UIProcess/soup/WebSoupRequestManagerProxy.cpp
r140656 r141658 1 1 /* 2 2 * Copyright (C) 2012 Igalia S.L. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * This library is free software; you can redistribute it and/or … … 28 29 namespace WebKit { 29 30 30 const AtomicString&WebSoupRequestManagerProxy::supplementName()31 const char* WebSoupRequestManagerProxy::supplementName() 31 32 { 32 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebSoupRequestManagerProxy", AtomicString::ConstructFromLiteral)); 33 return name; 33 return "WebSoupRequestManagerProxy"; 34 34 } 35 35 -
trunk/Source/WebKit2/UIProcess/soup/WebSoupRequestManagerProxy.h
r141366 r141658 1 1 /* 2 2 * Copyright (C) 2012 Igalia S.L. 3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 4 * 4 5 * This library is free software; you can redistribute it and/or … … 38 39 static const Type APIType = TypeSoupRequestManager; 39 40 40 static const AtomicString&supplementName();41 static const char* supplementName(); 41 42 42 43 static PassRefPtr<WebSoupRequestManagerProxy> create(WebContext*); -
trunk/Source/WebKit2/WebProcess/ApplicationCache/WebApplicationCacheManager.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 41 41 namespace WebKit { 42 42 43 const AtomicString&WebApplicationCacheManager::supplementName()43 const char* WebApplicationCacheManager::supplementName() 44 44 { 45 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebApplicationCacheManager", AtomicString::ConstructFromLiteral)); 46 return name; 45 return "WebApplicationCacheManager"; 47 46 } 48 47 -
trunk/Source/WebKit2/WebProcess/ApplicationCache/WebApplicationCacheManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 42 42 WebApplicationCacheManager(ChildProcess*); 43 43 44 static const AtomicString&supplementName();44 static const char* supplementName(); 45 45 46 46 void deleteAllEntries(); -
trunk/Source/WebKit2/WebProcess/Cookies/WebCookieManager.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 44 44 static WebCookieManager* sharedCookieManager; 45 45 46 const AtomicString&WebCookieManager::supplementName()46 const char* WebCookieManager::supplementName() 47 47 { 48 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebCookieManager", AtomicString::ConstructFromLiteral)); 49 return name; 48 return "WebCookieManager"; 50 49 } 51 50 -
trunk/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 48 48 WebCookieManager(ChildProcess*); 49 49 50 static const AtomicString&supplementName();50 static const char* supplementName(); 51 51 52 52 void setHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy); -
trunk/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 41 41 namespace WebKit { 42 42 43 const AtomicString&WebGeolocationManager::supplementName()43 const char* WebGeolocationManager::supplementName() 44 44 { 45 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebGeolocationManager", AtomicString::ConstructFromLiteral)); 46 return name; 45 return "WebGeolocationManager"; 47 46 } 48 47 -
trunk/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 50 50 ~WebGeolocationManager(); 51 51 52 static const AtomicString&supplementName();52 static const char* supplementName(); 53 53 54 54 void registerWebPage(WebPage*); -
trunk/Source/WebKit2/WebProcess/MediaCache/WebMediaCacheManager.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 36 36 namespace WebKit { 37 37 38 const AtomicString&WebMediaCacheManager::supplementName()38 const char* WebMediaCacheManager::supplementName() 39 39 { 40 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebMediaCacheManager", AtomicString::ConstructFromLiteral)); 41 return name; 40 return "WebMediaCacheManager"; 42 41 } 43 42 -
trunk/Source/WebKit2/WebProcess/MediaCache/WebMediaCacheManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 42 42 explicit WebMediaCacheManager(WebProcess*); 43 43 44 static const AtomicString&supplementName();44 static const char* supplementName(); 45 45 46 46 private: -
trunk/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 57 57 #endif 58 58 59 const AtomicString& WebNotificationManager::supplementName() 60 { 61 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebNotificationManager", AtomicString::ConstructFromLiteral)); 62 return name; 59 const char* WebNotificationManager::supplementName() 60 { 61 return "WebNotificationManager"; 63 62 } 64 63 -
trunk/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 52 52 ~WebNotificationManager(); 53 53 54 static const AtomicString&supplementName();54 static const char* supplementName(); 55 55 56 56 bool show(WebCore::Notification*, WebPage*); -
trunk/Source/WebKit2/WebProcess/ResourceCache/WebResourceCacheManager.cpp
r140607 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 41 41 namespace WebKit { 42 42 43 const AtomicString&WebResourceCacheManager::supplementName()43 const char* WebResourceCacheManager::supplementName() 44 44 { 45 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebResourceCacheManager", AtomicString::ConstructFromLiteral)); 46 return name; 45 return "WebResourceCacheManager"; 47 46 } 48 47 -
trunk/Source/WebKit2/WebProcess/ResourceCache/WebResourceCacheManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 44 44 WebResourceCacheManager(WebProcess*); 45 45 46 static const AtomicString&supplementName();46 static const char* supplementName(); 47 47 48 48 private: -
trunk/Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.cpp
r140711 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 40 40 namespace WebKit { 41 41 42 const AtomicString&WebKeyValueStorageManager::supplementName()42 const char* WebKeyValueStorageManager::supplementName() 43 43 { 44 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebKeyValueStorageManager", AtomicString::ConstructFromLiteral)); 45 return name; 44 return "WebKeyValueStorageManager"; 46 45 } 47 46 -
trunk/Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2011 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 44 44 explicit WebKeyValueStorageManager(WebProcess*); 45 45 46 static const AtomicString&supplementName();46 static const char* supplementName(); 47 47 48 48 const String& localStorageDirectory() const { return m_localStorageDirectory; } -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.cpp
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 43 43 namespace WebKit { 44 44 45 const AtomicString&WebDatabaseManager::supplementName()45 const char* WebDatabaseManager::supplementName() 46 46 { 47 DEFINE_STATIC_LOCAL(AtomicString, name, ("WebDatabaseManager", AtomicString::ConstructFromLiteral)); 48 return name; 47 return "WebDatabaseManager"; 49 48 } 50 49 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDatabaseManager.h
r141361 r141658 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 44 44 explicit WebDatabaseManager(WebProcess*); 45 45 46 static const AtomicString&supplementName();46 static const char* supplementName(); 47 47 48 48 void setQuotaForOrigin(const String& originIdentifier, unsigned long long quota) const; -
trunk/Source/WebKit2/WebProcess/WebProcess.h
r141448 r141658 110 110 void addSupplement() 111 111 { 112 m_supplements.add(T::supplementName(), new T(this));112 m_supplements.add(T::supplementName(), adoptPtr<WebProcessSupplement>(new T(this))); 113 113 } 114 114 … … 319 319 HashMap<uint64_t, WebFrame*> m_frameMap; 320 320 321 typedef HashMap< AtomicString, WebProcessSupplement*> WebProcessSupplementMap;321 typedef HashMap<const char*, OwnPtr<WebProcessSupplement>, PtrHash<const char*> > WebProcessSupplementMap; 322 322 WebProcessSupplementMap m_supplements; 323 323
Note: See TracChangeset
for help on using the changeset viewer.