Changeset 80145 in webkit
- Timestamp:
- Mar 2, 2011 10:44:50 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r80144 r80145 1 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Part of WebKit2: Need a way to send notifications to client when cookies change 6 https://bugs.webkit.org/show_bug.cgi?id=55427 7 <rdar://problem/9056027> 8 9 Add functions on CookieStorage that allow listening for changes in cookies. When 10 the cookies are changed, they call through to CookiesStrategy::notifyCookiesChanged. 11 12 No change in behavior requiring tests. 13 14 * platform/CookiesStrategy.h: Added. 15 (WebCore::CookiesStrategy::~CookiesStrategy): 16 17 * platform/PlatformStrategies.h: 18 (WebCore::PlatformStrategies::cookiesStrategy): 19 (WebCore::PlatformStrategies::PlatformStrategies): 20 21 * platform/network/CookieStorage.h: Add new function declarations. 22 23 * platform/network/cf/CookieStorageCFNet.cpp: 24 (WebCore::notifyCookiesChangedOnMainThread): Call through to CookiesStrategy::notifyCookiesChanged. 25 (WebCore::notifyCookiesChanged): Call notifyCookiesChangedOnMainThread on the main thread. 26 (WebCore::beginObservingCookieChanges): Set up cookie observers on the loader run loop. 27 (WebCore::finishObservingCookieChanges): Remove our cookie observers from the loader run loop. 28 29 * platform/network/mac/CookieStorageMac.mm: 30 (-[CookieStorageObjCAdapter notifyCookiesChangedOnMainThread]): Call through to CookiesStrategy::notifyCookiesChanged. 31 (-[CookieStorageObjCAdapter cookiesChangedNotificationHandler:]): Call notifyCookiesChangedOnMainThread on 32 the main thread. 33 (-[CookieStorageObjCAdapter registerForCookieChangeNotifications]): Set up the observer for cookie change notifications. 34 (-[CookieStorageObjCAdapter unregisterForCookieChangeNotifications]): Remove the observer for cookie change notifications. 35 (WebCore::beginObservingCookieChanges): Create our CookieStorageObjCAdapter, and call registerForCookieChangeNotifications. 36 (WebCore::finishObservingCookieChanges): Call unregisterForCookieChangeNotifications. 37 38 Add new file. 39 * WebCore.vcproj/WebCore.vcproj: 40 * WebCore.xcodeproj/project.pbxproj: Set role on files we need to include in WebKit to private. 41 1 42 2011-03-02 Sergey Glazunov <serg.glazunov@gmail.com> 2 43 -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r80102 r80145 25451 25451 </File> 25452 25452 <File 25453 RelativePath="..\platform\CookiesStrategy.h" 25454 > 25455 </File> 25456 <File 25453 25457 RelativePath="..\platform\CrossThreadCopier.cpp" 25454 25458 > -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r80096 r80145 806 806 3390CA560FFC157B00921962 /* NotificationCenter.h in Headers */ = {isa = PBXBuildFile; fileRef = 3390CA520FFC157B00921962 /* NotificationCenter.h */; }; 807 807 3390CA580FFC157B00921962 /* NotificationContents.h in Headers */ = {isa = PBXBuildFile; fileRef = 3390CA540FFC157B00921962 /* NotificationContents.h */; }; 808 339B5B63131DAA3200F48D02 /* CookiesStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = 339B5B62131DAA3200F48D02 /* CookiesStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; }; 808 809 33C0CCD4112C5E6200CE057D /* SecureTextInput.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 33C0CCD2112C5E6200CE057D /* SecureTextInput.cpp */; }; 809 810 33C0CCD5112C5E6200CE057D /* SecureTextInput.h in Headers */ = {isa = PBXBuildFile; fileRef = 33C0CCD3112C5E6200CE057D /* SecureTextInput.h */; }; 811 33D0212D131DB37B004091A8 /* CookieStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = E13F01EA1270E10D00DFBA71 /* CookieStorage.h */; settings = {ATTRIBUTES = (Private, ); }; }; 810 812 371A67CB11C6C7DB00047B8B /* HyphenationCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 371A67CA11C6C7DB00047B8B /* HyphenationCF.cpp */; }; 811 813 371F4F400D25B9AF00ECE0D5 /* FontData.h in Headers */ = {isa = PBXBuildFile; fileRef = 371F4F3E0D25B9AF00ECE0D5 /* FontData.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 7172 7174 3390CA530FFC157B00921962 /* NotificationCenter.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = NotificationCenter.idl; path = notifications/NotificationCenter.idl; sourceTree = "<group>"; }; 7173 7175 3390CA540FFC157B00921962 /* NotificationContents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NotificationContents.h; path = notifications/NotificationContents.h; sourceTree = "<group>"; }; 7176 339B5B62131DAA3200F48D02 /* CookiesStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CookiesStrategy.h; sourceTree = "<group>"; }; 7174 7177 33C0CCD2112C5E6200CE057D /* SecureTextInput.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SecureTextInput.cpp; sourceTree = "<group>"; }; 7175 7178 33C0CCD3112C5E6200CE057D /* SecureTextInput.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecureTextInput.h; sourceTree = "<group>"; }; … … 18285 18288 D8B6152E1032495100C8554A /* Cookie.h */, 18286 18289 9352088109BD45E900F2038D /* CookieJar.h */, 18290 339B5B62131DAA3200F48D02 /* CookiesStrategy.h */, 18287 18291 2E4346560F546A9900B0F1BA /* CrossThreadCopier.cpp */, 18288 18292 2E4346570F546A9900B0F1BA /* CrossThreadCopier.h */, … … 22493 22497 E1BE512E0CF6C512002EA959 /* XSLTUnicodeSort.h in Headers */, 22494 22498 977E2E0F12F0FC9C00C13379 /* XSSFilter.h in Headers */, 22499 339B5B63131DAA3200F48D02 /* CookiesStrategy.h in Headers */, 22500 33D0212D131DB37B004091A8 /* CookieStorage.h in Headers */, 22495 22501 ); 22496 22502 runOnlyForDeploymentPostprocessing = 0; -
trunk/Source/WebCore/platform/PlatformStrategies.h
r64518 r80145 31 31 namespace WebCore { 32 32 33 class CookiesStrategy; 33 34 class PluginStrategy; 34 35 class LocalizationStrategy; … … 37 38 class PlatformStrategies { 38 39 public: 40 CookiesStrategy* cookiesStrategy() 41 { 42 if (!m_cookiesStrategy) 43 m_cookiesStrategy = createCookiesStrategy(); 44 return m_cookiesStrategy; 45 } 46 39 47 PluginStrategy* pluginStrategy() 40 48 { … … 60 68 protected: 61 69 PlatformStrategies() 62 : m_pluginStrategy(0) 70 : m_cookiesStrategy(0) 71 , m_pluginStrategy(0) 63 72 , m_localizationStrategy(0) 64 73 , m_visitedLinkStrategy(0) … … 71 80 72 81 private: 82 virtual CookiesStrategy* createCookiesStrategy() = 0; 73 83 virtual PluginStrategy* createPluginStrategy() = 0; 74 84 virtual LocalizationStrategy* createLocalizationStrategy() = 0; 75 85 virtual VisitedLinkStrategy* createVisitedLinkStrategy() = 0; 76 86 87 CookiesStrategy* m_cookiesStrategy; 77 88 PluginStrategy* m_pluginStrategy; 78 89 LocalizationStrategy* m_localizationStrategy; -
trunk/Source/WebCore/platform/network/CookieStorage.h
r70400 r80145 30 30 31 31 void setCookieStoragePrivateBrowsingEnabled(bool); 32 void startObservingCookieChanges(); 33 void stopObservingCookieChanges(); 32 34 33 35 } -
trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp
r79261 r80145 29 29 #if USE(CFNETWORK) 30 30 31 #include "LoaderRunLoopCF.h" 31 32 #include <CFNetwork/CFHTTPCookiesPriv.h> 32 33 #include <WebKitSystemInterface/WebKitSystemInterface.h> 33 34 #include <wtf/MainThread.h> 34 35 #include <wtf/RetainPtr.h> 36 37 #if USE(PLATFORM_STRATEGIES) 38 #include "CookiesStrategy.h" 39 #include "PlatformStrategies.h" 40 #endif 35 41 36 42 namespace WebCore { … … 71 77 } 72 78 79 static void notifyCookiesChangedOnMainThread(void* context) 80 { 81 ASSERT(isMainThread()); 82 83 #if USE(PLATFORM_STRATEGIES) 84 platformStrategies()->cookiesStrategy()->notifyCookiesChanged(); 85 #endif 86 } 87 88 static void notifyCookiesChanged(CFHTTPCookieStorageRef inStorage, void *context) 89 { 90 callOnMainThread(notifyCookiesChangedOnMainThread, 0); 91 } 92 93 static inline CFRunLoopRef cookieStorageObserverRunLoop() 94 { 95 // We're using the loader run loop because we need a CFRunLoop to 96 // call the CFNetwork cookie storage APIs with. Re-using the loader 97 // run loop is less overhead than starting a new thread to just listen 98 // for changes in cookies. 99 100 // FIXME: The loaderRunLoop function name should be a little more generic. 101 return loaderRunLoop(); 102 } 103 104 void beginObservingCookieChanges() 105 { 106 ASSERT(isMainThread()); 107 108 CFRunLoopRef runLoop = cookieStorageObserverRunLoop(); 109 ASSERT(runLoop); 110 111 CFHTTPCookieStorageRef cookieStorage = currentCookieStorage(); 112 ASSERT(cookieStorage); 113 114 CFHTTPCookieStorageScheduleWithRunLoop(cookieStorage, runLoop, kCFRunLoopCommonModes); 115 CFHTTPCookieStorageAddObserver(cookieStorage, runLoop, kCFRunLoopDefaultMode, notifyCookiesChanged, 0); 116 } 117 118 void finishObservingCookieChanges() 119 { 120 ASSERT(isMainThread()); 121 122 CFRunLoopRef runLoop = cookieStorageObserverRunLoop(); 123 ASSERT(runLoop); 124 125 CFHTTPCookieStorageRef cookieStorage = currentCookieStorage(); 126 ASSERT(cookieStorage); 127 128 CFHTTPCookieStorageRemoveObserver(cookieStorage, runLoop, kCFRunLoopDefaultMode, notifyCookiesChanged, 0); 129 CFHTTPCookieStorageUnscheduleFromRunLoop(cookieStorage, runLoop, kCFRunLoopCommonModes); 130 } 131 73 132 } // namespace WebCore 74 133 -
trunk/Source/WebCore/platform/network/mac/CookieStorageMac.mm
r70400 r80145 28 28 29 29 #import "WebCoreSystemInterface.h" 30 #import <wtf/RetainPtr.h> 31 #import <wtf/UnusedParam.h> 32 33 #if USE(PLATFORM_STRATEGIES) 34 #include "CookiesStrategy.h" 35 #include "PlatformStrategies.h" 36 #endif 37 38 using namespace WebCore; 39 40 @interface CookieStorageObjCAdapter : NSObject 41 -(void)notifyCookiesChangedOnMainThread; 42 -(void)cookiesChangedNotificationHandler:(NSNotification *)notification; 43 -(void)startListeningForCookieChangeNotifications; 44 -(void)stopListeningForCookieChangeNotifications; 45 @end 46 47 @implementation CookieStorageObjCAdapter 48 49 -(void)notifyCookiesChangedOnMainThread 50 { 51 #if USE(PLATFORM_STRATEGIES) 52 platformStrategies()->cookiesStrategy()->notifyCookiesChanged(); 53 #endif 54 } 55 56 -(void)cookiesChangedNotificationHandler:(NSNotification *)notification 57 { 58 UNUSED_PARAM(notification); 59 60 [self performSelectorOnMainThread:@selector(notifyCookiesChangedOnMainThread) withObject:nil waitUntilDone:FALSE]; 61 } 62 63 -(void)startListeningForCookieChangeNotifications 64 { 65 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cookiesChangedNotificationHandler:) name:NSHTTPCookieManagerCookiesChangedNotification object:[NSHTTPCookieStorage sharedHTTPCookieStorage]]; 66 } 67 68 -(void)stopListeningForCookieChangeNotifications 69 { 70 [[NSNotificationCenter defaultCenter] removeObserver:self name:NSHTTPCookieManagerCookiesChangedNotification object:nil]; 71 } 72 73 @end 30 74 31 75 namespace WebCore { … … 36 80 } 37 81 82 static CookieStorageObjCAdapter *cookieStorageAdapter; 83 84 void startObservingCookieChanges() 85 { 86 if (!cookieStorageAdapter) 87 cookieStorageAdapter = [[CookieStorageObjCAdapter alloc] init]; 88 [cookieStorageAdapter startListeningForCookieChangeNotifications]; 38 89 } 90 91 void stopObservingCookieChanges() 92 { 93 ASSERT(cookieStorageAdapter); 94 [cookieStorageAdapter stopListeningForCookieChangeNotifications]; 95 } 96 97 } -
trunk/Source/WebKit/mac/ChangeLog
r80136 r80145 1 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Part of WebKit2: Need a way to send notifications to client when cookies change 6 https://bugs.webkit.org/show_bug.cgi?id=55427 7 <rdar://problem/9056027> 8 9 Add stubs for CookiesStrategy on Mac WebKit1. 10 11 * WebCoreSupport/WebPlatformStrategies.h: 12 * WebCoreSupport/WebPlatformStrategies.mm: 13 (WebPlatformStrategies::createCookiesStrategy): 14 (WebPlatformStrategies::notifyCookiesChanged): 15 1 16 2011-03-01 Philippe Normand <pnormand@igalia.com> 2 17 -
trunk/Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.h
r78842 r80145 27 27 #define WebPlatformStrategies_h 28 28 29 #include <WebCore/CookiesStrategy.h> 29 30 #include <WebCore/PlatformStrategies.h> 30 31 #include <WebCore/PluginStrategy.h> … … 32 33 #include <WebCore/VisitedLinkStrategy.h> 33 34 34 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore:: PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy {35 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy { 35 36 public: 36 37 static void initialize(); … … 40 41 41 42 // WebCore::PlatformStrategies 43 virtual WebCore::CookiesStrategy* createCookiesStrategy(); 42 44 virtual WebCore::PluginStrategy* createPluginStrategy(); 43 45 virtual WebCore::LocalizationStrategy* createLocalizationStrategy(); 44 46 virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy(); 47 48 // WebCore::CookiesStrategy 49 virtual void notifyCookiesChanged(); 45 50 46 51 // WebCore::PluginStrategy -
trunk/Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.mm
r80014 r80145 50 50 } 51 51 52 // PluginStrategy 52 CookiesStrategy* WebPlatformStrategies::createCookiesStrategy() 53 { 54 return this; 55 } 53 56 54 57 PluginStrategy* WebPlatformStrategies::createPluginStrategy() … … 65 68 { 66 69 return this; 70 } 71 72 void WebPlatformStrategies::notifyCookiesChanged() 73 { 67 74 } 68 75 -
trunk/Source/WebKit/qt/ChangeLog
r80077 r80145 1 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Part of WebKit2: Need a way to send notifications to client when cookies change 6 https://bugs.webkit.org/show_bug.cgi?id=55427 7 <rdar://problem/9056027> 8 9 Add stubs for CookiesStrategy on Qt WebKit1. 10 11 * WebCoreSupport/WebPlatformStrategies.cpp: 12 (WebPlatformStrategies::createCookiesStrategy): 13 (WebPlatformStrategies::notifyCookiesChanged): 14 * WebCoreSupport/WebPlatformStrategies.h: 15 1 16 2011-03-01 Joseph Pecoraro <joepeck@webkit.org> 2 17 -
trunk/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
r78842 r80145 58 58 59 59 60 // PluginStrategy 60 CookiesStrategy* WebPlatformStrategies::createCookiesStrategy() 61 { 62 return this; 63 } 61 64 62 65 PluginStrategy* WebPlatformStrategies::createPluginStrategy() … … 73 76 { 74 77 return this; 78 } 79 80 void WebPlatformStrategies::notifyCookiesChanged() 81 { 75 82 } 76 83 -
trunk/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
r78842 r80145 29 29 #define WebPlatformStrategies_h 30 30 31 #include <CookiesStrategy.h> 31 32 #include <LocalizationStrategy.h> 32 33 #include <PlatformStrategies.h> … … 38 39 } 39 40 40 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore:: PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy {41 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy { 41 42 public: 42 43 static void initialize(); … … 46 47 47 48 // WebCore::PlatformStrategies 49 virtual WebCore::CookiesStrategy* createCookiesStrategy(); 48 50 virtual WebCore::PluginStrategy* createPluginStrategy(); 49 51 virtual WebCore::LocalizationStrategy* createLocalizationStrategy(); 50 52 virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy(); 53 54 // WebCore::CookiesStrategy 55 virtual void notifyCookiesChanged(); 51 56 52 57 // WebCore::PluginStrategy -
trunk/Source/WebKit/win/ChangeLog
r79953 r80145 1 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Part of WebKit2: Need a way to send notifications to client when cookies change 6 https://bugs.webkit.org/show_bug.cgi?id=55427 7 <rdar://problem/9056027> 8 9 Add stubs for CookiesStrategy on Windows WebKit1. 10 11 * WebCoreSupport/WebPlatformStrategies.cpp: 12 (WebPlatformStrategies::createCookiesStrategy): 13 (WebPlatformStrategies::notifyCookiesChanged): 14 * WebCoreSupport/WebPlatformStrategies.h: 15 1 16 2011-02-28 Chang Shu <cshu@webkit.org> 2 17 -
trunk/Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.cpp
r78842 r80145 47 47 } 48 48 49 // PluginStrategy 49 CookiesStrategy* WebPlatformStrategies::createCookiesStrategy() 50 { 51 return this; 52 } 50 53 51 54 PluginStrategy* WebPlatformStrategies::createPluginStrategy() … … 62 65 { 63 66 return this; 67 } 68 69 void WebPlatformStrategies::notifyCookiesChanged() 70 { 64 71 } 65 72 -
trunk/Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.h
r78842 r80145 27 27 #define WebPlatformStrategies_h 28 28 29 #include <WebCore/CookiesStrategy.h> 29 30 #include <WebCore/LocalizationStrategy.h> 30 31 #include <WebCore/PlatformStrategies.h> … … 32 33 #include <WebCore/VisitedLinkStrategy.h> 33 34 34 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore:: PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy {35 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy { 35 36 public: 36 37 static void initialize(); … … 40 41 41 42 // WebCore::PlatformStrategies 43 virtual WebCore::CookiesStrategy* createCookiesStrategy(); 42 44 virtual WebCore::PluginStrategy* createPluginStrategy(); 43 45 virtual WebCore::LocalizationStrategy* createLocalizationStrategy(); 44 46 virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy(); 47 48 // WebCore::CookiesStrategy 49 virtual void notifyCookiesChanged(); 45 50 46 51 // WebCore::PluginStrategy -
trunk/Source/WebKit2/ChangeLog
r80131 r80145 1 2011-03-01 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 Part of WebKit2: Need a way to send notifications to client when cookies change 6 https://bugs.webkit.org/show_bug.cgi?id=55427 7 <rdar://problem/9056027> 8 9 * WebProcess/Cookies/WebCookieManager.cpp: 10 (WebKit::WebCookieManager::dispatchDidModifyCookies): Add a stub with a FIXME to send a 11 message to the UI process. 12 13 * WebProcess/Cookies/WebCookieManager.h: 14 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: 15 (WebKit::WebPlatformStrategies::createCookiesStrategy): 16 (WebKit::WebPlatformStrategies::notifyCookiesChanged): Call WebCookieManager::dispatchDidModifyCookies. 17 * WebProcess/WebCoreSupport/WebPlatformStrategies.h: 18 1 19 2011-03-02 Andras Becsi <abecsi@webkit.org> 2 20 -
trunk/Source/WebKit2/WebProcess/Cookies/WebCookieManager.cpp
r79722 r80145 28 28 29 29 #include "MessageID.h" 30 #include "SecurityOriginData.h"31 30 #include "WebCookieManagerProxyMessages.h" 32 31 #include "WebProcess.h" 33 32 #include <WebCore/CookieJar.h> 33 #include <WebCore/CookieStorage.h> 34 34 #include <WebCore/NotImplemented.h> 35 #include <WebCore/SecurityOrigin.h>36 #include <WebCore/SecurityOriginHash.h>37 35 38 36 using namespace WebCore; … … 77 75 } 78 76 77 void WebCookieManager::dispatchDidModifyCookies() 78 { 79 // FIXME <http://webkit.org/b/55427>: Send a message to the UIProcess that the cookies have changed. 80 } 81 79 82 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/Cookies/WebCookieManager.h
r79585 r80145 38 38 namespace WebKit { 39 39 40 struct SecurityOriginData;41 42 40 class WebCookieManager { 43 41 WTF_MAKE_NONCOPYABLE(WebCookieManager); … … 46 44 47 45 void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 46 47 void dispatchDidModifyCookies(); 48 48 49 49 private: -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
r80014 r80145 31 31 #include "PluginInfoStore.h" 32 32 #include "WebContextMessages.h" 33 #include "WebCookieManager.h" 33 34 #include "WebCoreArgumentCoders.h" 34 35 #include "WebProcess.h" … … 99 100 } 100 101 101 // PluginStrategy 102 CookiesStrategy* WebPlatformStrategies::createCookiesStrategy() 103 { 104 return this; 105 } 102 106 103 107 PluginStrategy* WebPlatformStrategies::createPluginStrategy() … … 114 118 { 115 119 return this; 120 } 121 122 // CookiesStrategy 123 124 void WebPlatformStrategies::notifyCookiesChanged() 125 { 126 WebCookieManager::shared().dispatchDidModifyCookies(); 116 127 } 117 128 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h
r78842 r80145 29 29 #if USE(PLATFORM_STRATEGIES) 30 30 31 #include <WebCore/CookiesStrategy.h> 31 32 #include <WebCore/PlatformStrategies.h> 32 33 #include <WebCore/PluginStrategy.h> … … 36 37 namespace WebKit { 37 38 38 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore:: PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy {39 class WebPlatformStrategies : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::PluginStrategy, private WebCore::LocalizationStrategy, private WebCore::VisitedLinkStrategy { 39 40 public: 40 41 static void initialize(); … … 44 45 45 46 // WebCore::PlatformStrategies 47 virtual WebCore::CookiesStrategy* createCookiesStrategy(); 46 48 virtual WebCore::PluginStrategy* createPluginStrategy(); 47 49 virtual WebCore::LocalizationStrategy* createLocalizationStrategy(); 48 50 virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy(); 51 52 // WebCore::CookiesStrategy 53 virtual void notifyCookiesChanged(); 49 54 50 55 // WebCore::PluginStrategy
Note: See TracChangeset
for help on using the changeset viewer.