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

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

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compilation Created 7 years, 9 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: chrome/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index b95f5b94d2d8e4d686cf169b6035ee388faa43b4..4f568b8f87749be01cab318039ca33d93c641d94 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -120,8 +120,8 @@ class Dispatcher : public content::RenderProcessObserver {
// Checks that the current context contains an extension that has permission
// to execute the specified function. If it does not, a v8 exception is thrown
// and the method returns false. Otherwise returns true.
- bool CheckCurrentContextAccessToExtensionAPI(
- const std::string& function_name) const;
+ bool CheckContextAccessToExtensionAPI(
+ const std::string& function_name, ChromeV8Context* context) const;
private:
friend class RenderViewTest;
@@ -189,6 +189,9 @@ class Dispatcher : public content::RenderProcessObserver {
void RegisterNativeHandlers(ModuleSystem* module_system,
ChromeV8Context* context);
+ void RegisterSchemaGeneratedBindings(ModuleSystem* module_system,
+ ChromeV8Context* context,
+ v8::Handle<v8::Context> v8_context);
// Inserts static source code into |source_map_|.
void PopulateSourceMap();
@@ -211,6 +214,11 @@ class Dispatcher : public content::RenderProcessObserver {
int extension_group,
const ExtensionURLInfo& url_info);
+ // Gets |field| from |object| or creates it as an empty object if it doesn't
+ // exist.
+ v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object,
+ const std::string& field);
+
// True if this renderer is running extensions.
bool is_extension_process_;
« no previous file with comments | « chrome/renderer/extensions/context_menus_custom_bindings.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698