[email protected] | 153d44b | 2008-10-31 17:15:56 | [diff] [blame] | 1 | // Copyright (c) 2008 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ | ||||
6 | #define NET_PROXY_PROXY_RESOLVER_MAC_H_ | ||||
7 | |||||
[email protected] | 7dc52f2 | 2009-03-02 22:37:18 | [diff] [blame^] | 8 | #include "net/proxy/proxy_config_service.h" |
9 | #include "net/proxy/proxy_resolver.h" | ||||
[email protected] | 153d44b | 2008-10-31 17:15:56 | [diff] [blame] | 10 | |
11 | namespace net { | ||||
12 | |||||
13 | // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement | ||||
14 | // proxies. | ||||
15 | class ProxyResolverMac : public ProxyResolver { | ||||
16 | public: | ||||
[email protected] | 45bdf86 | 2009-02-23 19:04:40 | [diff] [blame] | 17 | ProxyResolverMac() : ProxyResolver(true) {} |
18 | |||||
[email protected] | 153d44b | 2008-10-31 17:15:56 | [diff] [blame] | 19 | // ProxyResolver methods: |
[email protected] | 96fbab4 | 2008-12-02 06:57:44 | [diff] [blame] | 20 | virtual int GetProxyForURL(const GURL& query_url, |
21 | const GURL& pac_url, | ||||
[email protected] | 153d44b | 2008-10-31 17:15:56 | [diff] [blame] | 22 | ProxyInfo* results); |
23 | }; | ||||
24 | |||||
[email protected] | 51fff29d | 2008-12-19 22:17:53 | [diff] [blame] | 25 | class ProxyConfigServiceMac : public ProxyConfigService { |
26 | public: | ||||
27 | // ProxyConfigService methods: | ||||
28 | virtual int GetProxyConfig(ProxyConfig* config); | ||||
29 | }; | ||||
30 | |||||
[email protected] | 153d44b | 2008-10-31 17:15:56 | [diff] [blame] | 31 | } // namespace net |
32 | |||||
33 | #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ |