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

Side by Side Diff: chrome/browser/extensions/extension_proxy_api.h

Issue 6004003: Introduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit - alphabetize Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_proxy_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_proxy_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698