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

Side by Side Diff: remoting/base/compound_buffer.cc

Issue 1736633002: remoting: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « remoting/base/compound_buffer.h ('k') | remoting/host/setup/gaia_oauth_client.h » ('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) 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"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 CompoundBuffer::DataChunk::DataChunk( 15 CompoundBuffer::DataChunk::DataChunk(
16 net::IOBuffer* buffer_value, const char* start_value, int size_value) 16 net::IOBuffer* buffer_value, const char* start_value, int size_value)
17 : buffer(buffer_value), 17 : buffer(buffer_value),
18 start(start_value), 18 start(start_value),
19 size(size_value) { 19 size(size_value) {
20 } 20 }
21 21
22 CompoundBuffer::DataChunk::DataChunk(const DataChunk& other) = default;
23
22 CompoundBuffer::DataChunk::~DataChunk() {} 24 CompoundBuffer::DataChunk::~DataChunk() {}
23 25
24 CompoundBuffer::CompoundBuffer() 26 CompoundBuffer::CompoundBuffer()
25 : total_bytes_(0), 27 : total_bytes_(0),
26 locked_(false) { 28 locked_(false) {
27 } 29 }
28 30
29 CompoundBuffer::~CompoundBuffer() { 31 CompoundBuffer::~CompoundBuffer() {
30 } 32 }
31 33
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 272 }
271 273
272 return count == 0; 274 return count == 0;
273 } 275 }
274 276
275 int64_t CompoundBufferInputStream::ByteCount() const { 277 int64_t CompoundBufferInputStream::ByteCount() const {
276 return position_; 278 return position_;
277 } 279 }
278 280
279 } // namespace remoting 281 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/compound_buffer.h ('k') | remoting/host/setup/gaia_oauth_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698