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

Unified Diff: extensions/renderer/native_extension_bindings_system.h

Issue 2657613005: [Extensions Bindings] Add chrome.runtime.lastError support (Closed)
Patch Set: . Created 3 years, 10 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
Index: extensions/renderer/native_extension_bindings_system.h
diff --git a/extensions/renderer/native_extension_bindings_system.h b/extensions/renderer/native_extension_bindings_system.h
index b414fc1453b67ed415c85486e656b34eca190b2d..d6d24e3936a6f484d46fceaafa1d88daf04ffa48 100644
--- a/extensions/renderer/native_extension_bindings_system.h
+++ b/extensions/renderer/native_extension_bindings_system.h
@@ -68,8 +68,15 @@ class NativeExtensionBindingsSystem : public ExtensionBindingsSystem {
v8::Local<v8::Context> context);
// Getter callback for an extension API, since APIs are constructed lazily.
- static void GetAPIHelper(v8::Local<v8::Name> name,
- const v8::PropertyCallbackInfo<v8::Value>& info);
+ static void BindingAccessor(v8::Local<v8::Name> name,
+ const v8::PropertyCallbackInfo<v8::Value>& info);
+
+ // Creates and returns the API binding for the given |name|.
+ static v8::Local<v8::Object> GetAPIHelper(v8::Local<v8::Context> context,
+ v8::Local<v8::String> name);
+
+ // Gets the chrome.runtime API binding.
+ static v8::Local<v8::Object> GetRuntime(v8::Local<v8::Context> context);
// Callback to get an API binding for an internal API.
static void GetInternalAPI(const v8::FunctionCallbackInfo<v8::Value>& info);
« no previous file with comments | « extensions/renderer/api_request_handler_unittest.cc ('k') | extensions/renderer/native_extension_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698