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

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

Issue 149525: Remove the concept of threading from ProxyService, and move it into the Proxy... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add missing header for mac Created 11 years, 5 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 | « net/proxy/proxy_resolver_v8_unittest.cc ('k') | net/proxy/proxy_resolver_winhttp.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string>
9
10 #include "googleurl/src/gurl.h"
8 #include "net/proxy/proxy_resolver.h" 11 #include "net/proxy/proxy_resolver.h"
9 12
10 typedef void* HINTERNET; // From winhttp.h 13 typedef void* HINTERNET; // From winhttp.h
11 14
12 namespace net { 15 namespace net {
13 16
14 // An implementation of ProxyResolver that uses WinHTTP and the system 17 // An implementation of ProxyResolver that uses WinHTTP and the system
15 // proxy settings. 18 // proxy settings.
16 class ProxyResolverWinHttp : public ProxyResolver { 19 class ProxyResolverWinHttp : public ProxyResolver {
17 public: 20 public:
18 ProxyResolverWinHttp(); 21 ProxyResolverWinHttp();
19 ~ProxyResolverWinHttp(); 22 virtual ~ProxyResolverWinHttp();
20 23
21 // ProxyResolver implementation: 24 // ProxyResolver implementation:
22 virtual int GetProxyForURL(const GURL& query_url, 25 virtual int GetProxyForURL(const GURL& url,
23 const GURL& pac_url, 26 ProxyInfo* results,
24 ProxyInfo* results); 27 CompletionCallback* /*callback*/,
28 RequestHandle* /*request*/);
29 virtual void CancelRequest(RequestHandle request);
25 30
26 private: 31 private:
27 bool OpenWinHttpSession(); 32 // ProxyResolver implementation:
28 void CloseWinHttpSession(); 33 virtual void SetPacScriptByUrlInternal(const GURL& pac_url);
34
35 bool OpenWinHttpSession();
36 void CloseWinHttpSession();
29 37
30 // Proxy configuration is cached on the session handle. 38 // Proxy configuration is cached on the session handle.
31 HINTERNET session_handle_; 39 HINTERNET session_handle_;
32 40
41 GURL pac_url_;
42
33 DISALLOW_COPY_AND_ASSIGN(ProxyResolverWinHttp); 43 DISALLOW_COPY_AND_ASSIGN(ProxyResolverWinHttp);
34 }; 44 };
35 45
36 } // namespace net 46 } // namespace net
37 47
38 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_ 48 #endif // NET_PROXY_PROXY_RESOLVER_WINHTTP_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_v8_unittest.cc ('k') | net/proxy/proxy_resolver_winhttp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698