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

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

Issue 537663002: HPACK: encode :pseudo and indexed headers first. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_encoder.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 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const HpackPrefix kHeaderTableSizeUpdateOpcode = { 0x1, 3 }; 66 const HpackPrefix kHeaderTableSizeUpdateOpcode = { 0x1, 3 };
67 67
68 // Returns symbol code table from "Appendix C. Huffman Codes". 68 // Returns symbol code table from "Appendix C. Huffman Codes".
69 NET_EXPORT_PRIVATE std::vector<HpackHuffmanSymbol> HpackHuffmanCode(); 69 NET_EXPORT_PRIVATE std::vector<HpackHuffmanSymbol> HpackHuffmanCode();
70 70
71 // Returns a HpackHuffmanTable instance initialized with |kHpackHuffmanCode|. 71 // Returns a HpackHuffmanTable instance initialized with |kHpackHuffmanCode|.
72 // The instance is read-only, has static lifetime, and is safe to share amoung 72 // The instance is read-only, has static lifetime, and is safe to share amoung
73 // threads. This function is thread-safe. 73 // threads. This function is thread-safe.
74 NET_EXPORT_PRIVATE const HpackHuffmanTable& ObtainHpackHuffmanTable(); 74 NET_EXPORT_PRIVATE const HpackHuffmanTable& ObtainHpackHuffmanTable();
75 75
76 // Pseudo-headers start with a colon. (HTTP2 8.1.2.1., HPACK 3.1.)
77 const char kPseudoHeaderPrefix = ':';
78
76 } // namespace net 79 } // namespace net
77 80
78 #endif // NET_SPDY_HPACK_CONSTANTS_H_ 81 #endif // NET_SPDY_HPACK_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/hpack_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698