Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: net/http/http_network_transaction.cc

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: CR update Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 (server_ssl_config_.fastradio_padding_enabled) {
184 server_ssl_config_.fastradio_padding_eligible =
185 session_->ssl_config_service()->SupportsFastradioPadding(
186 request_info->url);
187 }
188
183 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM; 189 next_state_ = STATE_NOTIFY_BEFORE_CREATE_STREAM;
184 int rv = DoLoop(OK); 190 int rv = DoLoop(OK);
185 if (rv == ERR_IO_PENDING) 191 if (rv == ERR_IO_PENDING)
186 callback_ = callback; 192 callback_ = callback;
187 return rv; 193 return rv;
188 } 194 }
189 195
190 int HttpNetworkTransaction::RestartIgnoringLastError( 196 int HttpNetworkTransaction::RestartIgnoringLastError(
191 const CompletionCallback& callback) { 197 const CompletionCallback& callback) {
192 DCHECK(!stream_.get()); 198 DCHECK(!stream_.get());
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1536 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1531 state); 1537 state);
1532 break; 1538 break;
1533 } 1539 }
1534 return description; 1540 return description;
1535 } 1541 }
1536 1542
1537 #undef STATE_CASE 1543 #undef STATE_CASE
1538 1544
1539 } // namespace net 1545 } // namespace net
OLDNEW
« no previous file with comments | « chrome/browser/net/ssl_config_service_manager_pref.cc ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698