OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 NET_PROXY_PROXY_CONFIG_SOURCE_H_ | |
6 #define NET_PROXY_PROXY_CONFIG_SOURCE_H_ | |
7 #pragma once | |
8 | |
9 namespace net { | |
10 | |
11 // Source of the configuration settings encapsulated in a ProxyConfig object. | |
12 | |
13 // The source information is used for credentials use policy determination and | |
eroman
2012/06/11 23:18:34
"for credentials use policy determination" doesn't
asanka
2012/06/12 19:37:18
Reworded.
| |
14 // logging. When adding new values, remember to add a string to kSourceNames[] | |
15 // in proxy_config_source.cc. | |
16 enum ProxyConfigSource { | |
17 PROXY_CONFIG_SOURCE_UNKNOWN, // The source hasn't been set. | |
18 PROXY_CONFIG_SOURCE_NONE, // No explicit proxy settings. | |
eroman
2012/06/11 23:18:34
I don't think we should have this, can it be delet
asanka
2012/06/12 19:37:18
Done. Went with SOURCE_UNKNOWN.
| |
19 PROXY_CONFIG_SOURCE_SYSTEM, // System settings (Win/Mac). | |
20 PROXY_CONFIG_SOURCE_SYSTEM_FAILED, // Default settings after failure to | |
21 // determine system settings. | |
22 PROXY_CONFIG_SOURCE_GCONF, // GConf (Linux) | |
23 PROXY_CONFIG_SOURCE_GSETTINGS, // GSettings (Linux). | |
24 PROXY_CONFIG_SOURCE_KDE, // KDE (Linux). | |
25 PROXY_CONFIG_SOURCE_ENV, // Environment variables. | |
26 PROXY_CONFIG_SOURCE_CUSTOM, // Custom settings local to the | |
27 // application (command line, | |
28 // extensions, application | |
29 // specific preferences, etc.) | |
30 PROXY_CONFIG_SOURCE_TEST, // Test settings. | |
31 NUM_PROXY_CONFIG_SOURCES | |
32 }; | |
33 | |
34 // Returns a textual representation of the source. | |
35 const char* ProxyConfigSourceToString(ProxyConfigSource source); | |
36 | |
37 } // namespace | |
eroman
2012/06/11 23:18:34
namespace net
asanka
2012/06/12 19:37:18
Done.
| |
38 | |
39 #endif // NET_PROXY_PROXY_CONFIG_SOURCE_H_ | |
OLD | NEW |