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

Side by Side Diff: net/spdy/spdy_session.cc

Issue 700583005: Add HTTP/2 error code from latest draft. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/spdy/spdy_session.h ('k') | net/spdy/spdy_session_unittest.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.h ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698