| 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 #include "net/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info, | 156 int HttpNetworkTransaction::Start(const HttpRequestInfo* request_info, |
| 157 CompletionCallback* callback, | 157 CompletionCallback* callback, |
| 158 const BoundNetLog& net_log) { | 158 const BoundNetLog& net_log) { |
| 159 SIMPLE_STATS_COUNTER("HttpNetworkTransaction.Count"); | 159 SIMPLE_STATS_COUNTER("HttpNetworkTransaction.Count"); |
| 160 | 160 |
| 161 net_log_ = net_log; | 161 net_log_ = net_log; |
| 162 request_ = request_info; | 162 request_ = request_info; |
| 163 start_time_ = base::Time::Now(); | 163 start_time_ = base::Time::Now(); |
| 164 | 164 |
| 165 if (request_->load_flags & LOAD_DISABLE_CERT_REVOCATION_CHECKING) |
| 166 ssl_config_.rev_checking_enabled = false; |
| 167 |
| 165 next_state_ = STATE_CREATE_STREAM; | 168 next_state_ = STATE_CREATE_STREAM; |
| 166 int rv = DoLoop(OK); | 169 int rv = DoLoop(OK); |
| 167 if (rv == ERR_IO_PENDING) | 170 if (rv == ERR_IO_PENDING) |
| 168 user_callback_ = callback; | 171 user_callback_ = callback; |
| 169 return rv; | 172 return rv; |
| 170 } | 173 } |
| 171 | 174 |
| 172 int HttpNetworkTransaction::RestartIgnoringLastError( | 175 int HttpNetworkTransaction::RestartIgnoringLastError( |
| 173 CompletionCallback* callback) { | 176 CompletionCallback* callback) { |
| 174 DCHECK(!stream_.get()); | 177 DCHECK(!stream_.get()); |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1344 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
| 1342 state); | 1345 state); |
| 1343 break; | 1346 break; |
| 1344 } | 1347 } |
| 1345 return description; | 1348 return description; |
| 1346 } | 1349 } |
| 1347 | 1350 |
| 1348 #undef STATE_CASE | 1351 #undef STATE_CASE |
| 1349 | 1352 |
| 1350 } // namespace net | 1353 } // namespace net |
| OLD | NEW |