[email protected] | f4ffb7a | 2011-05-19 21:23:00 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 4 | |
[email protected] | 928fb58 | 2008-08-11 15:40:23 | [diff] [blame] | 5 | #ifndef NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |
6 | #define NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ | ||||
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 7 | |
[email protected] | c4c1b48 | 2011-07-22 17:24:26 | [diff] [blame] | 8 | #include "base/compiler_specific.h" |
Avi Drissman | 13fc893 | 2015-12-20 04:40:46 | [diff] [blame] | 9 | #include "base/macros.h" |
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 10 | #include "net/base/net_export.h" |
11 | #include "net/proxy/proxy_resolver_factory.h" | ||||
[email protected] | f89276a7 | 2013-07-12 06:41:54 | [diff] [blame] | 12 | #include "url/gurl.h" |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 13 | |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 14 | namespace net { |
15 | |||||
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 16 | // An implementation of ProxyResolverFactory that uses WinHTTP and the system |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 17 | // proxy settings. |
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 18 | class NET_EXPORT_PRIVATE ProxyResolverFactoryWinHttp |
19 | : public ProxyResolverFactory { | ||||
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 20 | public: |
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 21 | ProxyResolverFactoryWinHttp(); |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 22 | |
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 23 | int CreateProxyResolver( |
24 | const scoped_refptr<ProxyResolverScriptData>& pac_script, | ||||
danakj | 8a98ca2 | 2016-04-16 02:47:36 | [diff] [blame] | 25 | std::unique_ptr<ProxyResolver>* resolver, |
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 26 | const CompletionCallback& callback, |
danakj | 8a98ca2 | 2016-04-16 02:47:36 | [diff] [blame] | 27 | std::unique_ptr<Request>* request) override; |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 28 | |
29 | private: | ||||
sammc | 514748c | 2015-05-01 06:15:04 | [diff] [blame] | 30 | DISALLOW_COPY_AND_ASSIGN(ProxyResolverFactoryWinHttp); |
initial.commit | 586acc5fe | 2008-07-26 22:42:52 | [diff] [blame] | 31 | }; |
32 | |||||
33 | } // namespace net | ||||
34 | |||||
[email protected] | 928fb58 | 2008-08-11 15:40:23 | [diff] [blame] | 35 | #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |