OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 10 #include "base/bind.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 SIMPLE_STATS_COUNTER("HttpNetworkTransaction.Count"); | 166 SIMPLE_STATS_COUNTER("HttpNetworkTransaction.Count"); |
167 | 167 |
168 net_log_ = net_log; | 168 net_log_ = net_log; |
169 request_ = request_info; | 169 request_ = request_info; |
170 | 170 |
171 if (request_->load_flags & LOAD_DISABLE_CERT_REVOCATION_CHECKING) { | 171 if (request_->load_flags & LOAD_DISABLE_CERT_REVOCATION_CHECKING) { |
172 server_ssl_config_.rev_checking_enabled = false; | 172 server_ssl_config_.rev_checking_enabled = false; |
173 proxy_ssl_config_.rev_checking_enabled = false; | 173 proxy_ssl_config_.rev_checking_enabled = false; |
174 } | 174 } |
175 | 175 |
| 176 if (request_->load_flags & LOAD_PREFETCH) |
| 177 response_.unused_since_prefetch = true; |
| 178 |
176 // Channel ID is disabled if privacy mode is enabled for this request. | 179 // Channel ID is disabled if privacy mode is enabled for this request. |
177 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) | 180 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) |
178 server_ssl_config_.channel_id_enabled = false; | 181 server_ssl_config_.channel_id_enabled = false; |
179 | 182 |
180 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; | 183 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; |
181 int rv = DoLoop(OK); | 184 int rv = DoLoop(OK); |
182 if (rv == ERR_IO_PENDING) | 185 if (rv == ERR_IO_PENDING) |
183 callback_ = callback; | 186 callback_ = callback; |
184 return rv; | 187 return rv; |
185 } | 188 } |
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1504 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1502 state); | 1505 state); |
1503 break; | 1506 break; |
1504 } | 1507 } |
1505 return description; | 1508 return description; |
1506 } | 1509 } |
1507 | 1510 |
1508 #undef STATE_CASE | 1511 #undef STATE_CASE |
1509 | 1512 |
1510 } // namespace net | 1513 } // namespace net |
OLD | NEW |