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

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

Issue 246073007: SPDY & HPACK: Land recent internal changes (through 65328503) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on upstream change: Expanded FRAME_TOO_LARGE/FRAME_SIZE_ERROR comment. Created 6 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 | Annotate | Revision Log
« 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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