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

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

Issue 6004003: Introduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Eric's comments 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PREFS_PROXY_PREFS_H_
6 #define CHROME_BROWSER_PREFS_PROXY_PREFS_H_
7 #pragma once
8
9 #include <string>
10
11 namespace ProxyPrefs {
12
13 // Possible types of specifying proxy settings. Do not change the order of
14 // the constants, because numeric values are exposed to users.
15 // If you add an enum constant, you should also add a string to
16 // kProxyModeNames in the .cc file.
17 // Note that these constants serve for the internal representation in pref
18 // stores. Proxy policies use a different representation, see
19 // configuration_policy_store_interface.h.
20 enum ProxyMode {
21 // Direct connection to the network, other proxy preferences are ignored.
22 MODE_DIRECT = 0,
23
24 // Try to retrieve a PAC script from http://wpad/wpad.dat or fall back to
25 // direct connection.
26 MODE_AUTO_DETECT = 1,
27
28 // Try to retrieve a PAC script from kProxyPacURL or fall back to direct
29 // connection.
30 MODE_PAC_SCRIPT = 2,
31
32 // Use the settings specified in kProxyServer and kProxyBypassList.
33 MODE_FIXED_SERVERS = 3,
34
35 // The system's proxy settings are used, other proxy preferences are
36 // ignored.
37 MODE_SYSTEM = 4,
38
39 NUM_MODES
Mattias Nissler (ping if slow) 2010/12/22 10:22:12 Shouldn't this also be prefixed by MODE_? Like MOD
battre 2010/12/22 14:41:16 Done.
40 };
41
42 bool IntToProxyMode(int in_value, ProxyMode* out_value);
43 bool StringToProxyMode(const std::string& in_value,
44 ProxyMode* out_value);
45
46 } // namespace
47
48 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698