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/hpack_input_stream.h" | 5 #include "net/spdy/core/hpack/hpack_input_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/spdy/hpack/hpack_huffman_decoder.h" | 10 #include "net/spdy/core/hpack/hpack_huffman_decoder.h" |
11 #include "net/spdy/spdy_bug_tracker.h" | 11 #include "net/spdy/core/spdy_bug_tracker.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 HpackInputStream::HpackInputStream(SpdyStringPiece buffer) | 15 HpackInputStream::HpackInputStream(SpdyStringPiece buffer) |
16 : buffer_(buffer), | 16 : buffer_(buffer), |
17 bit_offset_(0), | 17 bit_offset_(0), |
18 parsed_bytes_(0), | 18 parsed_bytes_(0), |
19 parsed_bytes_current_(0), | 19 parsed_bytes_current_(0), |
20 need_more_data_(false) {} | 20 need_more_data_(false) {} |
21 | 21 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 bool HpackInputStream::NeedMoreData() const { | 241 bool HpackInputStream::NeedMoreData() const { |
242 return need_more_data_; | 242 return need_more_data_; |
243 } | 243 } |
244 | 244 |
245 void HpackInputStream::MarkCurrentPosition() { | 245 void HpackInputStream::MarkCurrentPosition() { |
246 parsed_bytes_ = parsed_bytes_current_; | 246 parsed_bytes_ = parsed_bytes_current_; |
247 } | 247 } |
248 | 248 |
249 } // namespace net | 249 } // namespace net |
OLD | NEW |