Title: [149847] trunk/Source/WebKit2
- Revision
- 149847
- Author
- [email protected]
- Date
- 2013-05-09 15:26:38 -0700 (Thu, 09 May 2013)
Log Message
Implement WebPlatformStrategies::transientLocalStorageNamespace
https://bugs.webkit.org/show_bug.cgi?id=115876
<rdar://problem/13852871>
Reviewed by Beth Dakin.
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::transientLocalStorageNamespace):
Return a session storage namespace for a random page when UI process storage is enabled,
otherwise call the base class implementation.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (149846 => 149847)
--- trunk/Source/WebKit2/ChangeLog 2013-05-09 22:09:44 UTC (rev 149846)
+++ trunk/Source/WebKit2/ChangeLog 2013-05-09 22:26:38 UTC (rev 149847)
@@ -1,5 +1,18 @@
2013-05-09 Anders Carlsson <[email protected]>
+ Implement WebPlatformStrategies::transientLocalStorageNamespace
+ https://bugs.webkit.org/show_bug.cgi?id=115876
+ <rdar://problem/13852871>
+
+ Reviewed by Beth Dakin.
+
+ * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
+ (WebKit::WebPlatformStrategies::transientLocalStorageNamespace):
+ Return a session storage namespace for a random page when UI process storage is enabled,
+ otherwise call the base class implementation.
+
+2013-05-09 Anders Carlsson <[email protected]>
+
Use explicit qualifiers for names in the std:: namespace
https://bugs.webkit.org/show_bug.cgi?id=115868
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp (149846 => 149847)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp 2013-05-09 22:09:44 UTC (rev 149846)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp 2013-05-09 22:26:38 UTC (rev 149847)
@@ -46,6 +46,7 @@
#include <WebCore/NetworkStorageSession.h>
#include <WebCore/NetworkingContext.h>
#include <WebCore/Page.h>
+#include <WebCore/PageGroup.h>
#include <WebCore/PlatformCookieJar.h>
#include <WebCore/PlatformPasteboard.h>
#include <WebCore/ResourceError.h>
@@ -316,6 +317,16 @@
#endif
}
+PassRefPtr<StorageNamespace> WebPlatformStrategies::transientLocalStorageNamespace(PageGroup* pageGroup, SecurityOrigin*securityOrigin)
+{
+#if ENABLE(UI_PROCESS_STORAGE)
+ // FIXME: This could be more clever and made to work across processes.
+ return StorageStrategy::sessionStorageNamespace(*pageGroup->pages().begin());
+#else
+ return StorageStrategy::transientLocalStorageNamespace(pageGroup, securityOrigin);
+#endif
+}
+
PassRefPtr<StorageNamespace> WebPlatformStrategies::sessionStorageNamespace(Page* page)
{
#if ENABLE(UI_PROCESS_STORAGE)
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h (149846 => 149847)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h 2013-05-09 22:09:44 UTC (rev 149846)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h 2013-05-09 22:26:38 UTC (rev 149847)
@@ -85,6 +85,7 @@
// WebCore::StorageStrategy.
virtual PassRefPtr<WebCore::StorageNamespace> localStorageNamespace(WebCore::PageGroup*) OVERRIDE;
+ virtual PassRefPtr<WebCore::StorageNamespace> transientLocalStorageNamespace(WebCore::PageGroup*, WebCore::SecurityOrigin*) OVERRIDE;
virtual PassRefPtr<WebCore::StorageNamespace> sessionStorageNamespace(WebCore::Page*) OVERRIDE;
// WebCore::VisitedLinkStrategy
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes