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

Unified Diff: extensions/renderer/dispatcher.h

Issue 2495213007: [Extensions] Use a separate IPC message for extension events (Closed)
Patch Set: lazyboys Created 4 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 | « extensions/common/extension_messages.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 2e50fcf90343447e901944ae370e1599d2cab599..0e8d57927a08faa58793458a9697807e699af965 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -38,6 +38,7 @@ class ChromeRenderViewTest;
class GURL;
class ModuleSystem;
class URLPattern;
+struct ExtensionMsg_DispatchEvent_Params;
struct ExtensionMsg_ExternalConnectionInfo;
struct ExtensionMsg_Loaded_Params;
struct ExtensionMsg_TabConnectionInfo;
@@ -130,15 +131,16 @@ class Dispatcher : public content::RenderThreadObserver,
// Dispatches the event named |event_name| to all render views.
void DispatchEvent(const std::string& extension_id,
- const std::string& event_name) const;
+ const std::string& event_name,
+ const base::ListValue& event_args,
+ const base::DictionaryValue& filtering_info) const;
// Shared implementation of the various MessageInvoke IPCs.
void InvokeModuleSystemMethod(content::RenderFrame* render_frame,
const std::string& extension_id,
const std::string& module_name,
const std::string& function_name,
- const base::ListValue& args,
- bool user_gesture);
+ const base::ListValue& args);
// Returns a list of (module name, resource id) pairs for the JS modules to
// add to the source map.
@@ -177,8 +179,9 @@ class Dispatcher : public content::RenderThreadObserver,
void OnMessageInvoke(const std::string& extension_id,
const std::string& module_name,
const std::string& function_name,
- const base::ListValue& args,
- bool user_gesture);
+ const base::ListValue& args);
+ void OnDispatchEvent(const ExtensionMsg_DispatchEvent_Params& params,
+ const base::ListValue& event_args);
void OnSetSessionInfo(version_info::Channel channel,
FeatureSessionType session_type);
void OnSetScriptingWhitelist(
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698