Chromium Code Reviews| 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 namespace base { | 12 namespace base { |
| 13 class CommandLine; | 13 class CommandLine; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 // A switch that can turn a feature on or off. Typically controlled via | 18 // A switch that can turn a feature on or off. Typically controlled via |
| 19 // command-line switches but can be overridden, e.g., for testing. | 19 // command-line switches but can be overridden, e.g., for testing. |
| 20 class FeatureSwitch { | 20 class FeatureSwitch { |
| 21 public: | 21 public: |
| 22 static FeatureSwitch* easy_off_store_install(); | 22 static FeatureSwitch* easy_off_store_install(); |
| 23 static FeatureSwitch* force_dev_mode_highlighting(); | 23 static FeatureSwitch* force_dev_mode_highlighting(); |
| 24 static FeatureSwitch* global_commands(); | 24 static FeatureSwitch* global_commands(); |
| 25 static FeatureSwitch* prompt_for_external_extensions(); | 25 static FeatureSwitch* prompt_for_external_extensions(); |
| 26 static FeatureSwitch* error_console(); | 26 static FeatureSwitch* error_console(); |
| 27 static FeatureSwitch* extension_action_redesign(); | |
|
Devlin
2014/06/26 16:29:13
nit: looks like everywhere in the .cc file this is
Finnur
2014/06/27 14:23:38
Indeed.
| |
| 27 static FeatureSwitch* enable_override_bookmarks_ui(); | 28 static FeatureSwitch* enable_override_bookmarks_ui(); |
| 28 static FeatureSwitch* scripts_require_action(); | 29 static FeatureSwitch* scripts_require_action(); |
| 29 | 30 |
| 30 enum DefaultValue { | 31 enum DefaultValue { |
| 31 DEFAULT_ENABLED, | 32 DEFAULT_ENABLED, |
| 32 DEFAULT_DISABLED | 33 DEFAULT_DISABLED |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 enum OverrideValue { | 36 enum OverrideValue { |
| 36 OVERRIDE_NONE, | 37 OVERRIDE_NONE, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 const char* switch_name_; | 76 const char* switch_name_; |
| 76 bool default_value_; | 77 bool default_value_; |
| 77 OverrideValue override_value_; | 78 OverrideValue override_value_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); | 80 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace extensions | 83 } // namespace extensions |
| 83 | 84 |
| 84 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ | 85 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ |
| OLD | NEW |