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

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

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos tests Created 7 years, 6 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
« no previous file with comments | « chrome/common/extensions/features/feature.cc ('k') | chrome/common/extensions/features/simple_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/feature_provider.h
diff --git a/chrome/common/extensions/features/feature_provider.h b/chrome/common/extensions/features/feature_provider.h
index 8a211c909f2a9ca6ae15ad3d490a69bbb9d9e7ec..56942d5a303fe133643ee3cd0f51417010005e13 100644
--- a/chrome/common/extensions/features/feature_provider.h
+++ b/chrome/common/extensions/features/feature_provider.h
@@ -20,8 +20,11 @@ class FeatureProvider {
// Returns the feature with the specified name.
virtual Feature* GetFeature(const std::string& name) = 0;
+ // Returns the parent feature of |feature|, or NULL if there isn't one.
+ virtual Feature* GetParent(Feature* feature) = 0;
+
// Returns all features described by this instance.
- virtual std::set<std::string> GetAllFeatureNames() = 0;
+ virtual const std::vector<std::string>& GetAllFeatureNames() = 0;
};
} // namespace extensions
« no previous file with comments | « chrome/common/extensions/features/feature.cc ('k') | chrome/common/extensions/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698