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

Unified Diff: chrome/common/extensions/features/simple_feature.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/common/extensions/features/simple_feature.h
diff --git a/chrome/common/extensions/features/simple_feature.h b/chrome/common/extensions/features/simple_feature.h
index 8575f51a4940f6d92318112591131cfa1e4a14b7..aefdfe51ac5813e1e63260d1c4b4f38f7e1c4d97 100644
--- a/chrome/common/extensions/features/simple_feature.h
+++ b/chrome/common/extensions/features/simple_feature.h
@@ -53,8 +53,9 @@ class SimpleFeature : public Feature {
}
Availability IsAvailableToContext(const Extension* extension,
- Context context) const {
- return IsAvailableToContext(extension, context, GetCurrentPlatform());
+ Context context,
+ const GURL& url) const {
+ return IsAvailableToContext(extension, context, url, GetCurrentPlatform());
}
// extension::Feature:
@@ -66,6 +67,7 @@ class SimpleFeature : public Feature {
virtual Availability IsAvailableToContext(const Extension* extension,
Context context,
+ const GURL& url,
Platform platform) const OVERRIDE;
virtual std::string GetAvailabilityMessage(
@@ -87,6 +89,7 @@ class SimpleFeature : public Feature {
std::set<std::string> whitelist_;
std::set<Manifest::Type> extension_types_;
std::set<Context> contexts_;
+ URLPatternSet matches_;
Location location_; // we only care about component/not-component now
Platform platform_; // we only care about chromeos/not-chromeos now
int min_manifest_version_;

Powered by Google App Engine
This is Rietveld 408576698