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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 9826040: Hook up new DomStorage backing for for single-process chromium too. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragenamespace_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.cc
===================================================================
--- content/renderer/renderer_webkitplatformsupport_impl.cc (revision 127736)
+++ content/renderer/renderer_webkitplatformsupport_impl.cc (working copy)
@@ -311,21 +311,29 @@
WebStorageNamespace*
RendererWebKitPlatformSupportImpl::createLocalStorageNamespace(
const WebString& path, unsigned quota) {
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL);
+#else
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
return WebStorageNamespace::createLocalStorageNamespace(path, quota);
return new RendererWebStorageNamespaceImpl(DOM_STORAGE_LOCAL);
+#endif
}
void RendererWebKitPlatformSupportImpl::dispatchStorageEvent(
const WebString& key, const WebString& old_value,
const WebString& new_value, const WebString& origin,
const WebKit::WebURL& url, bool is_local_storage) {
+#ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
+ NOTREACHED();
+#else
DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
// Inefficient, but only used in single process mode.
scoped_ptr<WebStorageEventDispatcher> event_dispatcher(
WebStorageEventDispatcher::create());
event_dispatcher->dispatchStorageEvent(key, old_value, new_value, origin,
url, is_local_storage);
+#endif
}
//------------------------------------------------------------------------------
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webstoragenamespace_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698