| 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/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 Loading... |
| 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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { | 832 quic_stream_error_ != QUIC_STREAM_CONNECTION_ERROR) { |
| 831 return ERR_QUIC_PROTOCOL_ERROR; | 833 return ERR_QUIC_PROTOCOL_ERROR; |
| 832 } | 834 } |
| 833 | 835 |
| 834 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); | 836 DCHECK_NE(QUIC_HANDSHAKE_TIMEOUT, quic_connection_error_); |
| 835 | 837 |
| 836 return ERR_QUIC_PROTOCOL_ERROR; | 838 return ERR_QUIC_PROTOCOL_ERROR; |
| 837 } | 839 } |
| 838 | 840 |
| 839 } // namespace net | 841 } // namespace net |
| OLD | NEW |