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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 base::CommandLine* command_line, | 114 base::CommandLine* command_line, |
115 SentinelsMode sentinels); | 115 SentinelsMode sentinels); |
116 | 116 |
117 // Compares a set of switches of the two provided command line objects and | 117 // Compares a set of switches of the two provided command line objects and |
118 // returns true if they are the same and false otherwise. | 118 // returns true if they are the same and false otherwise. |
119 // If |out_difference| is not NULL, it's filled with set_symmetric_difference | 119 // If |out_difference| is not NULL, it's filled with set_symmetric_difference |
120 // between sets. | 120 // between sets. |
121 bool AreSwitchesIdenticalToCurrentCommandLine( | 121 bool AreSwitchesIdenticalToCurrentCommandLine( |
122 const base::CommandLine& new_cmdline, | 122 const base::CommandLine& new_cmdline, |
123 const base::CommandLine& active_cmdline, | 123 const base::CommandLine& active_cmdline, |
124 std::set<CommandLine::StringType>* out_difference); | 124 std::set<base::CommandLine::StringType>* out_difference); |
125 | 125 |
126 // Differentiate between generic flags available on a per session base and flags | 126 // Differentiate between generic flags available on a per session base and flags |
127 // that influence the whole machine and can be said by the admin only. This flag | 127 // that influence the whole machine and can be said by the admin only. This flag |
128 // is relevant for ChromeOS for now only and dictates whether entries marked | 128 // is relevant for ChromeOS for now only and dictates whether entries marked |
129 // with the |kOsCrOSOwnerOnly| label should be enabled in the UI or not. | 129 // with the |kOsCrOSOwnerOnly| label should be enabled in the UI or not. |
130 enum FlagAccess { kGeneralAccessFlagsOnly, kOwnerAccessToFlags }; | 130 enum FlagAccess { kGeneralAccessFlagsOnly, kOwnerAccessToFlags }; |
131 | 131 |
132 // Get the list of experiments. Experiments that are available on the current | 132 // Get the list of experiments. Experiments that are available on the current |
133 // platform are appended to |supported_experiments|; all other experiments are | 133 // platform are appended to |supported_experiments|; all other experiments are |
134 // appended to |unsupported_experiments|. | 134 // appended to |unsupported_experiments|. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 // This value is reported as switch histogram ID if switch name has unknown | 191 // This value is reported as switch histogram ID if switch name has unknown |
192 // format. | 192 // format. |
193 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; | 193 extern const base::HistogramBase::Sample kBadSwitchFormatHistogramId; |
194 | 194 |
195 } // namespace testing | 195 } // namespace testing |
196 | 196 |
197 } // namespace about_flags | 197 } // namespace about_flags |
198 | 198 |
199 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ | 199 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ |
OLD | NEW |