| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |