| 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 28 matching lines...) Expand all Loading... |
| 39 }; | 39 }; |
| 40 static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[]; | 40 static const BooleanSwitchToPreferenceMapEntry boolean_switch_map_[]; |
| 41 | 41 |
| 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. |
| 50 void ApplySSLSwitches(); |
| 51 |
| 49 // Weak reference. | 52 // Weak reference. |
| 50 const CommandLine* command_line_; | 53 const CommandLine* command_line_; |
| 51 | 54 |
| 52 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; | 55 static const StringSwitchToPreferenceMapEntry string_switch_map_[]; |
| 53 | 56 |
| 54 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); | 57 DISALLOW_COPY_AND_ASSIGN(CommandLinePrefStore); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ | 60 #endif // CHROME_BROWSER_PREFS_COMMAND_LINE_PREF_STORE_H_ |
| OLD | NEW |