OLD | NEW |
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_FEATURE_SWITCH_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURE_SWITCH_H_ |
6 #define EXTENSIONS_COMMON_FEATURE_SWITCH_H_ | 6 #define EXTENSIONS_COMMON_FEATURE_SWITCH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 class CommandLine; | 12 class CommandLine; |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 // A switch that can turn a feature on or off. Typically controlled via | 16 // A switch that can turn a feature on or off. Typically controlled via |
17 // command-line switches but can be overridden, e.g., for testing. | 17 // command-line switches but can be overridden, e.g., for testing. |
18 class FeatureSwitch { | 18 class FeatureSwitch { |
19 public: | 19 public: |
20 static FeatureSwitch* easy_off_store_install(); | 20 static FeatureSwitch* easy_off_store_install(); |
| 21 static FeatureSwitch* force_dev_mode_highlighting(); |
21 static FeatureSwitch* global_commands(); | 22 static FeatureSwitch* global_commands(); |
22 static FeatureSwitch* script_badges(); | 23 static FeatureSwitch* script_badges(); |
23 static FeatureSwitch* script_bubble(); | 24 static FeatureSwitch* script_bubble(); |
24 static FeatureSwitch* prompt_for_external_extensions(); | 25 static FeatureSwitch* prompt_for_external_extensions(); |
25 static FeatureSwitch* error_console(); | 26 static FeatureSwitch* error_console(); |
26 static FeatureSwitch* enable_override_bookmarks_ui(); | 27 static FeatureSwitch* enable_override_bookmarks_ui(); |
27 | 28 |
28 enum DefaultValue { | 29 enum DefaultValue { |
29 DEFAULT_ENABLED, | 30 DEFAULT_ENABLED, |
30 DEFAULT_DISABLED | 31 DEFAULT_DISABLED |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const char* switch_name_; | 72 const char* switch_name_; |
72 bool default_value_; | 73 bool default_value_; |
73 OverrideValue override_value_; | 74 OverrideValue override_value_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); | 76 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace extensions | 79 } // namespace extensions |
79 | 80 |
80 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ | 81 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ |
OLD | NEW |