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_WINHTTP_H_ | 5 #ifndef NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |
6 #define NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ | 6 #define NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
9 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
10 #include "net/proxy/proxy_resolver_factory.h" | 11 #include "net/proxy/proxy_resolver_factory.h" |
11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 // An implementation of ProxyResolverFactory that uses WinHTTP and the system | 16 // An implementation of ProxyResolverFactory that uses WinHTTP and the system |
16 // proxy settings. | 17 // proxy settings. |
17 class NET_EXPORT_PRIVATE ProxyResolverFactoryWinHttp | 18 class NET_EXPORT_PRIVATE ProxyResolverFactoryWinHttp |
18 : public ProxyResolverFactory { | 19 : public ProxyResolverFactory { |
19 public: | 20 public: |
20 ProxyResolverFactoryWinHttp(); | 21 ProxyResolverFactoryWinHttp(); |
21 | 22 |
22 int CreateProxyResolver( | 23 int CreateProxyResolver( |
23 const scoped_refptr<ProxyResolverScriptData>& pac_script, | 24 const scoped_refptr<ProxyResolverScriptData>& pac_script, |
24 scoped_ptr<ProxyResolver>* resolver, | 25 scoped_ptr<ProxyResolver>* resolver, |
25 const CompletionCallback& callback, | 26 const CompletionCallback& callback, |
26 scoped_ptr<Request>* request) override; | 27 scoped_ptr<Request>* request) override; |
27 | 28 |
28 private: | 29 private: |
29 DISALLOW_COPY_AND_ASSIGN(ProxyResolverFactoryWinHttp); | 30 DISALLOW_COPY_AND_ASSIGN(ProxyResolverFactoryWinHttp); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace net | 33 } // namespace net |
33 | 34 |
34 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ | 35 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |
OLD | NEW |