| Index: net/proxy/proxy_config_source.h
|
| diff --git a/net/proxy/proxy_config_source.h b/net/proxy/proxy_config_source.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a1b0cce12b5247fe42c41ce8cd4fa22078d97b44
|
| --- /dev/null
|
| +++ b/net/proxy/proxy_config_source.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_PROXY_PROXY_CONFIG_SOURCE_H_
|
| +#define NET_PROXY_PROXY_CONFIG_SOURCE_H_
|
| +#pragma once
|
| +
|
| +namespace net {
|
| +
|
| +// Source of the configuration settings encapsulated in a ProxyConfig object.
|
| +
|
| +// The source information is used for credentials use policy determination and
|
| +// logging. When adding new values, remember to add a string to kSourceNames[]
|
| +// in proxy_config_source.cc.
|
| +enum ProxyConfigSource {
|
| + PROXY_CONFIG_SOURCE_UNKNOWN, // The source hasn't been set.
|
| + PROXY_CONFIG_SOURCE_NONE, // No explicit proxy settings.
|
| + PROXY_CONFIG_SOURCE_SYSTEM, // System settings (Win/Mac).
|
| + PROXY_CONFIG_SOURCE_SYSTEM_FAILED, // Default settings after failure to
|
| + // determine system settings.
|
| + PROXY_CONFIG_SOURCE_GCONF, // GConf (Linux)
|
| + PROXY_CONFIG_SOURCE_GSETTINGS, // GSettings (Linux).
|
| + PROXY_CONFIG_SOURCE_KDE, // KDE (Linux).
|
| + PROXY_CONFIG_SOURCE_ENV, // Environment variables.
|
| + PROXY_CONFIG_SOURCE_CUSTOM, // Custom settings local to the
|
| + // application (command line,
|
| + // extensions, application
|
| + // specific preferences, etc.)
|
| + PROXY_CONFIG_SOURCE_TEST, // Test settings.
|
| + NUM_PROXY_CONFIG_SOURCES
|
| +};
|
| +
|
| +// Returns a textual representation of the source.
|
| +const char* ProxyConfigSourceToString(ProxyConfigSource source);
|
| +
|
| +} // namespace
|
| +
|
| +#endif // NET_PROXY_PROXY_CONFIG_SOURCE_H_
|
|
|