xref: /aosp_15_r20/external/cronet/net/proxy_resolution/win/proxy_resolver_winhttp.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NET_PROXY_RESOLUTION_WIN_PROXY_RESOLVER_WINHTTP_H_
6 #define NET_PROXY_RESOLUTION_WIN_PROXY_RESOLVER_WINHTTP_H_
7 
8 #include "base/compiler_specific.h"
9 #include "net/base/completion_once_callback.h"
10 #include "net/base/net_export.h"
11 #include "net/proxy_resolution/proxy_resolver_factory.h"
12 #include "url/gurl.h"
13 
14 namespace net {
15 
16 // An implementation of ProxyResolverFactory that uses WinHTTP and the system
17 // proxy settings.
18 class NET_EXPORT_PRIVATE ProxyResolverFactoryWinHttp
19     : public ProxyResolverFactory {
20  public:
21   ProxyResolverFactoryWinHttp();
22 
23   ProxyResolverFactoryWinHttp(const ProxyResolverFactoryWinHttp&) = delete;
24   ProxyResolverFactoryWinHttp& operator=(const ProxyResolverFactoryWinHttp&) =
25       delete;
26 
27   int CreateProxyResolver(const scoped_refptr<PacFileData>& pac_script,
28                           std::unique_ptr<ProxyResolver>* resolver,
29                           CompletionOnceCallback callback,
30                           std::unique_ptr<Request>* request) override;
31 };
32 
33 }  // namespace net
34 
35 #endif  // NET_PROXY_RESOLUTION_WIN_PROXY_RESOLVER_WINHTTP_H_
36