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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 proxy_ssl_config_.rev_checking_enabled = false; | 188 proxy_ssl_config_.rev_checking_enabled = false; |
189 } | 189 } |
190 | 190 |
191 if (request_->load_flags & LOAD_PREFETCH) | 191 if (request_->load_flags & LOAD_PREFETCH) |
192 response_.unused_since_prefetch = true; | 192 response_.unused_since_prefetch = true; |
193 | 193 |
194 // Channel ID is disabled if privacy mode is enabled for this request. | 194 // Channel ID is disabled if privacy mode is enabled for this request. |
195 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) | 195 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) |
196 server_ssl_config_.channel_id_enabled = false; | 196 server_ssl_config_.channel_id_enabled = false; |
197 | 197 |
198 if (server_ssl_config_.fastradio_padding_enabled) { | |
199 server_ssl_config_.fastradio_padding_eligible = | |
200 session_->ssl_config_service()->SupportsFastradioPadding( | |
201 request_info->url); | |
202 } | |
203 | |
204 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; | 198 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; |
205 int rv = DoLoop(OK); | 199 int rv = DoLoop(OK); |
206 if (rv == ERR_IO_PENDING) | 200 if (rv == ERR_IO_PENDING) |
207 callback_ = callback; | 201 callback_ = callback; |
208 return rv; | 202 return rv; |
209 } | 203 } |
210 | 204 |
211 int HttpNetworkTransaction::RestartIgnoringLastError( | 205 int HttpNetworkTransaction::RestartIgnoringLastError( |
212 const CompletionCallback& callback) { | 206 const CompletionCallback& callback) { |
213 DCHECK(!stream_.get()); | 207 DCHECK(!stream_.get()); |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 DCHECK(stream_request_); | 1648 DCHECK(stream_request_); |
1655 | 1649 |
1656 // Since the transaction can restart with auth credentials, it may create a | 1650 // Since the transaction can restart with auth credentials, it may create a |
1657 // stream more than once. Accumulate all of the connection attempts across | 1651 // stream more than once. Accumulate all of the connection attempts across |
1658 // those streams by appending them to the vector: | 1652 // those streams by appending them to the vector: |
1659 for (const auto& attempt : stream_request_->connection_attempts()) | 1653 for (const auto& attempt : stream_request_->connection_attempts()) |
1660 connection_attempts_.push_back(attempt); | 1654 connection_attempts_.push_back(attempt); |
1661 } | 1655 } |
1662 | 1656 |
1663 } // namespace net | 1657 } // namespace net |
OLD | NEW |