Skip to content
  • adachan@apple.com's avatar
    Added methods to get/set current cookie storage. · 149c8024
    adachan@apple.com authored
    WebCore:
            Added CookieStorageWin.h/cpp, introducing methods to get/set the current CFHTTPCookieStorageRef.
            When setting cookies-related attributes in CFURLRequest, make sure we get them from the
            current CFHTTPCookieStorageRef.  Also, set the cookie storage in CFURLRequest.
    
            Reviewed by Steve Falkenburg.
    
            * WebCore.vcproj/WebCore.vcproj:
            * platform/network/cf/ResourceHandleCFNet.cpp:
            (WebCore::makeFinalRequest):
            * platform/network/cf/ResourceRequestCFNet.cpp:
            (WebCore::ResourceRequest::doUpdatePlatformRequest):
            * platform/network/win/CookieJarCFNetWin.cpp:
            (WebCore::setCookies):
            (WebCore::cookies):
            (WebCore::cookiesEnabled):
            * platform/network/win/CookieStorageWin.cpp: Added.
            (WebCore::currentCookieStorage):
            (WebCore::setCurrentCookieStorage):
            * platform/network/win/CookieStorageWin.h: Added.
    
    WebKit/win:
            Added IWebCookieManager interface which allows client to set the
            CFHTTPCookieStorageRef that WebCore should use.
            
            Implement IWebCookieManager interface in WebCookieManager.
            
            Update the cookie accept policy in the current cookie storage.
    
            Reviewed by Steve Falkenburg.
    
            * ForEachCoClass.h:
            * Interfaces/IWebCookieManager.idl: Added.
            * Interfaces/WebKit.idl:
            * WebCookieManager.cpp: Added.
            (WebCookieManager::createInstance):
            (WebCookieManager::WebCookieManager):
            (WebCookieManager::~WebCookieManager):
            (WebCookieManager::QueryInterface):
            (WebCookieManager::AddRef):
            (WebCookieManager::Release):
            (WebCookieManager::cookieStorage):
            (WebCookieManager::setCookieStorage):
            * WebCookieManager.h: Added.
            * WebKit.vcproj/WebKit.vcproj:
            * WebKitClassFactory.cpp:
            * WebView.cpp:
            (updateSharedSettingsFromPreferencesIfNeeded):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    149c8024