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

Side by Side Diff: extensions/common/features/feature_provider.h

Issue 789383002: Add the basic infrastructure for the Behavior feature type: BehaviorFeature and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flag-features
Patch Set: rebase Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_
6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_ 6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 // Returns all features described by this instance, in asciibetical order. 30 // Returns all features described by this instance, in asciibetical order.
31 virtual const std::vector<std::string>& GetAllFeatureNames() const = 0; 31 virtual const std::vector<std::string>& GetAllFeatureNames() const = 0;
32 32
33 // Gets a feature provider for a specific feature type, like "permission". 33 // Gets a feature provider for a specific feature type, like "permission".
34 static const FeatureProvider* GetByName(const std::string& name); 34 static const FeatureProvider* GetByName(const std::string& name);
35 35
36 // Directly access the common feature types. 36 // Directly access the common feature types.
37 static const FeatureProvider* GetAPIFeatures(); 37 static const FeatureProvider* GetAPIFeatures();
38 static const FeatureProvider* GetManifestFeatures(); 38 static const FeatureProvider* GetManifestFeatures();
39 static const FeatureProvider* GetPermissionFeatures(); 39 static const FeatureProvider* GetPermissionFeatures();
40 static const FeatureProvider* GetBehaviorFeatures();
40 }; 41 };
41 42
42 } // namespace extensions 43 } // namespace extensions
43 44
44 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_ 45 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_PROVIDER_H_
OLDNEW
« no previous file with comments | « extensions/common/features/behavior_feature.cc ('k') | extensions/common/features/feature_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698