Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: chrome/browser/prefs/command_line_pref_store.h

Issue 6004003: Introduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit - alphabetize Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_prefs_banner_base.cc ('k') | chrome/browser/prefs/command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698