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

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: Extraction undone - as per Mattias' request 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 // Possible types of specifying proxy settings. Do not change the order of
13 // the constants, because numeric values are exposed to users.
14 // If you add an enum constant, you should also add a string to
15 // kProxyModeNames in the .cc file.
16 // Note that these constants serve for the internal representation in pref
17 // stores. Proxy policies use a different representation, see
18 // configuration_policy_store_interface.h.
Mattias Nissler (ping if slow) 2010/12/21 15:54:29 The last 3 lines of the comment feel like they rea
battre (please use the other) 2010/12/21 20:14:09 They both cross reference each other. I think it i
Mattias Nissler (ping if slow) 2010/12/22 10:22:11 Yeah, but the pref layer should not depend on what
battre 2010/12/22 14:41:16 I agree. Done.
19 enum ProxyMode {
eroman 2010/12/21 22:55:21 nit: I suggest prefixing all of these constants by
battre 2010/12/22 10:01:27 Done.
20 // Direct connection to the network, other proxy preferences are ignored.
21 DISABLED = 0,
eroman 2010/12/21 22:55:21 I suggest calling this DIRECT rather than DISABLED
battre 2010/12/22 10:01:27 Done.
22
23 // Try to retrieve a PAC script from http://wpad/wpad.dat or fall back to
24 // direct connection.
25 AUTO_DETECT = 1,
26
27 // Try to retrieve a PAC script from kProxyPacURL or fall back to direct
28 // connection.
29 PAC_SCRIPT = 2,
30
31 // Use the settings specified in kProxyServer and kProxyBypassList.
32 FIXED_SERVERS = 3,
eroman 2010/12/21 22:55:21 See my comment about storing the proxy servers for
battre 2010/12/22 10:01:27 Noted in http://crbug.com/67779
33
34 // The system's proxy settings are used, other proxy preferences are
35 // ignored.
36 SYSTEM = 4,
37
38 NUM_MODES
39 };
40
41 bool IntToProxyMode(int in_value, ProxyMode* out_value);
42 bool StringToProxyMode(const std::string& in_value,
43 ProxyMode* out_value);
44 };
45
46 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698