OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Using the string and boolean maps, apply command-line switches to their | 42 // Using the string and boolean maps, apply command-line switches to their |
43 // corresponding preferences in this pref store. | 43 // corresponding preferences in this pref store. |
44 void ApplySimpleSwitches(); | 44 void ApplySimpleSwitches(); |
45 | 45 |
46 // Determines the proxy mode preference from the given proxy switches. | 46 // Determines the proxy mode preference from the given proxy switches. |
47 void ApplyProxyMode(); | 47 void ApplyProxyMode(); |
48 | 48 |
49 // Apply the SSL/TLS preferences from the given switches. | 49 // Apply the SSL/TLS preferences from the given switches. |
50 void ApplySSLSwitches(); | 50 void ApplySSLSwitches(); |
51 | 51 |
| 52 // Apply IncognitoModeAvailability related swithches. |
| 53 void ApplyIncognitoSwitches(); |
| 54 |
52 // Weak reference. | 55 // Weak reference. |
53 const CommandLine* command_line_; | 56 const CommandLine* command_line_; |
54 | 57 |
55 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; | 58 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; |
56 | 59 |
57 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); | 60 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); |
58 }; | 61 }; |
59 | 62 |
60 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ | 63 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ |
OLD | NEW |