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

Side by Side Diff: net/spdy/core/spdy_frame_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
« no previous file with comments | « net/spdy/core/spdy_frame_reader.h ('k') | net/spdy/core/spdy_frame_reader_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <limits> 5 #include <limits>
6 6
7 #include "base/sys_byteorder.h" 7 #include "base/sys_byteorder.h"
8 #include "net/spdy/spdy_frame_reader.h" 8 #include "net/spdy/core/spdy_frame_reader.h"
9 #include "net/spdy/spdy_protocol.h" 9 #include "net/spdy/core/spdy_protocol.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 SpdyFrameReader::SpdyFrameReader(const char* data, const size_t len) 13 SpdyFrameReader::SpdyFrameReader(const char* data, const size_t len)
14 : data_(data), 14 : data_(data),
15 len_(len), 15 len_(len),
16 ofs_(0) { 16 ofs_(0) {
17 } 17 }
18 18
19 bool SpdyFrameReader::ReadUInt8(uint8_t* result) { 19 bool SpdyFrameReader::ReadUInt8(uint8_t* result) {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return bytes <= (len_ - ofs_); 197 return bytes <= (len_ - ofs_);
198 } 198 }
199 199
200 void SpdyFrameReader::OnFailure() { 200 void SpdyFrameReader::OnFailure() {
201 // Set our iterator to the end of the buffer so that further reads fail 201 // Set our iterator to the end of the buffer so that further reads fail
202 // immediately. 202 // immediately.
203 ofs_ = len_; 203 ofs_ = len_;
204 } 204 }
205 205
206 } // namespace net 206 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_frame_reader.h ('k') | net/spdy/core/spdy_frame_reader_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698