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

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

Powered by Google App Engine
This is Rietveld 408576698