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_PREFS_COMMAND_LINE_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ |
6 #define CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const char* switch_name; | 38 const char* switch_name; |
39 const char* preference_path; | 39 const char* preference_path; |
40 bool set_value; | 40 bool set_value; |
41 }; | 41 }; |
42 static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[]; | 42 static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[]; |
43 | 43 |
44 // Using the string and boolean maps, apply command-line switches to their | 44 // Using the string and boolean maps, apply command-line switches to their |
45 // corresponding preferences in this pref store. | 45 // corresponding preferences in this pref store. |
46 void ApplySimpleSwitches(); | 46 void ApplySimpleSwitches(); |
47 | 47 |
| 48 // Determines the proxy mode preference from the given proxy switches. |
| 49 void ApplyProxyMode(); |
| 50 |
48 // Weak reference. | 51 // Weak reference. |
49 const CommandLine* command_line_; | 52 const CommandLine* command_line_; |
50 | 53 |
51 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; | 54 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; |
52 | 55 |
53 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); | 56 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); |
54 }; | 57 }; |
55 | 58 |
56 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ | 59 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ |
OLD | NEW |