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

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

Issue 1140153003: Disable 0RTT if server and origin have different hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.h » ('j') | net/quic/quic_stream_factory.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_stream_factory_impl_job.h" 5 #include "net/http/http_stream_factory_impl_job.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 // TODO(rch): support QUIC proxies for HTTPS urls. 796 // TODO(rch): support QUIC proxies for HTTPS urls.
797 return ERR_NOT_IMPLEMENTED; 797 return ERR_NOT_IMPLEMENTED;
798 } 798 }
799 HostPortPair destination = proxy_info_.is_quic() 799 HostPortPair destination = proxy_info_.is_quic()
800 ? proxy_info_.proxy_server().host_port_pair() 800 ? proxy_info_.proxy_server().host_port_pair()
801 : server_; 801 : server_;
802 next_state_ = STATE_INIT_CONNECTION_COMPLETE; 802 next_state_ = STATE_INIT_CONNECTION_COMPLETE;
803 bool secure_quic = using_ssl_ || proxy_info_.is_quic(); 803 bool secure_quic = using_ssl_ || proxy_info_.is_quic();
804 int rv = quic_request_.Request( 804 int rv = quic_request_.Request(
805 destination, secure_quic, request_info_.privacy_mode, 805 destination, secure_quic, request_info_.privacy_mode,
806 request_info_.method, net_log_, io_callback_); 806 origin_url_.host(), request_info_.method, net_log_, io_callback_);
807 if (rv == OK) { 807 if (rv == OK) {
808 using_existing_quic_session_ = true; 808 using_existing_quic_session_ = true;
809 } else { 809 } else {
810 // OK, there's no available QUIC session. Let |waiting_job_| resume 810 // OK, there's no available QUIC session. Let |waiting_job_| resume
811 // if it's paused. 811 // if it's paused.
812 if (waiting_job_) { 812 if (waiting_job_) {
813 waiting_job_->Resume(this); 813 waiting_job_->Resume(this);
814 waiting_job_ = NULL; 814 waiting_job_ = NULL;
815 } 815 }
816 } 816 }
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 1528
1529 void HttpStreamFactoryImpl::Job:: 1529 void HttpStreamFactoryImpl::Job::
1530 MaybeCopyConnectionAttemptsFromClientSocketHandleToRequest() { 1530 MaybeCopyConnectionAttemptsFromClientSocketHandleToRequest() {
1531 if (IsOrphaned() || !connection_) 1531 if (IsOrphaned() || !connection_)
1532 return; 1532 return;
1533 1533
1534 request_->AddConnectionAttempts(connection_->connection_attempts()); 1534 request_->AddConnectionAttempts(connection_->connection_attempts());
1535 } 1535 }
1536 1536
1537 } // namespace net 1537 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.h » ('j') | net/quic/quic_stream_factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698