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

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

Issue 5701003: Intorduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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
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(int mode);
battre (please use the other) 2010/12/14 09:45:44 Insert reference to mode definitions? Should we ma
danno 2010/12/14 12:48:17 I think an enum would be better internally. On 2
gfeher 2010/12/16 10:42:04 I'll do the string->enum conversion inside this me
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 // Sends a notification that the given pref would like to change to the
41 // indicated pref_value. This is mainly useful so the ExtensionPrefStore can 41 // indicated pref_value. This is mainly useful so the ExtensionPrefStore can
42 // apply the requested change. 42 // apply the requested change.
43 void SendNotification(const char* pref_path, Value* pref_value); 43 void SendNotification(const char* pref_path, Value* pref_value);
44 }; 44 };
45 45
46 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_H_ 46 #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') | chrome/browser/extensions/extension_proxy_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698