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

Side by Side Diff: net/proxy/proxy_resolver_mac.h

Issue 8985012: base::Bind: Convert net/proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more include. Created 9 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 | « net/proxy/proxy_resolver.h ('k') | net/proxy/proxy_resolver_mac.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) 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_
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver.h ('k') | net/proxy/proxy_resolver_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698