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

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

Issue 12522004: Lazily load extension API schemas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/chrome_v8_context.h
diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
index 83142d02ac130b17a8bbddaf01933c227d81e4f0..323ce77695308eb1dc3f24d9e995fcd2dda7d8e4 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -98,10 +98,7 @@ class ChromeV8Context {
v8::Handle<v8::Value>* argv,
v8::Handle<v8::Value>* result) const;
- // Returns the set of extension APIs that are available to this context. If no
- // APIs are available, returns an empty set.
- const std::set<std::string>& GetAvailableExtensionAPIs();
-
+ // Returns the availability of the API |api_name|.
Feature::Availability GetAvailability(const std::string& api_name);
// Returns a string description of the type of context this is.
@@ -125,10 +122,6 @@ class ChromeV8Context {
// Owns and structures the JS that is injected to set up extension bindings.
scoped_ptr<ModuleSystem> module_system_;
- // The extension APIs available to this context.
- std::set<std::string> available_extension_apis_;
- bool available_extension_apis_initialized_;
-
DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
};
« no previous file with comments | « chrome/renderer/extensions/api_definitions_natives.cc ('k') | chrome/renderer/extensions/chrome_v8_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698