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

Unified Diff: extensions/renderer/extension_bindings_system.h

Issue 2909673003: [Extensions Bindings] Request JS execution from messaging bindings (Closed)
Patch Set: lazyboy's Created 3 years, 6 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 | « extensions/renderer/event_emitter.h ('k') | extensions/renderer/extensions_renderer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/extension_bindings_system.h
diff --git a/extensions/renderer/extension_bindings_system.h b/extensions/renderer/extension_bindings_system.h
index e40858e0751d80eaf4a7a106270f12901e0fa241..0f5991360b92ffcae770498f7fd2427247ef3d36 100644
--- a/extensions/renderer/extension_bindings_system.h
+++ b/extensions/renderer/extension_bindings_system.h
@@ -44,6 +44,11 @@ class ExtensionBindingsSystem {
const base::DictionaryValue* filtering_info,
ScriptContext* context) = 0;
+ // Returns true if there is a listener for the given |event_name| in the
+ // associated |context|.
+ virtual bool HasEventListenerInContext(const std::string& event_name,
+ ScriptContext* context) = 0;
+
// Handles the response associated with the given |request_id|.
virtual void HandleResponse(int request_id,
bool success,
« no previous file with comments | « extensions/renderer/event_emitter.h ('k') | extensions/renderer/extensions_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698