| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |