| 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 #include "net/spdy/hpack_input_stream.h" | 5 #include "net/spdy/hpack_input_stream.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 8 |
| 7 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 | 11 |
| 10 namespace net { | 12 namespace net { |
| 11 | 13 |
| 12 using base::StringPiece; | 14 using base::StringPiece; |
| 13 | 15 |
| 14 HpackInputStream::HpackInputStream(uint32 max_string_literal_size, | 16 HpackInputStream::HpackInputStream(uint32 max_string_literal_size, |
| 15 StringPiece buffer) | 17 StringPiece buffer) |
| 16 : max_string_literal_size_(max_string_literal_size), | 18 : max_string_literal_size_(max_string_literal_size), |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 buffer_.remove_prefix(size); | 110 buffer_.remove_prefix(size); |
| 109 return true; | 111 return true; |
| 110 } | 112 } |
| 111 | 113 |
| 112 // TODO(akalin): Handle Huffman-encoded sequences. | 114 // TODO(akalin): Handle Huffman-encoded sequences. |
| 113 | 115 |
| 114 return false; | 116 return false; |
| 115 } | 117 } |
| 116 | 118 |
| 117 } // namespace net | 119 } // namespace net |
| OLD | NEW |