| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/base/compound_buffer.h" | 5 #include "remoting/base/compound_buffer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // If the current buffer is fully read, then advance to the next buffer. | 265 // If the current buffer is fully read, then advance to the next buffer. |
| 266 if (current_chunk_position_ == chunk.size) { | 266 if (current_chunk_position_ == chunk.size) { |
| 267 ++current_chunk_; | 267 ++current_chunk_; |
| 268 current_chunk_position_ = 0; | 268 current_chunk_position_ = 0; |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 | 271 |
| 272 return count == 0; | 272 return count == 0; |
| 273 } | 273 } |
| 274 | 274 |
| 275 int64 CompoundBufferInputStream::ByteCount() const { | 275 int64_t CompoundBufferInputStream::ByteCount() const { |
| 276 return position_; | 276 return position_; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace remoting | 279 } // namespace remoting |
| OLD | NEW |