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

Unified Diff: chrome/renderer/render_thread.h

Issue 223013: Another stab at the Chromium side of storage events. The WebKit side can be ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.h
===================================================================
--- chrome/renderer/render_thread.h (revision 27652)
+++ chrome/renderer/render_thread.h (working copy)
@@ -14,6 +14,7 @@
#include "build/build_config.h"
#include "chrome/common/child_thread.h"
#include "chrome/common/css_colors.h"
+#include "chrome/common/dom_storage_type.h"
#include "chrome/renderer/renderer_histogram_snapshots.h"
#include "chrome/renderer/visitedlink_slave.h"
@@ -22,6 +23,7 @@
class DevToolsAgentFilter;
class FilePath;
class ListValue;
+class NullableString16;
class RenderDnsMaster;
class RendererHistogram;
class RendererWebKitClientImpl;
@@ -32,6 +34,10 @@
struct RendererPreferences;
struct WebPreferences;
+namespace WebKit {
+class WebStorageEventDispatcher;
+}
+
// The RenderThreadBase is the minimal interface that a RenderView/Widget
// expects from a render thread. The interface basically abstracts a way to send
// and receive messages.
@@ -138,7 +144,10 @@
void OnUpdateUserScripts(base::SharedMemoryHandle table);
void OnSetExtensionFunctionNames(const std::vector<std::string>& names);
void OnPageActionsUpdated(const std::string& extension_id,
- const std::vector<std::string>& page_actions);
+ const std::vector<std::string>& page_actions);
+ void OnDOMStorageEvent(const string16& key, const NullableString16& old_value,
+ const NullableString16& new_value, const string16& origin,
+ DOMStorageType dom_storage_type);
void OnExtensionSetAPIPermissions(
const std::string& extension_id,
const std::vector<std::string>& permissions);
@@ -187,6 +196,7 @@
scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_;
scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_;
scoped_ptr<RendererWebKitClientImpl> webkit_client_;
+ scoped_ptr<WebKit::WebStorageEventDispatcher> dom_storage_event_dispatcher_;
scoped_refptr<DBMessageFilter> db_message_filter_;
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698