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

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

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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/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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 OnIOComplete(OK); 136 OnIOComplete(OK);
137 } 137 }
138 138
139 HttpResponseInfo::ConnectionInfo QuicHttpStream::ConnectionInfoFromQuicVersion( 139 HttpResponseInfo::ConnectionInfo QuicHttpStream::ConnectionInfoFromQuicVersion(
140 QuicVersion quic_version) { 140 QuicVersion quic_version) {
141 switch (quic_version) { 141 switch (quic_version) {
142 case QUIC_VERSION_UNSUPPORTED: 142 case QUIC_VERSION_UNSUPPORTED:
143 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION; 143 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION;
144 case QUIC_VERSION_34:
145 return HttpResponseInfo::CONNECTION_INFO_QUIC_34;
146 case QUIC_VERSION_35: 144 case QUIC_VERSION_35:
147 return HttpResponseInfo::CONNECTION_INFO_QUIC_35; 145 return HttpResponseInfo::CONNECTION_INFO_QUIC_35;
148 case QUIC_VERSION_36: 146 case QUIC_VERSION_36:
149 return HttpResponseInfo::CONNECTION_INFO_QUIC_36; 147 return HttpResponseInfo::CONNECTION_INFO_QUIC_36;
150 case QUIC_VERSION_37: 148 case QUIC_VERSION_37:
151 return HttpResponseInfo::CONNECTION_INFO_QUIC_37; 149 return HttpResponseInfo::CONNECTION_INFO_QUIC_37;
152 case QUIC_VERSION_38: 150 case QUIC_VERSION_38:
153 return HttpResponseInfo::CONNECTION_INFO_QUIC_38; 151 return HttpResponseInfo::CONNECTION_INFO_QUIC_38;
154 case QUIC_VERSION_39: 152 case QUIC_VERSION_39:
155 return HttpResponseInfo::CONNECTION_INFO_QUIC_39; 153 return HttpResponseInfo::CONNECTION_INFO_QUIC_39;
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { 888 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) {
891 return ERR_QUIC_PROTOCOL_ERROR; 889 return ERR_QUIC_PROTOCOL_ERROR;
892 } 890 }
893 891
894 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); 892 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_);
895 893
896 return ERR_QUIC_PROTOCOL_ERROR; 894 return ERR_QUIC_PROTOCOL_ERROR;
897 } 895 }
898 896
899 } // namespace net 897 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream_test.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698