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

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

Issue 145353017: Update HPACK implementation to draft 05 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/hpack_encoding_context_test.cc ('k') | net/spdy/hpack_header_table.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_ENTRY_H_ 5 #ifndef NET_SPDY_HPACK_ENTRY_H_
6 #define NET_SPDY_HPACK_ENTRY_H_ 6 #define NET_SPDY_HPACK_ENTRY_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 // All section references below are to 20 // All section references below are to
21 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04 21 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-05
22 // . 22 // .
23 23
24 // A structure for an entry in the header table (3.1.2) and the 24 // A structure for an entry in the header table (3.1.2) and the
25 // reference set (3.1.3). This structure also keeps track of how many 25 // reference set (3.1.3). This structure also keeps track of how many
26 // times the entry has been 'touched', which is useful for both 26 // times the entry has been 'touched', which is useful for both
27 // encoding and decoding. 27 // encoding and decoding.
28 class NET_EXPORT_PRIVATE HpackEntry { 28 class NET_EXPORT_PRIVATE HpackEntry {
29 public: 29 public:
30 // The constant amount added to name().size() and value().size() to 30 // The constant amount added to name().size() and value().size() to
31 // get the size of an HpackEntry as defined in 3.3.1. 31 // get the size of an HpackEntry as defined in 3.3.1.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 std::string value_; 94 std::string value_;
95 95
96 // The high bit stores 'referenced' and the rest stores the touch 96 // The high bit stores 'referenced' and the rest stores the touch
97 // count. 97 // count.
98 uint32 referenced_and_touch_count_; 98 uint32 referenced_and_touch_count_;
99 }; 99 };
100 100
101 } // namespace net 101 } // namespace net
102 102
103 #endif // NET_SPDY_HPACK_ENTRY_H_ 103 #endif // NET_SPDY_HPACK_ENTRY_H_
OLDNEW
« no previous file with comments | « net/spdy/hpack_encoding_context_test.cc ('k') | net/spdy/hpack_header_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698