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/spdy_prefixed_buffer_reader.h" | 5 #include "net/spdy/core/spdy_prefixed_buffer_reader.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
11 SpdyPrefixedBufferReader::SpdyPrefixedBufferReader( | 11 SpdyPrefixedBufferReader::SpdyPrefixedBufferReader( |
12 const char* prefix, | 12 const char* prefix, |
13 size_t prefix_length, | 13 size_t prefix_length, |
14 const char* suffix, | 14 const char* suffix, |
15 size_t suffix_length) | 15 size_t suffix_length) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DCHECK(suffix_length_ >= count); | 74 DCHECK(suffix_length_ >= count); |
75 // Read is fully satisfied by the suffix. | 75 // Read is fully satisfied by the suffix. |
76 out->buffer_ = suffix_; | 76 out->buffer_ = suffix_; |
77 suffix_ += count; | 77 suffix_ += count; |
78 suffix_length_ -= count; | 78 suffix_length_ -= count; |
79 return true; | 79 return true; |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 } // namespace net | 83 } // namespace net |
OLD | NEW |