| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_ABOUT_FLAGS_H_ | 5 #ifndef CHROME_BROWSER_ABOUT_FLAGS_H_ |
| 6 #define CHROME_BROWSER_ABOUT_FLAGS_H_ | 6 #define CHROME_BROWSER_ABOUT_FLAGS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 | 13 |
| 14 class PrefService; | 14 class PrefService; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class ListValue; | 17 class ListValue; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace about_flags { | 20 namespace about_flags { |
| 21 | 21 |
| 22 // Enumeration of OSs. | 22 // Enumeration of OSs. |
| 23 // This is exposed only for testing. | 23 // This is exposed only for testing. |
| 24 enum { kOsMac = 1 << 0, kOsWin = 1 << 1, kOsLinux = 1 << 2 , kOsCrOS = 1 << 3 }; | 24 enum { kOsMac = 1 << 0, kOsWin = 1 << 1, kOsLinux = 1 << 2 , kOsCrOS = 1 << 3, |
| 25 kOsAndroid = 1 << 4 }; |
| 25 | 26 |
| 26 // Experiment is used internally by about_flags to describe an experiment (and | 27 // Experiment is used internally by about_flags to describe an experiment (and |
| 27 // for testing). | 28 // for testing). |
| 28 // This is exposed only for testing. | 29 // This is exposed only for testing. |
| 29 struct Experiment { | 30 struct Experiment { |
| 30 enum Type { | 31 enum Type { |
| 31 // An experiment with a single value. This is typically what you want. | 32 // An experiment with a single value. This is typically what you want. |
| 32 SINGLE_VALUE, | 33 SINGLE_VALUE, |
| 33 | 34 |
| 34 // The experiment has multiple values only one of which is ever enabled. | 35 // The experiment has multiple values only one of which is ever enabled. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 // Separator used for multi values. Multi values are represented in prefs as | 128 // Separator used for multi values. Multi values are represented in prefs as |
| 128 // name-of-experiment + kMultiSeparator + selected_index. | 129 // name-of-experiment + kMultiSeparator + selected_index. |
| 129 extern const char kMultiSeparator[]; | 130 extern const char kMultiSeparator[]; |
| 130 | 131 |
| 131 } // namespace testing | 132 } // namespace testing |
| 132 | 133 |
| 133 } // namespace about_flags | 134 } // namespace about_flags |
| 134 | 135 |
| 135 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ | 136 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ |
| OLD | NEW |