| 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_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_encoding_context.h" | 15 #include "net/spdy/hpack_encoding_context.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-04 | 18 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-05 |
| 19 // . | 19 // . |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 // An HpackOutputStream handles all the low-level details of encoding | 23 // An HpackOutputStream handles all the low-level details of encoding |
| 24 // header fields. | 24 // header fields. |
| 25 class NET_EXPORT_PRIVATE HpackOutputStream { | 25 class NET_EXPORT_PRIVATE HpackOutputStream { |
| 26 public: | 26 public: |
| 27 // |max_string_literal_size| is the largest that any one string | 27 // |max_string_literal_size| is the largest that any one string |
| 28 // |literal (header name or header value) can be. | 28 // |literal (header name or header value) can be. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer | 85 // If 0, the buffer ends on a byte boundary. If non-zero, the buffer |
| 86 // ends on the most significant nth bit. Guaranteed to be < 8. | 86 // ends on the most significant nth bit. Guaranteed to be < 8. |
| 87 size_t bit_offset_; | 87 size_t bit_offset_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream); | 89 DISALLOW_COPY_AND_ASSIGN(HpackOutputStream); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace net | 92 } // namespace net |
| 93 | 93 |
| 94 #endif // NET_SPDY_HPACK_OUTPUT_STREAM_H_ | 94 #endif // NET_SPDY_HPACK_OUTPUT_STREAM_H_ |
| OLD | NEW |