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

Side by Side Diff: net/http/http_transaction_winhttp.h

Issue 13701: Use automatic memory management for URLRequestContext's members.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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/http/http_network_transaction_unittest.cc ('k') | net/http/http_transaction_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_HTTP_HTTP_TRANSACTION_WINHTTP_H__ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__
6 #define NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ 6 #define NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <winhttp.h> 9 #include <winhttp.h>
10 10
(...skipping 22 matching lines...) Expand all
33 DCHECK(proxy_service); 33 DCHECK(proxy_service);
34 } 34 }
35 ~Factory(); 35 ~Factory();
36 36
37 virtual HttpTransaction* CreateTransaction(); 37 virtual HttpTransaction* CreateTransaction();
38 virtual HttpCache* GetCache(); 38 virtual HttpCache* GetCache();
39 virtual void Suspend(bool suspend); 39 virtual void Suspend(bool suspend);
40 40
41 private: 41 private:
42 Session* session_; 42 Session* session_;
43 ProxyService* proxy_service_; 43 scoped_refptr<ProxyService> proxy_service_;
44 bool is_suspended_; 44 bool is_suspended_;
45 DISALLOW_EVIL_CONSTRUCTORS(Factory); 45 DISALLOW_EVIL_CONSTRUCTORS(Factory);
46 }; 46 };
47 47
48 virtual ~HttpTransactionWinHttp(); 48 virtual ~HttpTransactionWinHttp();
49 49
50 // HttpTransaction methods: 50 // HttpTransaction methods:
51 virtual int Start(const HttpRequestInfo*, CompletionCallback*); 51 virtual int Start(const HttpRequestInfo*, CompletionCallback*);
52 virtual int RestartIgnoringLastError(CompletionCallback*); 52 virtual int RestartIgnoringLastError(CompletionCallback*);
53 virtual int RestartWithAuth(const std::wstring&, 53 virtual int RestartWithAuth(const std::wstring&,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // True if we have used the username/password embedded in the URL. 190 // True if we have used the username/password embedded in the URL.
191 bool used_embedded_credentials_; 191 bool used_embedded_credentials_;
192 192
193 DISALLOW_EVIL_CONSTRUCTORS(HttpTransactionWinHttp); 193 DISALLOW_EVIL_CONSTRUCTORS(HttpTransactionWinHttp);
194 }; 194 };
195 195
196 } // namespace net 196 } // namespace net
197 197
198 #endif // NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__ 198 #endif // NET_HTTP_HTTP_TRANSACTION_WINHTTP_H__
199 199
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_transaction_winhttp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698