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

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

Issue 7529017: mac: Components build for net (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months 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 | « no previous file | no next file » | 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_api.h"
11 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
12 #include "net/proxy/proxy_resolver.h" 13 #include "net/proxy/proxy_resolver.h"
13 14
14 namespace net { 15 namespace net {
15 16
16 // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement 17 // Implementation of ProxyResolver that uses the Mac CFProxySupport to implement
17 // proxies. 18 // proxies.
18 class ProxyResolverMac : public ProxyResolver { 19 class NET_API ProxyResolverMac : public ProxyResolver {
19 public: 20 public:
20 ProxyResolverMac(); 21 ProxyResolverMac();
21 virtual ~ProxyResolverMac(); 22 virtual ~ProxyResolverMac();
22 23
23 // ProxyResolver methods: 24 // ProxyResolver methods:
24 virtual int GetProxyForURL(const GURL& url, 25 virtual int GetProxyForURL(const GURL& url,
25 ProxyInfo* results, 26 ProxyInfo* results,
26 CompletionCallback* callback, 27 CompletionCallback* callback,
27 RequestHandle* request, 28 RequestHandle* request,
28 const BoundNetLog& net_log) OVERRIDE; 29 const BoundNetLog& net_log) OVERRIDE;
29 30
30 virtual void CancelRequest(RequestHandle request) OVERRIDE; 31 virtual void CancelRequest(RequestHandle request) OVERRIDE;
31 32
32 virtual void CancelSetPacScript() OVERRIDE; 33 virtual void CancelSetPacScript() OVERRIDE;
33 34
34 virtual int SetPacScript( 35 virtual int SetPacScript(
35 const scoped_refptr<ProxyResolverScriptData>& script_data, 36 const scoped_refptr<ProxyResolverScriptData>& script_data,
36 CompletionCallback* /*callback*/) OVERRIDE; 37 CompletionCallback* /*callback*/) OVERRIDE;
37 38
38 private: 39 private:
39 scoped_refptr<ProxyResolverScriptData> script_data_; 40 scoped_refptr<ProxyResolverScriptData> script_data_;
40 }; 41 };
41 42
42 } // namespace net 43 } // namespace net
43 44
44 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_ 45 #endif // NET_PROXY_PROXY_RESOLVER_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698