| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 case RST_STREAM_INVALID_CREDENTIALS: | 391 case RST_STREAM_INVALID_CREDENTIALS: |
| 392 return STATUS_CODE_INVALID_CREDENTIALS; | 392 return STATUS_CODE_INVALID_CREDENTIALS; |
| 393 case RST_STREAM_FRAME_SIZE_ERROR: | 393 case RST_STREAM_FRAME_SIZE_ERROR: |
| 394 return STATUS_CODE_FRAME_SIZE_ERROR; | 394 return STATUS_CODE_FRAME_SIZE_ERROR; |
| 395 case RST_STREAM_SETTINGS_TIMEOUT: | 395 case RST_STREAM_SETTINGS_TIMEOUT: |
| 396 return STATUS_CODE_SETTINGS_TIMEOUT; | 396 return STATUS_CODE_SETTINGS_TIMEOUT; |
| 397 case RST_STREAM_CONNECT_ERROR: | 397 case RST_STREAM_CONNECT_ERROR: |
| 398 return STATUS_CODE_CONNECT_ERROR; | 398 return STATUS_CODE_CONNECT_ERROR; |
| 399 case RST_STREAM_ENHANCE_YOUR_CALM: | 399 case RST_STREAM_ENHANCE_YOUR_CALM: |
| 400 return STATUS_CODE_ENHANCE_YOUR_CALM; | 400 return STATUS_CODE_ENHANCE_YOUR_CALM; |
| 401 case RST_STREAM_INADEQUATE_SECURITY: |
| 402 return STATUS_CODE_INADEQUATE_SECURITY; |
| 403 case RST_STREAM_HTTP_1_1_REQUIRED: |
| 404 return STATUS_CODE_HTTP_1_1_REQUIRED; |
| 401 default: | 405 default: |
| 402 NOTREACHED(); | 406 NOTREACHED(); |
| 403 return static_cast<SpdyProtocolErrorDetails>(-1); | 407 return static_cast<SpdyProtocolErrorDetails>(-1); |
| 404 } | 408 } |
| 405 } | 409 } |
| 406 | 410 |
| 407 SpdyGoAwayStatus MapNetErrorToGoAwayStatus(Error err) { | 411 SpdyGoAwayStatus MapNetErrorToGoAwayStatus(Error err) { |
| 408 switch (err) { | 412 switch (err) { |
| 409 case OK: | 413 case OK: |
| 410 return GOAWAY_NO_ERROR; | 414 return GOAWAY_NO_ERROR; |
| (...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3256 if (!queue->empty()) { | 3260 if (!queue->empty()) { |
| 3257 SpdyStreamId stream_id = queue->front(); | 3261 SpdyStreamId stream_id = queue->front(); |
| 3258 queue->pop_front(); | 3262 queue->pop_front(); |
| 3259 return stream_id; | 3263 return stream_id; |
| 3260 } | 3264 } |
| 3261 } | 3265 } |
| 3262 return 0; | 3266 return 0; |
| 3263 } | 3267 } |
| 3264 | 3268 |
| 3265 } // namespace net | 3269 } // namespace net |
| OLD | NEW |