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

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

Issue 14494013: Allow API functions and events to have entries in _api_features.json (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser_tests, Stubs now inspects _api_features.json 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 b48f4894f2b5d35a510a96c30b381f01175ebbd2..3c967b2dcf3300f17b5fc6ce1eb8e429d31cdb26 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -101,9 +101,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 whether the API |api_name| or any part of the API could be
+ // available in this context without taking into account the context's
+ // extension.
+ bool IsAnyFeatureAvailableToContext(const std::string& api_name);
// Returns a string description of the type of context this is.
std::string GetContextTypeDescription();
@@ -117,9 +118,6 @@ 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_;

Powered by Google App Engine
This is Rietveld 408576698