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

Unified Diff: webkit/tools/test_shell/test_shell_webkit_init.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/tools/test_shell/test_shell_webkit_init.h ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webkit_init.cc
===================================================================
--- webkit/tools/test_shell/test_shell_webkit_init.cc (revision 124232)
+++ webkit/tools/test_shell/test_shell_webkit_init.cc (working copy)
@@ -257,10 +257,14 @@
WebKit::WebStorageNamespace* TestShellWebKitInit::createLocalStorageNamespace(
const WebKit::WebString& path, unsigned quota) {
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ return dom_storage_system_.CreateLocalStorageNamespace();
+#else
// Enforce quota here, ignoring the value from the renderer as in Chrome.
return WebKit::WebStorageNamespace::createLocalStorageNamespace(
path,
WebKit::WebStorageNamespace::m_localStorageQuota);
+#endif
}
void TestShellWebKitInit::dispatchStorageEvent(
@@ -268,7 +272,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* TestShellWebKitInit::idbFactory() {
« no previous file with comments | « webkit/tools/test_shell/test_shell_webkit_init.h ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698