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/spdy/spdy_session.h" | 5 #include "net/spdy/spdy_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 case RST_STREAM_INTERNAL_ERROR: | 316 case RST_STREAM_INTERNAL_ERROR: |
317 return STATUS_CODE_INTERNAL_ERROR; | 317 return STATUS_CODE_INTERNAL_ERROR; |
318 case RST_STREAM_FLOW_CONTROL_ERROR: | 318 case RST_STREAM_FLOW_CONTROL_ERROR: |
319 return STATUS_CODE_FLOW_CONTROL_ERROR; | 319 return STATUS_CODE_FLOW_CONTROL_ERROR; |
320 case RST_STREAM_STREAM_IN_USE: | 320 case RST_STREAM_STREAM_IN_USE: |
321 return STATUS_CODE_STREAM_IN_USE; | 321 return STATUS_CODE_STREAM_IN_USE; |
322 case RST_STREAM_STREAM_ALREADY_CLOSED: | 322 case RST_STREAM_STREAM_ALREADY_CLOSED: |
323 return STATUS_CODE_STREAM_ALREADY_CLOSED; | 323 return STATUS_CODE_STREAM_ALREADY_CLOSED; |
324 case RST_STREAM_INVALID_CREDENTIALS: | 324 case RST_STREAM_INVALID_CREDENTIALS: |
325 return STATUS_CODE_INVALID_CREDENTIALS; | 325 return STATUS_CODE_INVALID_CREDENTIALS; |
326 case RST_STREAM_FRAME_TOO_LARGE: | 326 case RST_STREAM_FRAME_SIZE_ERROR: |
327 return STATUS_CODE_FRAME_TOO_LARGE; | 327 return STATUS_CODE_FRAME_SIZE_ERROR; |
| 328 case RST_STREAM_SETTINGS_TIMEOUT: |
| 329 return STATUS_CODE_SETTINGS_TIMEOUT; |
| 330 case RST_STREAM_CONNECT_ERROR: |
| 331 return STATUS_CODE_CONNECT_ERROR; |
| 332 case RST_STREAM_ENHANCE_YOUR_CALM: |
| 333 return STATUS_CODE_ENHANCE_YOUR_CALM; |
328 default: | 334 default: |
329 NOTREACHED(); | 335 NOTREACHED(); |
330 return static_cast<SpdyProtocolErrorDetails>(-1); | 336 return static_cast<SpdyProtocolErrorDetails>(-1); |
331 } | 337 } |
332 } | 338 } |
333 | 339 |
334 SpdyStreamRequest::SpdyStreamRequest() : weak_ptr_factory_(this) { | 340 SpdyStreamRequest::SpdyStreamRequest() : weak_ptr_factory_(this) { |
335 Reset(); | 341 Reset(); |
336 } | 342 } |
337 | 343 |
(...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 if (!queue->empty()) { | 3050 if (!queue->empty()) { |
3045 SpdyStreamId stream_id = queue->front(); | 3051 SpdyStreamId stream_id = queue->front(); |
3046 queue->pop_front(); | 3052 queue->pop_front(); |
3047 return stream_id; | 3053 return stream_id; |
3048 } | 3054 } |
3049 } | 3055 } |
3050 return 0; | 3056 return 0; |
3051 } | 3057 } |
3052 | 3058 |
3053 } // namespace net | 3059 } // namespace net |
OLD | NEW |