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; |