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

Side by Side Diff: net/spdy/core/spdy_prefixed_buffer_reader.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/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
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
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_prefixed_buffer_reader.h ('k') | net/spdy/core/spdy_prefixed_buffer_reader_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698