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

Unified Diff: extensions/renderer/api_bindings_system.h

Issue 2891123002: [Extensions Bindings] Handle updating context permissions (Closed)
Patch Set: jbroman's Created 3 years, 7 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
« no previous file with comments | « extensions/renderer/api_binding_unittest.cc ('k') | extensions/renderer/api_bindings_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_bindings_system.h
diff --git a/extensions/renderer/api_bindings_system.h b/extensions/renderer/api_bindings_system.h
index 1b32dfb41829e8968005b017423568ee6e115cb5..c42558f54293186ffe76149d27be27d7e73761f0 100644
--- a/extensions/renderer/api_bindings_system.h
+++ b/extensions/renderer/api_bindings_system.h
@@ -44,6 +44,7 @@ class APIBindingsSystem {
APIBindingsSystem(const binding::RunJSFunction& call_js,
const binding::RunJSFunctionSync& call_js_sync,
const GetAPISchemaMethod& get_api_schema,
+ const APIBinding::AvailabilityCallback& is_available,
const APIRequestHandler::SendRequestMethod& send_request,
const APIEventHandler::EventListenersChangedMethod&
event_listeners_changed,
@@ -54,7 +55,6 @@ class APIBindingsSystem {
v8::Local<v8::Object> CreateAPIInstance(
const std::string& api_name,
v8::Local<v8::Context> context,
- const APIBinding::AvailabilityCallback& is_available,
APIBindingHooks** hooks_out);
// Responds to the request with the given |request_id|, calling the callback
@@ -135,6 +135,8 @@ class APIBindingsSystem {
// API. Curried in for testing purposes so we can use fake APIs.
GetAPISchemaMethod get_api_schema_;
+ APIBinding::AvailabilityCallback is_available_;
+
DISALLOW_COPY_AND_ASSIGN(APIBindingsSystem);
};
« no previous file with comments | « extensions/renderer/api_binding_unittest.cc ('k') | extensions/renderer/api_bindings_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698