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

Unified Diff: extensions/renderer/api_binding_hooks.h

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: . Created 4 years 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/api_binding_bridge.cc ('k') | extensions/renderer/api_binding_hooks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding_hooks.h
diff --git a/extensions/renderer/api_binding_hooks.h b/extensions/renderer/api_binding_hooks.h
index 587425f427470b62b9370f103ededcb32619f69c..9c746214ccb1763658f3a38c628f0a642ad1a226 100644
--- a/extensions/renderer/api_binding_hooks.h
+++ b/extensions/renderer/api_binding_hooks.h
@@ -63,6 +63,10 @@ class APIBindingHooks {
const APISignature* signature,
gin::Arguments* arguments);
+ // Returns a JS interface that can be used to register hooks.
+ v8::Local<v8::Object> GetJSHookInterface(const std::string& api_name,
+ v8::Local<v8::Context> context);
+
private:
// Whether we've tried to use any hooks associated with this object.
bool hooks_used_ = false;
« no previous file with comments | « extensions/renderer/api_binding_bridge.cc ('k') | extensions/renderer/api_binding_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698