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

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

Issue 1579213006: Remove unused SPDY/3 enum values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trivial comparisons; change non-trivial ones. Created 4 years, 11 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
« no previous file with comments | « net/socket/ssl_client_socket.cc ('k') | net/spdy/spdy_network_transaction_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/buffered_spdy_framer.h" 5 #include "net/spdy/buffered_spdy_framer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 namespace { 11 namespace {
12 12
13 // GOAWAY frame debug data is only buffered up to this many bytes. 13 // GOAWAY frame debug data is only buffered up to this many bytes.
14 size_t kGoAwayDebugDataMaxSize = 1024; 14 size_t kGoAwayDebugDataMaxSize = 1024;
15 15
16 // Initial and maximum sizes for header block buffer. 16 // Initial and maximum sizes for header block buffer.
17 size_t kHeaderBufferInitialSize = 8 * 1024; 17 size_t kHeaderBufferInitialSize = 8 * 1024;
18 size_t kHeaderBufferMaxSize = 256 * 1024; 18 size_t kHeaderBufferMaxSize = 256 * 1024;
19 19
20 } // namespace 20 } // namespace
21 21
22 SpdyMajorVersion NextProtoToSpdyMajorVersion(NextProto next_proto) { 22 SpdyMajorVersion NextProtoToSpdyMajorVersion(NextProto next_proto) {
23 switch (next_proto) { 23 switch (next_proto) {
24 case kProtoSPDY3:
25 case kProtoSPDY31: 24 case kProtoSPDY31:
26 return SPDY3; 25 return SPDY3;
27 case kProtoHTTP2: 26 case kProtoHTTP2:
28 return HTTP2; 27 return HTTP2;
29 case kProtoUnknown: 28 case kProtoUnknown:
30 case kProtoHTTP11: 29 case kProtoHTTP11:
31 case kProtoQUIC1SPDY3: 30 case kProtoQUIC1SPDY3:
32 break; 31 break;
33 } 32 }
34 NOTREACHED(); 33 NOTREACHED();
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 448 }
450 449
451 void BufferedSpdyFramer::InitHeaderStreaming(SpdyStreamId stream_id) { 450 void BufferedSpdyFramer::InitHeaderStreaming(SpdyStreamId stream_id) {
452 header_buffer_.clear(); 451 header_buffer_.clear();
453 header_buffer_valid_ = true; 452 header_buffer_valid_ = true;
454 header_stream_id_ = stream_id; 453 header_stream_id_ = stream_id;
455 DCHECK_NE(header_stream_id_, SpdyFramer::kInvalidStream); 454 DCHECK_NE(header_stream_id_, SpdyFramer::kInvalidStream);
456 } 455 }
457 456
458 } // namespace net 457 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698