Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: net/spdy/core/hpack/hpack_input_stream.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/spdy/core/hpack/hpack_input_stream.h ('k') | net/spdy/core/hpack/hpack_input_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698