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_api.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_API 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 CompletionCallback* callback, | 27 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 void CancelSetPacScript() OVERRIDE; | 33 virtual void CancelSetPacScript() OVERRIDE; |
34 | 34 |
35 virtual int SetPacScript( | 35 virtual int SetPacScript( |
36 const scoped_refptr<ProxyResolverScriptData>& script_data, | 36 const scoped_refptr<ProxyResolverScriptData>& script_data, |
37 CompletionCallback* /*callback*/) OVERRIDE; | 37 CompletionCallback* /*callback*/) OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 scoped_refptr<ProxyResolverScriptData> script_data_; | 40 scoped_refptr<ProxyResolverScriptData> script_data_; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace net | 43 } // namespace net |
44 | 44 |
45 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ | 45 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ |
OLD | NEW |