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

Side by Side Diff: net/quic/quic_chromium_client_session.cc

Issue 1613513003: Early connection migration in QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Comments addressed. Created 4 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
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »
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/quic/quic_chromium_client_session.h" 5 #include "net/quic/quic_chromium_client_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 CloseAllObservers(ERR_UNEXPECTED); 794 CloseAllObservers(ERR_UNEXPECTED);
795 NotifyFactoryOfSessionClosedLater(); 795 NotifyFactoryOfSessionClosedLater();
796 } 796 }
797 797
798 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation( 798 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation(
799 const QuicVersion& version) { 799 const QuicVersion& version) {
800 logger_->OnSuccessfulVersionNegotiation(version); 800 logger_->OnSuccessfulVersionNegotiation(version);
801 QuicSpdySession::OnSuccessfulVersionNegotiation(version); 801 QuicSpdySession::OnSuccessfulVersionNegotiation(version);
802 } 802 }
803 803
804 void QuicChromiumClientSession::OnPathDegrading() {
805 stream_factory_->MaybeMigrateSessionEarly(this);
806 }
807
804 void QuicChromiumClientSession::OnProofValid( 808 void QuicChromiumClientSession::OnProofValid(
805 const QuicCryptoClientConfig::CachedState& cached) { 809 const QuicCryptoClientConfig::CachedState& cached) {
806 DCHECK(cached.proof_valid()); 810 DCHECK(cached.proof_valid());
807 811
808 if (!server_info_) { 812 if (!server_info_) {
809 return; 813 return;
810 } 814 }
811 815
812 QuicServerInfo::State* state = server_info_->mutable_state(); 816 QuicServerInfo::State* state = server_info_->mutable_state();
813 817
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 QuicChromiumPacketReader* reader = packet_readers_.back().release(); 1045 QuicChromiumPacketReader* reader = packet_readers_.back().release();
1042 packet_readers_.pop_back(); 1046 packet_readers_.pop_back();
1043 return reader; 1047 return reader;
1044 } 1048 }
1045 1049
1046 bool QuicChromiumClientSession::IsAuthorized(const std::string& hostname) { 1050 bool QuicChromiumClientSession::IsAuthorized(const std::string& hostname) {
1047 return CanPool(hostname, server_id_.privacy_mode()); 1051 return CanPool(hostname, server_id_.privacy_mode());
1048 } 1052 }
1049 1053
1050 } // namespace net 1054 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698