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

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

Issue 2879533003: Add QUIC v40 which will be used to include changes: (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/quic/core/quic_flags_list.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_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 case QUIC_VERSION_35: 134 case QUIC_VERSION_35:
135 return HttpResponseInfo::CONNECTION_INFO_QUIC_35; 135 return HttpResponseInfo::CONNECTION_INFO_QUIC_35;
136 case QUIC_VERSION_36: 136 case QUIC_VERSION_36:
137 return HttpResponseInfo::CONNECTION_INFO_QUIC_36; 137 return HttpResponseInfo::CONNECTION_INFO_QUIC_36;
138 case QUIC_VERSION_37: 138 case QUIC_VERSION_37:
139 return HttpResponseInfo::CONNECTION_INFO_QUIC_37; 139 return HttpResponseInfo::CONNECTION_INFO_QUIC_37;
140 case QUIC_VERSION_38: 140 case QUIC_VERSION_38:
141 return HttpResponseInfo::CONNECTION_INFO_QUIC_38; 141 return HttpResponseInfo::CONNECTION_INFO_QUIC_38;
142 case QUIC_VERSION_39: 142 case QUIC_VERSION_39:
143 return HttpResponseInfo::CONNECTION_INFO_QUIC_39; 143 return HttpResponseInfo::CONNECTION_INFO_QUIC_39;
144 case QUIC_VERSION_40:
145 return HttpResponseInfo::CONNECTION_INFO_QUIC_40;
144 } 146 }
145 NOTREACHED(); 147 NOTREACHED();
146 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION; 148 return HttpResponseInfo::CONNECTION_INFO_QUIC_UNKNOWN_VERSION;
147 } 149 }
148 150
149 int QuicHttpStream::InitializeStream(const HttpRequestInfo* request_info, 151 int QuicHttpStream::InitializeStream(const HttpRequestInfo* request_info,
150 RequestPriority priority, 152 RequestPriority priority,
151 const NetLogWithSource& stream_net_log, 153 const NetLogWithSource& stream_net_log,
152 const CompletionCallback& callback) { 154 const CompletionCallback& callback) {
153 CHECK(callback_.is_null()); 155 CHECK(callback_.is_null());
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { 830 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) {
829 return ERR_QUIC_PROTOCOL_ERROR; 831 return ERR_QUIC_PROTOCOL_ERROR;
830 } 832 }
831 833
832 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); 834 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_);
833 835
834 return ERR_QUIC_PROTOCOL_ERROR; 836 return ERR_QUIC_PROTOCOL_ERROR;
835 } 837 }
836 838
837 } // namespace net 839 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698