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

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: Style nit fixed. 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
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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 CloseAllObservers(ERR_UNEXPECTED); 786 CloseAllObservers(ERR_UNEXPECTED);
787 NotifyFactoryOfSessionClosedLater(); 787 NotifyFactoryOfSessionClosedLater();
788 } 788 }
789 789
790 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation( 790 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation(
791 const QuicVersion& version) { 791 const QuicVersion& version) {
792 logger_->OnSuccessfulVersionNegotiation(version); 792 logger_->OnSuccessfulVersionNegotiation(version);
793 QuicSpdySession::OnSuccessfulVersionNegotiation(version); 793 QuicSpdySession::OnSuccessfulVersionNegotiation(version);
794 } 794 }
795 795
796 void QuicChromiumClientSession::MaybeMigrateConnection() {
797 stream_factory_->MaybeMigrateSessionEarly(this);
798 }
799
796 void QuicChromiumClientSession::OnProofValid( 800 void QuicChromiumClientSession::OnProofValid(
797 const QuicCryptoClientConfig::CachedState& cached) { 801 const QuicCryptoClientConfig::CachedState& cached) {
798 DCHECK(cached.proof_valid()); 802 DCHECK(cached.proof_valid());
799 803
800 if (!server_info_) { 804 if (!server_info_) {
801 return; 805 return;
802 } 806 }
803 807
804 QuicServerInfo::State* state = server_info_->mutable_state(); 808 QuicServerInfo::State* state = server_info_->mutable_state();
805 809
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 } 1022 }
1019 1023
1020 const DatagramClientSocket* QuicChromiumClientSession::GetDefaultSocket() 1024 const DatagramClientSocket* QuicChromiumClientSession::GetDefaultSocket()
1021 const { 1025 const {
1022 DCHECK(sockets_.back().get() != nullptr); 1026 DCHECK(sockets_.back().get() != nullptr);
1023 // The most recently added socket is the currently active one. 1027 // The most recently added socket is the currently active one.
1024 return sockets_.back().get(); 1028 return sockets_.back().get();
1025 } 1029 }
1026 1030
1027 } // namespace net 1031 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698