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

Unified Diff: extensions/common/features/behavior_feature.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/api/_behavior_features.json ('k') | extensions/common/features/behavior_feature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/behavior_feature.h
diff --git a/extensions/common/features/behavior_feature.h b/extensions/common/features/behavior_feature.h
new file mode 100644
index 0000000000000000000000000000000000000000..c09c69d2c318f8de8dc843fc5fb05aa05904c3bd
--- /dev/null
+++ b/extensions/common/features/behavior_feature.h
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
+#define EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
+
+#include <string>
+
+#include "extensions/common/features/simple_feature.h"
+
+namespace extensions {
+
+// Implementation of the features in _behavior_features.json.
+//
+// For now, this is just constants + a vacuous implementation of SimpleFeature,
+// for consistency with the other Feature types. One day we may add some
+// additional functionality. One day we may also generate the feature names.
+class BehaviorFeature : public SimpleFeature {
+ public:
+ // Constants corresponding to keys in _behavior_features.json.
+ static const char* kWhitelistedForIncognito;
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_COMMON_FEATURES_BEHAVIOR_FEATURE_H_
« no previous file with comments | « extensions/common/api/_behavior_features.json ('k') | extensions/common/features/behavior_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698