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

Unified Diff: extensions/renderer/api_binding.cc

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.cc
diff --git a/extensions/renderer/api_binding.cc b/extensions/renderer/api_binding.cc
index 9b6b6091a35221300514713e9bad47a69d22f43d..1cc3244d54295c8b640c69a498f867ed13243a95 100644
--- a/extensions/renderer/api_binding.cc
+++ b/extensions/renderer/api_binding.cc
@@ -296,6 +296,11 @@ v8::Local<v8::Object> APIBinding::CreateInstance(
return object;
}
+v8::Local<v8::Object> APIBinding::GetJSHookInterface(
+ v8::Local<v8::Context> context) {
+ return binding_hooks_->GetJSHookInterface(api_name_, context);
+}
+
void APIBinding::HandleCall(const std::string& name,
const binding::APISignature* signature,
gin::Arguments* arguments) {

Powered by Google App Engine
This is Rietveld 408576698