OLD | NEW |
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_SPDY_PREFIXED_BUFFER_READER_H_ | 5 #ifndef NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_ |
6 #define NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_ | 6 #define NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
9 #include "net/spdy/spdy_pinnable_buffer_piece.h" | 11 #include "net/spdy/spdy_pinnable_buffer_piece.h" |
10 | 12 |
11 namespace net { | 13 namespace net { |
12 | 14 |
13 // Reader class which simplifies reading contiguously from | 15 // Reader class which simplifies reading contiguously from |
14 // from a disjoint buffer prefix & suffix. | 16 // from a disjoint buffer prefix & suffix. |
15 class NET_EXPORT_PRIVATE SpdyPrefixedBufferReader { | 17 class NET_EXPORT_PRIVATE SpdyPrefixedBufferReader { |
16 public: | 18 public: |
17 SpdyPrefixedBufferReader(const char* prefix, size_t prefix_length, | 19 SpdyPrefixedBufferReader(const char* prefix, size_t prefix_length, |
(...skipping 14 matching lines...) Expand all Loading... |
32 const char* prefix_; | 34 const char* prefix_; |
33 const char* suffix_; | 35 const char* suffix_; |
34 | 36 |
35 size_t prefix_length_; | 37 size_t prefix_length_; |
36 size_t suffix_length_; | 38 size_t suffix_length_; |
37 }; | 39 }; |
38 | 40 |
39 } // namespace net | 41 } // namespace net |
40 | 42 |
41 #endif // NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_ | 43 #endif // NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_ |
OLD | NEW |