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

Unified Diff: chrome/common/extensions/features/base_feature_provider.h

Issue 13997002: Load extensions features file separately when needed (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/common/extensions/features/base_feature_provider.h
diff --git a/chrome/common/extensions/features/base_feature_provider.h b/chrome/common/extensions/features/base_feature_provider.h
index 389f8acb0649b3b899743923de0e2e07cd82046b..60810c3bed04b59812f72b16ad9d0b55c643a3ed 100644
--- a/chrome/common/extensions/features/base_feature_provider.h
+++ b/chrome/common/extensions/features/base_feature_provider.h
@@ -26,17 +26,11 @@ class BaseFeatureProvider : public FeatureProvider {
BaseFeatureProvider(const DictionaryValue& root, FeatureFactory factory);
virtual ~BaseFeatureProvider();
- // Gets an instance for the _api_features.json file that is baked into
- // Chrome as a resource.
- static BaseFeatureProvider* GetAPIFeatures();
-
- // Gets an instance for the _manifest_features.json file that is baked into
- // Chrome as a resource.
- static BaseFeatureProvider* GetManifestFeatures();
-
- // Gets an instance for the _permission_features.json file that is baked into
- // Chrome as a resource.
- static BaseFeatureProvider* GetPermissionFeatures();
+ // Use GetFeaturesByName() to get the BaseFeatureProvider for a specific type.
+ // If it is possible that the feature provider will not be used, use
+ // LazyGetFeaturesByName().
+ static BaseFeatureProvider* GetFeaturesByName(const std::string& name);
+ static FeatureProvider* LazyGetFeaturesByName(const std::string& name);
not at google - send to devlin 2013/04/10 02:06:22 Is there really a difference? Can you combine thes
cduvall 2013/04/10 02:26:12 They're both needed because GetFeaturesByName() re
not at google - send to devlin 2013/04/10 02:42:13 Ah ok. Perhaps we should pull GetAllFeatureNames i
cduvall 2013/04/10 02:57:56 Done, had to take off the const, because it wouldn
// Returns all features described by this instance.
std::set<std::string> GetAllFeatureNames() const;

Powered by Google App Engine
This is Rietveld 408576698