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

Unified Diff: chrome/renderer/extensions/api_definitions_natives.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
« no previous file with comments | « chrome/common/extensions/features/feature.cc ('k') | chrome/renderer/extensions/api_definitions_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/api_definitions_natives.h
diff --git a/chrome/renderer/extensions/api_definitions_natives.h b/chrome/renderer/extensions/api_definitions_natives.h
index 45b46b675683677ac9af2433281d995d6505468b..f8801e5ef3cfd4f69ebf1d363c660287280858a3 100644
--- a/chrome/renderer/extensions/api_definitions_natives.h
+++ b/chrome/renderer/extensions/api_definitions_natives.h
@@ -10,12 +10,14 @@
#include "v8/include/v8.h"
+class ChromeV8Context;
+
namespace extensions {
// Native functions for JS to get access to the schemas for extension APIs.
class ApiDefinitionsNatives : public ChromeV8Extension {
public:
- explicit ApiDefinitionsNatives(Dispatcher* dispatcher);
+ ApiDefinitionsNatives(Dispatcher* dispatcher, ChromeV8Context* context);
private:
// Returns the list of schemas that are available to the calling context
@@ -23,6 +25,8 @@ class ApiDefinitionsNatives : public ChromeV8Extension {
// of all schemas that are available to the calling context.
v8::Handle<v8::Value> GetExtensionAPIDefinition(const v8::Arguments& args);
+ ChromeV8Context* context_;
+
DISALLOW_COPY_AND_ASSIGN(ApiDefinitionsNatives);
};
« no previous file with comments | « chrome/common/extensions/features/feature.cc ('k') | chrome/renderer/extensions/api_definitions_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698