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

Unified Diff: extensions/renderer/api_binding_hooks.h

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: update test 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
Index: extensions/renderer/api_binding_hooks.h
diff --git a/extensions/renderer/api_binding_hooks.h b/extensions/renderer/api_binding_hooks.h
index 249a3390204f3e3614e8ada363ff7d8d6c0685b2..9f40a84dc0e5245b63b89ac9b279ce93c9f0b4c3 100644
--- a/extensions/renderer/api_binding_hooks.h
+++ b/extensions/renderer/api_binding_hooks.h
@@ -62,6 +62,10 @@ class APIBindingHooks {
const binding::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;

Powered by Google App Engine
This is Rietveld 408576698