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

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

Issue 2461683002: Slice enum HttpResponseInfo::ConnectionInfo by QUIC version. (Closed)
Patch Set: Update recently introduced CONNECTION_INFO_QUIC occurrences. Created 4 years, 1 month 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/chromium/quic_chromium_client_session.h ('k') | net/quic/chromium/quic_http_stream.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/chromium/quic_chromium_client_session.h" 5 #include "net/quic/chromium/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 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 DCHECK(dynamic_streams().empty()); 1001 DCHECK(dynamic_streams().empty());
1002 CloseAllStreams(ERR_UNEXPECTED); 1002 CloseAllStreams(ERR_UNEXPECTED);
1003 CloseAllObservers(ERR_UNEXPECTED); 1003 CloseAllObservers(ERR_UNEXPECTED);
1004 NotifyFactoryOfSessionClosedLater(); 1004 NotifyFactoryOfSessionClosedLater();
1005 } 1005 }
1006 1006
1007 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation( 1007 void QuicChromiumClientSession::OnSuccessfulVersionNegotiation(
1008 const QuicVersion& version) { 1008 const QuicVersion& version) {
1009 logger_->OnSuccessfulVersionNegotiation(version); 1009 logger_->OnSuccessfulVersionNegotiation(version);
1010 QuicSpdySession::OnSuccessfulVersionNegotiation(version); 1010 QuicSpdySession::OnSuccessfulVersionNegotiation(version);
1011
1012 ObserverSet::iterator it = observers_.begin();
1013 while (it != observers_.end()) {
1014 Observer* observer = *it;
1015 ++it;
1016 observer->OnSuccessfulVersionNegotiation(version);
1017 }
1011 } 1018 }
1012 1019
1013 int QuicChromiumClientSession::HandleWriteError( 1020 int QuicChromiumClientSession::HandleWriteError(
1014 int error_code, 1021 int error_code,
1015 scoped_refptr<StringIOBuffer> packet) { 1022 scoped_refptr<StringIOBuffer> packet) {
1016 if (stream_factory_ == nullptr || 1023 if (stream_factory_ == nullptr ||
1017 !stream_factory_->migrate_sessions_on_network_change()) { 1024 !stream_factory_->migrate_sessions_on_network_change()) {
1018 return error_code; 1025 return error_code;
1019 } 1026 }
1020 DCHECK(packet != nullptr); 1027 DCHECK(packet != nullptr);
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 DeletePromised(promised_info); 1461 DeletePromised(promised_info);
1455 } 1462 }
1456 1463
1457 const LoadTimingInfo::ConnectTiming& 1464 const LoadTimingInfo::ConnectTiming&
1458 QuicChromiumClientSession::GetConnectTiming() { 1465 QuicChromiumClientSession::GetConnectTiming() {
1459 connect_timing_.ssl_start = connect_timing_.connect_start; 1466 connect_timing_.ssl_start = connect_timing_.connect_start;
1460 connect_timing_.ssl_end = connect_timing_.connect_end; 1467 connect_timing_.ssl_end = connect_timing_.connect_end;
1461 return connect_timing_; 1468 return connect_timing_;
1462 } 1469 }
1463 1470
1471 QuicVersion QuicChromiumClientSession::GetQuicVersion() const {
1472 return connection()->version();
1473 }
1474
1464 } // namespace net 1475 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.h ('k') | net/quic/chromium/quic_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698