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

Unified Diff: chrome/renderer/extensions/dispatcher.h

Issue 15961006: Regenerate Extensions API bindings when optional permissions change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try againto fix android Created 7 years, 6 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 | « chrome/common/extensions/features/permission_feature.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index 6d7623cd4b26096acb5e1d1796f1eda8f3e81bba..9b1788687e4e54aee7b55c9e16160e174dd54504 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -209,8 +209,14 @@ class Dispatcher : public content::RenderProcessObserver {
void RegisterNativeHandlers(ModuleSystem* module_system,
ChromeV8Context* context);
- void RegisterSchemaGeneratedBindings(ModuleSystem* module_system,
- ChromeV8Context* context);
+ void AddOrRemoveBindings(ChromeV8Context* context);
+ void RegisterBinding(const std::string& api_name,
+ ChromeV8Context* context);
+ void DeregisterBinding(const std::string& api_name, ChromeV8Context* context);
+ v8::Handle<v8::Object> GetOrCreateBindObjectIfAvailable(
+ const std::string& api_name,
+ std::string* bind_name,
+ ChromeV8Context* context);
// Inserts static source code into |source_map_|.
void PopulateSourceMap();
« no previous file with comments | « chrome/common/extensions/features/permission_feature.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698