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

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: fix interactive_ui_tests Created 7 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: chrome/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index a3a5275d491759a02295cf8898f9637b98bfc30f..ce879843e5459f288697c5c6f349be8602826e15 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -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,15 @@ class Dispatcher : public content::RenderProcessObserver {
int extension_group,
const ExtensionURLInfo& url_info);
+ typedef void (ModuleSystem::*LazyFieldSetter)(v8::Handle<v8::Object>,
Matt Perry 2013/02/21 01:57:43 Is this used anywhere? And if so, why does it belo
cduvall 2013/02/26 00:36:57 Removed.
+ const std::string&,
+ const std::string&,
+ const std::string&);
+ // 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_;

Powered by Google App Engine
This is Rietveld 408576698