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

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

Issue 5701003: Intorduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indentation nit 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 class ProxyPrefs {
Mattias Nissler (ping if slow) 2010/12/20 13:34:03 Make it a namespace?
battre (please use the other) 2010/12/21 14:18:18 Done.
12 public:
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 enum ProxyServerMode {
18 // Direct connection to the network, other proxy preferences are ignored.
19 DISABLED = 0,
20
21 // Try to retrieve proxy settings from the following sources in the
22 // following order:
23 // 1. http://wpad/wpad.dat
24 // 2. The PAC script at kProxyPacUrl.
25 // 3. The settings specified in kProxyServer and kProxyBypassList
26 AUTO_DETECT = 1,
27
28 // Same as AUTO_DETECT except that 1. is always skipped.
29 MANUAL = 2,
30
31 // The system's proxy settings are used, other proxy preferences are
32 // ignored.
33 SYSTEM = 3,
34
35 NUM_MODES
36 };
37
38 static bool IntToProxyMode(int in_value, ProxyServerMode* out_value);
39 static bool StringToProxyMode(const std::string& in_value,
40 ProxyServerMode* out_value);
41 };
42
43 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698