| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ | 5 #ifndef COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ |
| 6 #define COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ | 6 #define COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class FeatureList; | 20 class FeatureList; |
| 21 class ListValue; | 21 class ListValue; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace flags_ui { | 24 namespace flags_ui { |
| 25 | 25 |
| 26 // Internal functionality exposed for tests. | 26 // Internal functionality exposed for tests. |
| 27 namespace internal { | 27 namespace internal { |
| 28 // The trial group selected when feature variation parameters are registered via | 28 // The trial group selected when feature variation parameters are registered via |
| 29 // FlagsState::RegisterFeatureVariationParameters(). | 29 // FlagsState::RegisterFeatureVariationParameters(). |
| 30 extern const char kTrialGroupAboutFlags[]; | 30 extern const char kDefaultGroupNameAboutFlags[]; |
| 31 // The trial name used when feature variation parameters are registered for a |
| 32 // FEATURE_WITH_VARIATIONS_VALUE_TYPE_WITH_DEFAULT_TRIAL FeatureEntry. |
| 33 extern const char kDefaultTrialNameAboutFlags[]; |
| 31 } // namespace internal | 34 } // namespace internal |
| 32 | 35 |
| 33 struct FeatureEntry; | 36 struct FeatureEntry; |
| 34 class FlagsStorage; | 37 class FlagsStorage; |
| 35 struct SwitchEntry; | 38 struct SwitchEntry; |
| 36 | 39 |
| 37 // Enumeration of OSs. | 40 // Enumeration of OSs. |
| 38 enum { | 41 enum { |
| 39 kOsMac = 1 << 0, | 42 kOsMac = 1 << 0, |
| 40 kOsWin = 1 << 1, | 43 kOsWin = 1 << 1, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // Map from switch name to a set of string, that keeps track which strings | 207 // Map from switch name to a set of string, that keeps track which strings |
| 205 // were appended to existing (list value) switches. | 208 // were appended to existing (list value) switches. |
| 206 std::map<std::string, std::set<std::string>> appended_switches_; | 209 std::map<std::string, std::set<std::string>> appended_switches_; |
| 207 | 210 |
| 208 DISALLOW_COPY_AND_ASSIGN(FlagsState); | 211 DISALLOW_COPY_AND_ASSIGN(FlagsState); |
| 209 }; | 212 }; |
| 210 | 213 |
| 211 } // namespace flags_ui | 214 } // namespace flags_ui |
| 212 | 215 |
| 213 #endif // COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ | 216 #endif // COMPONENTS_FLAGS_UI_FLAGS_STATE_H_ |
| OLD | NEW |