Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(816)

Unified Diff: webkit/support/test_webkit_platform_support.cc

Issue 9429029: Integrate the new DomStorage backend into DRT and test_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.cc
===================================================================
--- webkit/support/test_webkit_platform_support.cc (revision 124232)
+++ webkit/support/test_webkit_platform_support.cc (working copy)
@@ -321,7 +321,11 @@
WebKit::WebStorageNamespace*
TestWebKitPlatformSupport::createLocalStorageNamespace(
const WebKit::WebString& path, unsigned quota) {
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ return dom_storage_system_.CreateLocalStorageNamespace();
+#else
return WebKit::WebStorageNamespace::createLocalStorageNamespace(path, quota);
+#endif
}
void TestWebKitPlatformSupport::dispatchStorageEvent(
@@ -329,7 +333,11 @@
const WebKit::WebString& old_value, const WebKit::WebString& new_value,
const WebKit::WebString& origin, const WebKit::WebURL& url,
bool is_local_storage) {
- // The event is dispatched by the proxy.
+ // All events are dispatched by the WebCore::StorageAreaProxy in the
+ // simple single process case.
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ NOTREACHED();
+#endif
}
WebKit::WebIDBFactory* TestWebKitPlatformSupport::idbFactory() {
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698