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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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) | 176 if (request_->load_flags & LOAD_PREFETCH) |
177 response_.unused_since_prefetch = true; | 177 response_.unused_since_prefetch = true; |
178 | 178 |
179 // 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. |
180 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) | 180 if (request_->privacy_mode == PRIVACY_MODE_ENABLED) |
181 server_ssl_config_.channel_id_enabled = false; | 181 server_ssl_config_.channel_id_enabled = false; |
182 | 182 |
183 if (session_->ssl_config_service()->SupportsFastradioPadding( | |
184 request_info->url)) { | |
185 server_ssl_config_.fastradio_padding_eligible = true; | |
186 } | |
jeremyim
2015/02/03 05:42:47
It's possible to move the fastradio config setting
| |
187 | |
183 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; | 188 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; |
184 int rv = DoLoop(OK); | 189 int rv = DoLoop(OK); |
185 if (rv == ERR_IO_PENDING) | 190 if (rv == ERR_IO_PENDING) |
186 callback_ = callback; | 191 callback_ = callback; |
187 return rv; | 192 return rv; |
188 } | 193 } |
189 | 194 |
190 int HttpNetworkTransaction::RestartIgnoringLastError( | 195 int HttpNetworkTransaction::RestartIgnoringLastError( |
191 const CompletionCallback& callback) { | 196 const CompletionCallback& callback) { |
192 DCHECK(!stream_.get()); | 197 DCHECK(!stream_.get()); |
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1530 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1535 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1531 state); | 1536 state); |
1532 break; | 1537 break; |
1533 } | 1538 } |
1534 return description; | 1539 return description; |
1535 } | 1540 } |
1536 | 1541 |
1537 #undef STATE_CASE | 1542 #undef STATE_CASE |
1538 | 1543 |
1539 } // namespace net | 1544 } // namespace net |
OLD | NEW |