| 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_HPACK_INPUT_STREAM_H_ | 5 #ifndef NET_SPDY_HPACK_INPUT_STREAM_H_ |
| 6 #define NET_SPDY_HPACK_INPUT_STREAM_H_ | 6 #define NET_SPDY_HPACK_INPUT_STREAM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/spdy/hpack_constants.h" | 14 #include "net/spdy/hpack_constants.h" |
| 15 #include "net/spdy/hpack_huffman_table.h" | 15 #include "net/spdy/hpack_huffman_table.h" |
| 16 | 16 |
| 17 // All section references below are to | 17 // All section references below are to |
| 18 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07 | 18 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08 |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 // An HpackInputStream handles all the low-level details of decoding | 22 // An HpackInputStream handles all the low-level details of decoding |
| 23 // header fields. | 23 // header fields. |
| 24 class NET_EXPORT_PRIVATE HpackInputStream { | 24 class NET_EXPORT_PRIVATE HpackInputStream { |
| 25 public: | 25 public: |
| 26 // |max_string_literal_size| is the largest that any one string | 26 // |max_string_literal_size| is the largest that any one string |
| 27 // literal (header name or header value) can be. | 27 // literal (header name or header value) can be. |
| 28 HpackInputStream(uint32 max_string_literal_size, base::StringPiece buffer); | 28 HpackInputStream(uint32 max_string_literal_size, base::StringPiece buffer); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool PeekNextOctet(uint8* next_octet); | 71 bool PeekNextOctet(uint8* next_octet); |
| 72 | 72 |
| 73 bool DecodeNextOctet(uint8* next_octet); | 73 bool DecodeNextOctet(uint8* next_octet); |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(HpackInputStream); | 75 DISALLOW_COPY_AND_ASSIGN(HpackInputStream); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace net | 78 } // namespace net |
| 79 | 79 |
| 80 #endif // NET_SPDY_HPACK_INPUT_STREAM_H_ | 80 #endif // NET_SPDY_HPACK_INPUT_STREAM_H_ |
| OLD | NEW |