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

Side by Side Diff: net/proxy/proxy_config_source.h

Issue 10310179: Track sources of proxy settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright Created 8 years, 6 months 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) 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 determining how credentials are used and
14 // for logging. When adding new values, remember to add a string to
15 // kSourceNames[] in proxy_config_source.cc.
16 enum ProxyConfigSource {
17 PROXY_CONFIG_SOURCE_UNKNOWN, // The source hasn't been set.
18 PROXY_CONFIG_SOURCE_SYSTEM, // System settings (Win/Mac).
19 PROXY_CONFIG_SOURCE_SYSTEM_FAILED, // Default settings after failure to
20 // determine system settings.
21 PROXY_CONFIG_SOURCE_GCONF, // GConf (Linux)
22 PROXY_CONFIG_SOURCE_GSETTINGS, // GSettings (Linux).
23 PROXY_CONFIG_SOURCE_KDE, // KDE (Linux).
24 PROXY_CONFIG_SOURCE_ENV, // Environment variables.
25 PROXY_CONFIG_SOURCE_CUSTOM, // Custom settings local to the
26 // application (command line,
27 // extensions, application
28 // specific preferences, etc.)
29 PROXY_CONFIG_SOURCE_TEST, // Test settings.
30 NUM_PROXY_CONFIG_SOURCES
31 };
32
33 // Returns a textual representation of the source.
34 const char* ProxyConfigSourceToString(ProxyConfigSource source);
35
36 } // namespace net
37
38 #endif // NET_PROXY_PROXY_CONFIG_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698