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

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

Issue 13604005: Prevent chrome.app JSON schema from loading on every page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 8b07a4535fe010810905f85d140bcf53a2521e64..5cd4f440961a8312af9c25bb8e5d04beba96636c 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -103,6 +103,10 @@ class ChromeV8Context : public RequestSender::Source {
// Returns the availability of the API |api_name|.
Feature::Availability GetAvailability(const std::string& api_name);
+ // Returns the availability of the API |api_name| without taking into account
+ // the context's extension.
+ Feature::Availability GetAvailabilityForContext(const std::string& api_name);
+
// Returns a string description of the type of context this is.
std::string GetContextTypeDescription();
@@ -115,6 +119,9 @@ class ChromeV8Context : public RequestSender::Source {
const std::string& error) OVERRIDE;
private:
+ Feature::Availability GetAvailabilityInternal(const std::string& api_name,
+ const Extension* extension);
+
// The v8 context the bindings are accessible to.
ScopedPersistent<v8::Context> v8_context_;
« no previous file with comments | « chrome/common/extensions/api/extension_api_unittest.cc ('k') | chrome/renderer/extensions/chrome_v8_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698