summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_proxy_api.h
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 16:29:33 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 16:29:33 +0000
commite84925d3e94486d97ba4c477b830ef2249cffff7 (patch)
tree5c74000c30019350fb35fa574d31acc99bc35611 /chrome/browser/extensions/extension_proxy_api.h
parent0983c7a0180c34abe1b0d305797e538c65fce6cc (diff)
downloadchromium_src-e84925d3e94486d97ba4c477b830ef2249cffff7.zip
chromium_src-e84925d3e94486d97ba4c477b830ef2249cffff7.tar.gz
chromium_src-e84925d3e94486d97ba4c477b830ef2249cffff7.tar.bz2
Migrate Proxy Settings API to net::ProxyServer
BUG=none TEST=none Review URL: http://codereview.chromium.org/6450006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_proxy_api.h')
-rw-r--r--chrome/browser/extensions/extension_proxy_api.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/browser/extensions/extension_proxy_api.h b/chrome/browser/extensions/extension_proxy_api.h
index ee98813..ab6f9c9 100644
--- a/chrome/browser/extensions/extension_proxy_api.h
+++ b/chrome/browser/extensions/extension_proxy_api.h
@@ -28,30 +28,6 @@ class UseCustomProxySettingsFunction : public ProxySettingsFunction {
virtual bool RunImpl();
DECLARE_EXTENSION_FUNCTION_NAME("experimental.proxy.useCustomProxySettings")
-
- private:
- // Temporary data container to pass structured elements between functions.
- struct ProxyServer {
- enum {
- INVALID_PORT = -1
- };
- ProxyServer() : scheme("http"), host(""), port(INVALID_PORT) {}
-
- // The scheme of the proxy URI itself.
- std::string scheme;
- std::string host;
- int port;
- };
-
- // Converts a proxy server description |dict| as passed by the API caller
- // (e.g. for the http proxy in the rules element) and converts it to a
- // ProxyServer. Returns true if successful.
- bool GetProxyServer(const DictionaryValue* dict, ProxyServer* proxy_server);
-
- // Converts a proxy "rules" element passed by the API caller into a proxy
- // configuration string that can be used by the proxy subsystem (see
- // proxy_config.h). Returns true if successful.
- bool GetProxyRules(DictionaryValue* proxy_rules, std::string* out);
};
class RemoveCustomProxySettingsFunction : public ProxySettingsFunction {