OLD | NEW |
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 #include "net/http/http_transaction_winhttp.h" | 5 #include "net/http/http_transaction_winhttp.h" |
6 | 6 |
7 #include <winhttp.h> | 7 #include <winhttp.h> |
8 | 8 |
9 #include "base/lock.h" | 9 #include "base/lock.h" |
10 #include "base/memory_debug.h" | 10 #include "base/memory_debug.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 HINTERNET OpenWinHttpSession(const std::string& user_agent); | 234 HINTERNET OpenWinHttpSession(const std::string& user_agent); |
235 | 235 |
236 // Get the SSL configuration settings and save them in rev_checking_enabled_ | 236 // Get the SSL configuration settings and save them in rev_checking_enabled_ |
237 // and secure_protocols_. | 237 // and secure_protocols_. |
238 void GetSSLConfig(); | 238 void GetSSLConfig(); |
239 | 239 |
240 HINTERNET internet_; | 240 HINTERNET internet_; |
241 HINTERNET internet_no_tls_; | 241 HINTERNET internet_no_tls_; |
242 MessageLoop* message_loop_; | 242 MessageLoop* message_loop_; |
243 ProxyService* proxy_service_; | 243 scoped_refptr<ProxyService> proxy_service_; |
244 AuthCache auth_cache_; | 244 AuthCache auth_cache_; |
245 | 245 |
246 // This event object is used when destroying a transaction. It is given | 246 // This event object is used when destroying a transaction. It is given |
247 // to the transaction's session callback if WinHTTP still has the caller's | 247 // to the transaction's session callback if WinHTTP still has the caller's |
248 // data (request info or read buffer) and we need to wait until WinHTTP is | 248 // data (request info or read buffer) and we need to wait until WinHTTP is |
249 // done with the data. | 249 // done with the data. |
250 HANDLE handle_closing_event_; | 250 HANDLE handle_closing_event_; |
251 | 251 |
252 // The following members ensure a clean destruction of the Session object. | 252 // The following members ensure a clean destruction of the Session object. |
253 // The Session destructor waits until all the request handles have been | 253 // The Session destructor waits until all the request handles have been |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 | 1817 |
1818 if (rv == ERR_IO_PENDING) { | 1818 if (rv == ERR_IO_PENDING) { |
1819 session_callback_->AddRef(); // balanced when callback runs. | 1819 session_callback_->AddRef(); // balanced when callback runs. |
1820 } else if (callback_) { | 1820 } else if (callback_) { |
1821 DoCallback(rv); | 1821 DoCallback(rv); |
1822 } | 1822 } |
1823 } | 1823 } |
1824 | 1824 |
1825 } // namespace net | 1825 } // namespace net |
1826 | 1826 |
OLD | NEW |