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

Unified Diff: chrome/common/extensions/api/extension_api.h

Issue 11316164: Implement ComplexFeature to support permission features with multiple rules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new Created 8 years 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/api/extension_api.h
diff --git a/chrome/common/extensions/api/extension_api.h b/chrome/common/extensions/api/extension_api.h
index b74bdccdb90b0057d2d3354a001b716029ce0ef7..4c4cf0dd730fc94a7848bc29bfa052e88ca30794 100644
--- a/chrome/common/extensions/api/extension_api.h
+++ b/chrome/common/extensions/api/extension_api.h
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "chrome/common/extensions/features/feature.h"
#include "chrome/common/extensions/features/feature_provider.h"
+#include "chrome/common/extensions/features/simple_feature.h"
#include "extensions/common/url_pattern_set.h"
namespace base {
@@ -94,7 +95,7 @@ class ExtensionAPI : public FeatureProvider {
// Gets a Feature object describing the API with the specified |full_name|.
// This can be either an API namespace (like history, or
// experimental.bookmarks), or it can be an individual function or event.
- virtual Feature* GetFeature(const std::string& full_name) OVERRIDE;
+ virtual SimpleFeature* GetFeature(const std::string& full_name) OVERRIDE;
not at google - send to devlin 2012/12/12 17:42:41 should return a Feature?
justinlin 2012/12/14 12:26:26 Done.
// Splits a full name from the extension API into its API and child name
// parts. Some examples:
@@ -173,7 +174,7 @@ class ExtensionAPI : public FeatureProvider {
// APIs that have URL matching permissions.
std::map<std::string, URLPatternSet> url_matching_apis_;
- typedef std::map<std::string, linked_ptr<Feature> > FeatureMap;
+ typedef std::map<std::string, linked_ptr<SimpleFeature> > FeatureMap;
not at google - send to devlin 2012/12/12 17:42:41 Feature?
justinlin 2012/12/14 12:26:26 Done.
typedef std::map<std::string, linked_ptr<FeatureMap> > APIFeatureMap;
APIFeatureMap features_;

Powered by Google App Engine
This is Rietveld 408576698