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

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

Issue 2515613002: deprecate FLAGS_quic_disable_pre_34 (Closed)
Patch Set: 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
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_http_stream.h" 5 #include "net/quic/chromium/quic_http_stream.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 OnIOComplete(OK); 128 OnIOComplete(OK);
129 } 129 }
130 130
131 HttpResponseInfo::ConnectionInfo QuicHttpStream::ConnectionInfoFromQuicVersion( 131 HttpResponseInfo::ConnectionInfo QuicHttpStream::ConnectionInfoFromQuicVersion(
132 QuicVersion quic_version) { 132 QuicVersion quic_version) {
133 switch (quic_version) { 133 switch (quic_version) {
134 case QUIC_VERSION_UNSUPPORTED: 134 case QUIC_VERSION_UNSUPPORTED:
135 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION; 135 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION;
136 case QUIC_VERSION_32:
137 return HttpResponseInfo::CONNECTION_INFO_QUIC_32;
138 case QUIC_VERSION_33:
139 return HttpResponseInfo::CONNECTION_INFO_QUIC_33;
140 case QUIC_VERSION_34: 136 case QUIC_VERSION_34:
141 return HttpResponseInfo::CONNECTION_INFO_QUIC_34; 137 return HttpResponseInfo::CONNECTION_INFO_QUIC_34;
142 case QUIC_VERSION_35: 138 case QUIC_VERSION_35:
143 return HttpResponseInfo::CONNECTION_INFO_QUIC_35; 139 return HttpResponseInfo::CONNECTION_INFO_QUIC_35;
144 case QUIC_VERSION_36: 140 case QUIC_VERSION_36:
145 return HttpResponseInfo::CONNECTION_INFO_QUIC_36; 141 return HttpResponseInfo::CONNECTION_INFO_QUIC_36;
146 } 142 }
147 NOTREACHED(); 143 NOTREACHED();
148 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION; 144 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION;
149 } 145 }
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 closed_is_first_stream_ = stream_->IsFirstStream(); 856 closed_is_first_stream_ = stream_->IsFirstStream();
861 stream_ = nullptr; 857 stream_ = nullptr;
862 858
863 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress 859 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress
864 // read. 860 // read.
865 if (request_body_stream_) 861 if (request_body_stream_)
866 request_body_stream_->Reset(); 862 request_body_stream_->Reset();
867 } 863 }
868 864
869 } // namespace net 865 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_connection_logger.cc ('k') | net/quic/core/congestion_control/general_loss_algorithm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698