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

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

Issue 246383003: HPACK: Refactor and expand HpackHeaderTable indexing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NET_EXPORT_PRIVATE on HpackEntry::Comparator Created 6 years, 8 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_header_table_test.cc ('k') | no next file » | 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_OUTPUT_STREAM_H_ 5 #ifndef NET_SPDY_HPACK_OUTPUT_STREAM_H_
6 #define NET_SPDY_HPACK_OUTPUT_STREAM_H_ 6 #define NET_SPDY_HPACK_OUTPUT_STREAM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/spdy/hpack_constants.h" // For HpackPrefix. 15 #include "net/spdy/hpack_constants.h" // For HpackPrefix.
16 #include "net/spdy/hpack_encoding_context.h"
17 16
18 // All section references below are to 17 // All section references below are to
19 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-06 18 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-06
20 19
21 namespace net { 20 namespace net {
22 21
23 // An HpackOutputStream handles all the low-level details of encoding 22 // An HpackOutputStream handles all the low-level details of encoding
24 // header fields. 23 // header fields.
25 class NET_EXPORT_PRIVATE HpackOutputStream { 24 class NET_EXPORT_PRIVATE HpackOutputStream {
26 public: 25 public:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer 90 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer
92 // ends on the most significant nth bit. Guaranteed to be < 8. 91 // ends on the most significant nth bit. Guaranteed to be < 8.
93 size_t bit_offset_; 92 size_t bit_offset_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream); 94 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream);
96 }; 95 };
97 96
98 } // namespace net 97 } // namespace net
99 98
100 #endif // NET_SPDY_HPACK_OUTPUT_STREAM_H_ 99 #endif // NET_SPDY_HPACK_OUTPUT_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/hpack_header_table_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698