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

Unified Diff: chrome/renderer/renderer_webkitclient_impl.cc

Issue 348071: First half of http://codereview.chromium.org/274014/show... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/renderer/renderer_webkitclient_impl.h ('k') | chrome/worker/worker_webkitclient_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webkitclient_impl.cc
===================================================================
--- chrome/renderer/renderer_webkitclient_impl.cc (revision 30924)
+++ chrome/renderer/renderer_webkitclient_impl.cc (working copy)
@@ -25,6 +25,7 @@
#include "chrome/renderer/visitedlink_slave.h"
#include "googleurl/src/gurl.h"
#include "webkit/api/public/WebCookie.h"
+#include "webkit/api/public/WebStorageEventDispatcher.h"
#include "webkit/api/public/WebString.h"
#include "webkit/api/public/WebURL.h"
#include "webkit/api/public/WebVector.h"
@@ -45,6 +46,7 @@
using WebKit::WebCookie;
using WebKit::WebKitClient;
using WebKit::WebStorageArea;
+using WebKit::WebStorageEventDispatcher;
using WebKit::WebStorageNamespace;
using WebKit::WebString;
using WebKit::WebURL;
@@ -201,6 +203,18 @@
return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION);
}
+void RendererWebKitClientImpl::dispatchStorageEvent(
+ const WebString& key, const WebString& old_value,
+ const WebString& new_value, const WebString& origin,
+ bool is_local_storage) {
+ 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,
+ is_local_storage);
+}
+
WebApplicationCacheHost* RendererWebKitClientImpl::createApplicationCacheHost(
WebApplicationCacheHostClient* client) {
return new appcache::WebApplicationCacheHostImpl(client,
« no previous file with comments | « chrome/renderer/renderer_webkitclient_impl.h ('k') | chrome/worker/worker_webkitclient_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698