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

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

Issue 2839373002: Implement SPDY_EXPORT and SPDY_EXPORT_PRIVATE macros. (Closed)
Patch Set: Rebase: manually resolve trivial merge conflicts. Created 3 years, 7 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/spdy/core/hpack/hpack_input_stream.h ('k') | net/spdy/core/hpack/hpack_static_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_CORE_HPACK_HPACK_OUTPUT_STREAM_H_ 5 #ifndef NET_SPDY_CORE_HPACK_HPACK_OUTPUT_STREAM_H_
6 #define NET_SPDY_CORE_HPACK_HPACK_OUTPUT_STREAM_H_ 6 #define NET_SPDY_CORE_HPACK_HPACK_OUTPUT_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "net/base/net_export.h"
15 #include "net/spdy/core/hpack/hpack_constants.h" 14 #include "net/spdy/core/hpack/hpack_constants.h"
15 #include "net/spdy/platform/api/spdy_export.h"
16 #include "net/spdy/platform/api/spdy_string.h" 16 #include "net/spdy/platform/api/spdy_string.h"
17 #include "net/spdy/platform/api/spdy_string_piece.h" 17 #include "net/spdy/platform/api/spdy_string_piece.h"
18 18
19 // All section references below are to 19 // All section references below are to
20 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08 20 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
21 21
22 namespace net { 22 namespace net {
23 23
24 // An HpackOutputStream handles all the low-level details of encoding 24 // An HpackOutputStream handles all the low-level details of encoding
25 // header fields. 25 // header fields.
26 class NET_EXPORT_PRIVATE HpackOutputStream { 26 class SPDY_EXPORT_PRIVATE HpackOutputStream {
27 public: 27 public:
28 HpackOutputStream(); 28 HpackOutputStream();
29 ~HpackOutputStream(); 29 ~HpackOutputStream();
30 30
31 // Appends the lower |bit_size| bits of |bits| to the internal buffer. 31 // Appends the lower |bit_size| bits of |bits| to the internal buffer.
32 // 32 //
33 // |bit_size| must be > 0 and <= 8. |bits| must not have any bits 33 // |bit_size| must be > 0 and <= 8. |bits| must not have any bits
34 // set other than the lower |bit_size| bits. 34 // set other than the lower |bit_size| bits.
35 void AppendBits(uint8_t bits, size_t bit_size); 35 void AppendBits(uint8_t bits, size_t bit_size);
36 36
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer 69 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer
70 // ends on the nth most significant bit. Guaranteed to be < 8. 70 // ends on the nth most significant bit. Guaranteed to be < 8.
71 size_t bit_offset_; 71 size_t bit_offset_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream); 73 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream);
74 }; 74 };
75 75
76 } // namespace net 76 } // namespace net
77 77
78 #endif // NET_SPDY_CORE_HPACK_HPACK_OUTPUT_STREAM_H_ 78 #endif // NET_SPDY_CORE_HPACK_HPACK_OUTPUT_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/core/hpack/hpack_input_stream.h ('k') | net/spdy/core/hpack/hpack_static_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698