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 "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "net/proxy/proxy_resolver.h" | 10 #include "net/proxy/proxy_resolver.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // ProxyResolver implementation: | 23 // ProxyResolver implementation: |
24 virtual int GetProxyForURL(const GURL& url, | 24 virtual int GetProxyForURL(const GURL& url, |
25 ProxyInfo* results, | 25 ProxyInfo* results, |
26 const net::CompletionCallback& /*callback*/, | 26 const net::CompletionCallback& /*callback*/, |
27 RequestHandle* /*request*/, | 27 RequestHandle* /*request*/, |
28 const BoundNetLog& /*net_log*/) OVERRIDE; | 28 const BoundNetLog& /*net_log*/) OVERRIDE; |
29 virtual void CancelRequest(RequestHandle request) OVERRIDE; | 29 virtual void CancelRequest(RequestHandle request) OVERRIDE; |
30 | 30 |
31 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE; | 31 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE; |
32 | 32 |
33 virtual LoadState GetLoadStateThreadSafe( | |
34 RequestHandle request) const OVERRIDE; | |
35 | |
36 virtual void CancelSetPacScript() OVERRIDE; | 33 virtual void CancelSetPacScript() OVERRIDE; |
37 | 34 |
38 virtual int SetPacScript( | 35 virtual int SetPacScript( |
39 const scoped_refptr<ProxyResolverScriptData>& script_data, | 36 const scoped_refptr<ProxyResolverScriptData>& script_data, |
40 const net::CompletionCallback& /*callback*/) OVERRIDE; | 37 const net::CompletionCallback& /*callback*/) OVERRIDE; |
41 | 38 |
42 private: | 39 private: |
43 bool OpenWinHttpSession(); | 40 bool OpenWinHttpSession(); |
44 void CloseWinHttpSession(); | 41 void CloseWinHttpSession(); |
45 | 42 |
46 // Proxy configuration is cached on the session handle. | 43 // Proxy configuration is cached on the session handle. |
47 HINTERNET session_handle_; | 44 HINTERNET session_handle_; |
48 | 45 |
49 GURL pac_url_; | 46 GURL pac_url_; |
50 | 47 |
51 DISALLOW_COPY_AND_ASSIGN(ProxyResolverWinHttp); | 48 DISALLOW_COPY_AND_ASSIGN(ProxyResolverWinHttp); |
52 }; | 49 }; |
53 | 50 |
54 } // namespace net | 51 } // namespace net |
55 | 52 |
56 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ | 53 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ |
OLD | NEW |