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

Side by Side Diff: net/spdy/core/hpack/hpack_input_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_huffman_table.h ('k') | net/spdy/core/hpack/hpack_output_stream.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_INPUT_STREAM_H_ 5 #ifndef NET_SPDY_CORE_HPACK_HPACK_INPUT_STREAM_H_
6 #define NET_SPDY_CORE_HPACK_HPACK_INPUT_STREAM_H_ 6 #define NET_SPDY_CORE_HPACK_HPACK_INPUT_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <utility> 11 #include <utility>
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"
16 #include "net/spdy/core/hpack/hpack_huffman_table.h" 15 #include "net/spdy/core/hpack/hpack_huffman_table.h"
16 #include "net/spdy/platform/api/spdy_export.h"
17 #include "net/spdy/platform/api/spdy_string.h" 17 #include "net/spdy/platform/api/spdy_string.h"
18 #include "net/spdy/platform/api/spdy_string_piece.h" 18 #include "net/spdy/platform/api/spdy_string_piece.h"
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-08 21 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
22 22
23 namespace net { 23 namespace net {
24 24
25 namespace test { 25 namespace test {
26 class HpackInputStreamPeer; 26 class HpackInputStreamPeer;
27 } // namespace test 27 } // namespace test
28 28
29 typedef std::pair<size_t, uint32_t> InitialPeekResult; 29 typedef std::pair<size_t, uint32_t> InitialPeekResult;
30 30
31 // An HpackInputStream handles all the low-level details of decoding 31 // An HpackInputStream handles all the low-level details of decoding
32 // header fields. 32 // header fields.
33 class NET_EXPORT_PRIVATE HpackInputStream { 33 class SPDY_EXPORT_PRIVATE HpackInputStream {
34 public: 34 public:
35 friend class test::HpackInputStreamPeer; 35 friend class test::HpackInputStreamPeer;
36 36
37 explicit HpackInputStream(SpdyStringPiece buffer); 37 explicit HpackInputStream(SpdyStringPiece buffer);
38 ~HpackInputStream(); 38 ~HpackInputStream();
39 39
40 // Returns whether or not there is more data to process. 40 // Returns whether or not there is more data to process.
41 bool HasMoreData() const; 41 bool HasMoreData() const;
42 42
43 // If the next bits of input match |prefix|, consumes them and returns true. 43 // If the next bits of input match |prefix|, consumes them and returns true.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool PeekNextOctet(uint8_t* next_octet); 104 bool PeekNextOctet(uint8_t* next_octet);
105 105
106 bool DecodeNextOctet(uint8_t* next_octet); 106 bool DecodeNextOctet(uint8_t* next_octet);
107 107
108 DISALLOW_COPY_AND_ASSIGN(HpackInputStream); 108 DISALLOW_COPY_AND_ASSIGN(HpackInputStream);
109 }; 109 };
110 110
111 } // namespace net 111 } // namespace net
112 112
113 #endif // NET_SPDY_CORE_HPACK_HPACK_INPUT_STREAM_H_ 113 #endif // NET_SPDY_CORE_HPACK_HPACK_INPUT_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/core/hpack/hpack_huffman_table.h ('k') | net/spdy/core/hpack/hpack_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698