Add a separate class for networking related storage
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index 498f872..fc62c56 100644 (file)
@@ -1,3 +1,60 @@
+2012-12-22  Alexey Proskuryakov  <ap@apple.com>
+
+        Add a separate class for networking related storage
+        https://bugs.webkit.org/show_bug.cgi?id=105676
+
+        Reviewed by Sam Weinig.
+
+        * NetworkProcess/NetworkConnectionToWebProcess.cpp: We no longer need to create
+        fake RemoteNetworkingContexts here! Use an actual default or private storage session.
+
+        * NetworkProcess/mac/NetworkProcessMainMac.mm: Updated form of WebSystemInterface.h include,
+        it's not a system one.
+
+        * NetworkProcess/mac/RemoteNetworkingContext.h: Expose privateBrowsingSession(),
+        so that NetworkConnectionToWebProcess could use it. We can generalize the interface
+        one we support more sessions.
+
+        * NetworkProcess/mac/RemoteNetworkingContext.mm: This class now only tracks private
+        browsing session, with most other code being in NetworkStorageSession.
+
+        * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
+        * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
+        * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
+        * WebProcess/WebProcess.cpp:
+        * WebProcess/efl/WebProcessMainEfl.cpp:
+        * WebProcess/gtk/WebProcessMainGtk.cpp:
+        * WebProcess/Downloads/cfnet/DownloadCFNet.cpp:
+        * WebProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp:
+        * WebProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp:
+        * WebProcess/Downloads/mac/DownloadMac.mm:
+        * WebProcess/Network/WebResourceLoader.cpp:
+        Updated includes for ResourceHandle change. For some ports, the includes could be
+        made more tight, but I have no practical way to do that.
+
+        * WebKit2.xcodeproj/project.pbxproj: Removed WebPlatformStrategiesMac.mm.
+
+        * WebProcess/Cookies/WebCookieManager.cpp:
+        (WebKit::WebCookieManager::getHostnamesWithCookies):
+        (WebKit::WebCookieManager::deleteCookiesForHostname):
+        (WebKit::WebCookieManager::deleteAllCookies):
+        Pass a proper session instead of relying on a strategy to call back to WebKit
+        for default cookie storage (we don't even have strategies initialized in NetworkProcess).
+
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession): Initialize WCSI
+        before calling a function that now uses in in WebCore.
+
+        * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
+        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: We no longer need a strategy
+        for default cookie storage! Updated other functions to use sessions.
+
+        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
+        * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
+        * WebProcess/WebCoreSupport/mac/WebPlatformStrategiesMac.mm: Removed.
+        * WebProcess/WebCoreSupport/win/WebFrameNetworkingContext.h:
+        WebFrameNetworkingContext is now simpler, with more tracking being donre through WebCore.
+
 2012-12-21  Elliott Sprehn  <esprehn@chromium.org>
 
         Replace documentFragmentIsShadowRoot with isTreeScope