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

Side by Side Diff: net/spdy/hpack/hpack_constants.h

Issue 2026593002: Remove limit on individual hpack string literals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused include. Created 4 years, 6 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 | « no previous file | net/spdy/hpack/hpack_decoder.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef NET_SPDY_HPACK_CONSTANTS_H_ 5 #ifndef NET_SPDY_HPACK_CONSTANTS_H_
6 #define NET_SPDY_HPACK_CONSTANTS_H_ 6 #define NET_SPDY_HPACK_CONSTANTS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 28 matching lines...) Expand all
39 const char* const value; 39 const char* const value;
40 const size_t value_len; 40 const size_t value_len;
41 }; 41 };
42 42
43 class HpackHuffmanTable; 43 class HpackHuffmanTable;
44 class HpackStaticTable; 44 class HpackStaticTable;
45 45
46 // Defined in RFC 7540 section 6.5.2. 46 // Defined in RFC 7540 section 6.5.2.
47 const uint32_t kDefaultHeaderTableSizeSetting = 4096; 47 const uint32_t kDefaultHeaderTableSizeSetting = 4096;
48 48
49 // Largest string literal an HpackDecoder/HpackEncoder will attempt to process
50 // before returning an error.
51 const uint32_t kDefaultMaxStringLiteralSize = 256 * 1024;
52
53 // Maximum amount of encoded header buffer HpackDecoder will retain before 49 // Maximum amount of encoded header buffer HpackDecoder will retain before
54 // returning an error. 50 // returning an error.
55 // TODO(jgraettinger): Remove with SpdyHeadersHandlerInterface switch. 51 // TODO(jgraettinger): Remove with SpdyHeadersHandlerInterface switch.
56 const uint32_t kMaxDecodeBufferSize = 256 * 1024; 52 const uint32_t kMaxDecodeBufferSize = 256 * 1024;
57 53
58 // 6.2: Flag for a string literal that is stored unmodified (i.e., 54 // 6.2: Flag for a string literal that is stored unmodified (i.e.,
59 // without Huffman encoding). 55 // without Huffman encoding).
60 const HpackPrefix kStringLiteralIdentityEncoded = {0x0, 1}; 56 const HpackPrefix kStringLiteralIdentityEncoded = {0x0, 1};
61 57
62 // 6.2: Flag for a Huffman-coded string literal. 58 // 6.2: Flag for a Huffman-coded string literal.
(...skipping 30 matching lines...) Expand all
93 // The instance is read-only, has static lifetime, and is safe to share amoung 89 // The instance is read-only, has static lifetime, and is safe to share amoung
94 // threads. This function is thread-safe. 90 // threads. This function is thread-safe.
95 NET_EXPORT_PRIVATE const HpackStaticTable& ObtainHpackStaticTable(); 91 NET_EXPORT_PRIVATE const HpackStaticTable& ObtainHpackStaticTable();
96 92
97 // Pseudo-headers start with a colon. (HTTP2 8.1.2.1., HPACK 3.1.) 93 // Pseudo-headers start with a colon. (HTTP2 8.1.2.1., HPACK 3.1.)
98 const char kPseudoHeaderPrefix = ':'; 94 const char kPseudoHeaderPrefix = ':';
99 95
100 } // namespace net 96 } // namespace net
101 97
102 #endif // NET_SPDY_HPACK_CONSTANTS_H_ 98 #endif // NET_SPDY_HPACK_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/hpack/hpack_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698