| 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/macros.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 // Can also integrate with Finch's field trials. | 20 // Can also integrate with Finch's field trials. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const char* field_trial_name_; | 95 const char* field_trial_name_; |
| 96 bool default_value_; | 96 bool default_value_; |
| 97 OverrideValue override_value_; | 97 OverrideValue override_value_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); | 99 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace extensions | 102 } // namespace extensions |
| 103 | 103 |
| 104 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ | 104 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ |
| OLD | NEW |