OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_PROXY_PROXY_RESOLVER_MAC_H_ | 5 #ifndef NET_PROXY_PROXY_RESOLVER_MAC_H_ |
6 #define NET_PROXY_PROXY_RESOLVER_MAC_H_ | 6 #define NET_PROXY_PROXY_RESOLVER_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/proxy/proxy_resolver.h" | 13 #include "net/proxy/proxy_resolver.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement | 17 // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement |
18 // proxies. | 18 // proxies. |
19 class NET_EXPORT ProxyResolverMac : public ProxyResolver { | 19 class NET_EXPORT ProxyResolverMac : public ProxyResolver { |
20 public: | 20 public: |
21 ProxyResolverMac(); | 21 ProxyResolverMac(); |
22 virtual ~ProxyResolverMac(); | 22 virtual ~ProxyResolverMac(); |
23 | 23 |
24 // ProxyResolver methods: | 24 // ProxyResolver methods: |
25 virtual int GetProxyForURL(const GURL& url, | 25 virtual int GetProxyForURL(const GURL& url, |
26 ProxyInfo* results, | 26 ProxyInfo* results, |
27 OldCompletionCallback* callback, | 27 const net::CompletionCallback& callback, |
28 RequestHandle* request, | 28 RequestHandle* request, |
29 const BoundNetLog& net_log) OVERRIDE; | 29 const BoundNetLog& net_log) OVERRIDE; |
30 | 30 |
31 virtual void CancelRequest(RequestHandle request) OVERRIDE; | 31 virtual void CancelRequest(RequestHandle request) OVERRIDE; |
32 | 32 |
33 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE; | 33 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE; |
34 | 34 |
35 virtual LoadState GetLoadStateThreadSafe( | 35 virtual LoadState GetLoadStateThreadSafe( |
36 RequestHandle request) const OVERRIDE; | 36 RequestHandle request) const OVERRIDE; |
37 | 37 |
38 virtual void CancelSetPacScript() OVERRIDE; | 38 virtual void CancelSetPacScript() OVERRIDE; |
39 | 39 |
40 virtual int SetPacScript( | 40 virtual int SetPacScript( |
41 const scoped_refptr<ProxyResolverScriptData>& script_data, | 41 const scoped_refptr<ProxyResolverScriptData>& script_data, |
42 OldCompletionCallback* /*callback*/) OVERRIDE; | 42 const net::CompletionCallback& /*callback*/) OVERRIDE; |
43 | 43 |
44 private: | 44 private: |
45 scoped_refptr<ProxyResolverScriptData> script_data_; | 45 scoped_refptr<ProxyResolverScriptData> script_data_; |
46 }; | 46 }; |
47 | 47 |
48 } // namespace net | 48 } // namespace net |
49 | 49 |
50 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ | 50 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ |
OLD | NEW |