OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 ProxyServer() : scheme("http"), host(""), port(INVALID_PORT) {} | 26 ProxyServer() : scheme("http"), host(""), port(INVALID_PORT) {} |
27 | 27 |
28 // The scheme of the proxy URI itself. | 28 // The scheme of the proxy URI itself. |
29 std::string scheme; | 29 std::string scheme; |
30 std::string host; | 30 std::string host; |
31 int port; | 31 int port; |
32 }; | 32 }; |
33 | 33 |
34 bool GetProxyServer(const DictionaryValue* dict, ProxyServer* proxy_server); | 34 bool GetProxyServer(const DictionaryValue* dict, ProxyServer* proxy_server); |
35 | 35 |
36 bool ApplyAutoDetect(bool auto_detect); | 36 bool ApplyMode(const std::string& mode); |
37 bool ApplyPacScript(DictionaryValue* pac_dict); | 37 bool ApplyPacScript(DictionaryValue* pac_dict); |
38 bool ApplyProxyRules(DictionaryValue* proxy_rules); | 38 bool ApplyProxyRules(DictionaryValue* proxy_rules); |
39 | 39 |
40 // Sends a notification that the given pref would like to change to the | 40 // Takes ownership of |pref_value|. |
41 // indicated pref_value. This is mainly useful so the ExtensionPrefStore can | 41 void ApplyPreference(const char* pref_path, Value* pref_value); |
42 // apply the requested change. | |
43 void SendNotification(const char* pref_path, Value* pref_value); | |
44 }; | 42 }; |
45 | 43 |
46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ |
OLD | NEW |