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

Side by Side Diff: net/spdy/spdy_framer.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 | « no previous file | net/spdy/spdy_protocol.h » ('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_framer.h" 5 #include "net/spdy/spdy_framer.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/stats_counters.h" 9 #include "base/metrics/stats_counters.h"
10 #include "base/third_party/valgrind/memcheck.h" 10 #include "base/third_party/valgrind/memcheck.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 case RST_STREAM_STREAM_ALREADY_CLOSED: 473 case RST_STREAM_STREAM_ALREADY_CLOSED:
474 return "STREAM_ALREADY_CLOSED"; 474 return "STREAM_ALREADY_CLOSED";
475 case RST_STREAM_INVALID_CREDENTIALS: 475 case RST_STREAM_INVALID_CREDENTIALS:
476 return "INVALID_CREDENTIALS"; 476 return "INVALID_CREDENTIALS";
477 case RST_STREAM_FRAME_TOO_LARGE: 477 case RST_STREAM_FRAME_TOO_LARGE:
478 return "FRAME_TOO_LARGE"; 478 return "FRAME_TOO_LARGE";
479 case RST_STREAM_CONNECT_ERROR: 479 case RST_STREAM_CONNECT_ERROR:
480 return "CONNECT_ERROR"; 480 return "CONNECT_ERROR";
481 case RST_STREAM_ENHANCE_YOUR_CALM: 481 case RST_STREAM_ENHANCE_YOUR_CALM:
482 return "ENHANCE_YOUR_CALM"; 482 return "ENHANCE_YOUR_CALM";
483 case RST_STREAM_INADEQUATE_SECURITY:
484 return "INADEQUATE_SECURITY";
485 case RST_STREAM_HTTP_1_1_REQUIRED:
486 return "HTTP_1_1_REQUIRED";
483 } 487 }
484 return "UNKNOWN_STATUS"; 488 return "UNKNOWN_STATUS";
485 } 489 }
486 490
487 const char* SpdyFramer::FrameTypeToString(SpdyFrameType type) { 491 const char* SpdyFramer::FrameTypeToString(SpdyFrameType type) {
488 switch (type) { 492 switch (type) {
489 case DATA: 493 case DATA:
490 return "DATA"; 494 return "DATA";
491 case SYN_STREAM: 495 case SYN_STREAM:
492 return "SYN_STREAM"; 496 return "SYN_STREAM";
(...skipping 2791 matching lines...) Expand 10 before | Expand all | Expand 10 after
3284 builder->Seek(compressed_size); 3288 builder->Seek(compressed_size);
3285 builder->RewriteLength(*this); 3289 builder->RewriteLength(*this);
3286 3290
3287 pre_compress_bytes.Add(uncompressed_len); 3291 pre_compress_bytes.Add(uncompressed_len);
3288 post_compress_bytes.Add(compressed_size); 3292 post_compress_bytes.Add(compressed_size);
3289 3293
3290 compressed_frames.Increment(); 3294 compressed_frames.Increment();
3291 } 3295 }
3292 3296
3293 } // namespace net 3297 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698