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

Side by Side Diff: ipc/ipc_message_utils.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « ipc/ipc_message_utils.h ('k') | mojo/edk/system/request_context.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) 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 "ipc/ipc_message_utils.h" 5 #include "ipc/ipc_message_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // ----------------------------------------------------------------------------- 323 // -----------------------------------------------------------------------------
324 324
325 LogData::LogData() 325 LogData::LogData()
326 : routing_id(0), 326 : routing_id(0),
327 type(0), 327 type(0),
328 sent(0), 328 sent(0),
329 receive(0), 329 receive(0),
330 dispatch(0) { 330 dispatch(0) {
331 } 331 }
332 332
333 LogData::LogData(const LogData& other) = default;
334
333 LogData::~LogData() { 335 LogData::~LogData() {
334 } 336 }
335 337
336 void ParamTraits<bool>::Log(const param_type& p, std::string* l) { 338 void ParamTraits<bool>::Log(const param_type& p, std::string* l) {
337 l->append(p ? "true" : "false"); 339 l->append(p ? "true" : "false");
338 } 340 }
339 341
340 void ParamTraits<signed char>::GetSize(base::PickleSizer* sizer, 342 void ParamTraits<signed char>::GetSize(base::PickleSizer* sizer,
341 const param_type& p) { 343 const param_type& p) {
342 sizer->AddBytes(sizeof(param_type)); 344 sizer->AddBytes(sizeof(param_type));
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 return result; 1218 return result;
1217 } 1219 }
1218 1220
1219 void ParamTraits<MSG>::Log(const param_type& p, std::string* l) { 1221 void ParamTraits<MSG>::Log(const param_type& p, std::string* l) {
1220 l->append("<MSG>"); 1222 l->append("<MSG>");
1221 } 1223 }
1222 1224
1223 #endif // OS_WIN 1225 #endif // OS_WIN
1224 1226
1225 } // namespace IPC 1227 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.h ('k') | mojo/edk/system/request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698