summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_proxy_api.h
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 08:25:42 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 08:25:42 +0000
commitf83ccffe272a19dfa91457b6592de40347e8499b (patch)
tree9214cb2139795a94ad8c775506d6ffd601b79e30 /chrome/browser/extensions/extension_proxy_api.h
parentd3462a49e49e6b1973ae9901a438fcb866f3099a (diff)
downloadchromium_src-f83ccffe272a19dfa91457b6592de40347e8499b.zip
chromium_src-f83ccffe272a19dfa91457b6592de40347e8499b.tar.gz
chromium_src-f83ccffe272a19dfa91457b6592de40347e8499b.tar.bz2
Add support for PAC scripts (URL only, no direct data yet) and proxy auto-config to the proxy extension API.
BUG=48930 TEST=covered by browser_tests ExtensionAPITest.Proxy* Review URL: http://codereview.chromium.org/3348014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_proxy_api.h')
-rw-r--r--chrome/browser/extensions/extension_proxy_api.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_proxy_api.h b/chrome/browser/extensions/extension_proxy_api.h
index 1bc7ae3..95be304 100644
--- a/chrome/browser/extensions/extension_proxy_api.h
+++ b/chrome/browser/extensions/extension_proxy_api.h
@@ -32,6 +32,15 @@ class UseCustomProxySettingsFunction : public SyncExtensionFunction {
};
bool GetProxyServer(const DictionaryValue* dict, ProxyServer* proxy_server);
+
+ bool ApplyAutoDetect(bool auto_detect);
+ bool ApplyPacScript(DictionaryValue* pac_dict);
+ bool ApplyProxyRules(DictionaryValue* proxy_rules);
+
+ // Sends a notification that the given pref would like to change to the
+ // indicated pref_value. This is mainly useful so the ExtensionPrefStore can
+ // apply the requested change.
+ void SendNotification(const char* pref_path, Value* pref_value);
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_