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

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

Issue 11316164: Implement ComplexFeature to support permission features with multiple rules. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments, cleanup 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/features/simple_feature_provider.h
diff --git a/chrome/common/extensions/features/simple_feature_provider.h b/chrome/common/extensions/features/simple_feature_provider.h
index 6da884e256e042694e3ae102c764f42a7464d4e8..54648210dfdc6cd74c184ff97e9a160e41442fe5 100644
--- a/chrome/common/extensions/features/simple_feature_provider.h
+++ b/chrome/common/extensions/features/simple_feature_provider.h
@@ -5,24 +5,25 @@
#ifndef CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_PROVIDER_H_
#define CHROME_COMMON_EXTENSIONS_FEATURES_SIMPLE_FEATURE_PROVIDER_H_
+#include <map>
#include <set>
#include <string>
#include "base/memory/linked_ptr.h"
#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"
namespace extensions {
// Reads Features out of a simple JSON file description.
class SimpleFeatureProvider : public FeatureProvider {
not at google - send to devlin 2012/12/14 19:10:42 yes please, rename to (Default|Base|Standard)Featu
justinlin 2012/12/14 21:07:52 OK, next patch :) Probably going with BaseFeatureP
public:
- typedef Feature*(*FeatureFactory)();
+ typedef SimpleFeature*(*FeatureFactory)();
not at google - send to devlin 2012/12/14 19:10:42 Feature*(*FeatureFactory) not SimpleFeature*(*Feat
justinlin 2012/12/14 21:07:52 Problem with this is that in the .cc file, we'd ha
// Creates a new SimpleFeatureProvider. Pass null to |factory| to have the
// provider create plain old Feature instances.
- SimpleFeatureProvider(DictionaryValue* root, FeatureFactory factory);
+ SimpleFeatureProvider(const DictionaryValue& root, FeatureFactory factory);
virtual ~SimpleFeatureProvider();
// Gets an instance for the _manifest_features.json file that is baked into

Powered by Google App Engine
This is Rietveld 408576698