OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/metrics/histogram_base.h" | 16 #include "base/metrics/histogram_base.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "components/flags_ui/feature_entry.h" | 18 #include "components/flags_ui/feature_entry.h" |
19 #include "components/flags_ui/flags_state.h" | 19 #include "components/flags_ui/flags_state.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class ListValue; | 22 class ListValue; |
23 class FeatureList; | |
Lei Zhang
2016/07/13 17:49:02
nit: alphabetical order please
jkrcal
2016/07/14 08:45:12
Done.
| |
23 } | 24 } |
24 | 25 |
25 namespace flags_ui { | 26 namespace flags_ui { |
26 class FlagsStorage; | 27 class FlagsStorage; |
27 } | 28 } |
28 | 29 |
29 namespace about_flags { | 30 namespace about_flags { |
30 | 31 |
31 // Reads the state from |flags_storage| and adds the command line flags | 32 // Reads the state from |flags_storage| and adds the command line flags |
32 // belonging to the active feature entries to |command_line|. | 33 // belonging to the active feature entries to |command_line|. |
33 void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, | 34 void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
34 base::CommandLine* command_line, | 35 base::CommandLine* command_line, |
35 flags_ui::SentinelsMode sentinels); | 36 flags_ui::SentinelsMode sentinels); |
36 | 37 |
37 // Registers variations parameter values stored in |flags_storage| (previously | 38 // Registers variations parameter values stored in |flags_storage| (previously |
Lei Zhang
2016/07/13 17:49:02
Can you update the comment to mention |feature_lis
jkrcal
2016/07/14 08:45:12
Done.
| |
38 // selected in about:flags). | 39 // selected in about:flags). |
39 void RegisterAllFeatureVariationParameters( | 40 void RegisterAllFeatureVariationParameters( |
40 flags_ui::FlagsStorage* flags_storage); | 41 flags_ui::FlagsStorage* flags_storage, |
42 base::FeatureList* feature_list); | |
41 | 43 |
42 // Compares a set of switches of the two provided command line objects and | 44 // Compares a set of switches of the two provided command line objects and |
43 // returns true if they are the same and false otherwise. | 45 // returns true if they are the same and false otherwise. |
44 // If |out_difference| is not NULL, it's filled with set_symmetric_difference | 46 // If |out_difference| is not NULL, it's filled with set_symmetric_difference |
45 // between sets. | 47 // between sets. |
46 bool AreSwitchesIdenticalToCurrentCommandLine( | 48 bool AreSwitchesIdenticalToCurrentCommandLine( |
47 const base::CommandLine& new_cmdline, | 49 const base::CommandLine& new_cmdline, |
48 const base::CommandLine& active_cmdline, | 50 const base::CommandLine& active_cmdline, |
49 std::set<base::CommandLine::StringType>* out_difference); | 51 std::set<base::CommandLine::StringType>* out_difference); |
50 | 52 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 | 96 |
95 // This value is reported as switch histogram ID if switch name has unknown | 97 // This value is reported as switch histogram ID if switch name has unknown |
96 // format. | 98 // format. |
97 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; | 99 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; |
98 | 100 |
99 } // namespace testing | 101 } // namespace testing |
100 | 102 |
101 } // namespace about_flags | 103 } // namespace about_flags |
102 | 104 |
103 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ | 105 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ |
OLD | NEW |