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

Side by Side Diff: components/gcm_driver/common/gcm_messages.cc

Issue 1728033002: components: 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, 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/gcm_driver/common/gcm_messages.h" 5 #include "components/gcm_driver/common/gcm_messages.h"
6 6
7 namespace gcm { 7 namespace gcm {
8 8
9 // static 9 // static
10 const int OutgoingMessage::kMaximumTTL = 24 * 60 * 60; // 1 day. 10 const int OutgoingMessage::kMaximumTTL = 24 * 60 * 60; // 1 day.
11 11
12 OutgoingMessage::OutgoingMessage() : time_to_live(kMaximumTTL) { 12 OutgoingMessage::OutgoingMessage() : time_to_live(kMaximumTTL) {
13 } 13 }
14 14
15 OutgoingMessage::OutgoingMessage(const OutgoingMessage& other) = default;
16
15 OutgoingMessage::~OutgoingMessage() { 17 OutgoingMessage::~OutgoingMessage() {
16 } 18 }
17 19
18 IncomingMessage::IncomingMessage() : decrypted(false) { 20 IncomingMessage::IncomingMessage() : decrypted(false) {
19 } 21 }
20 22
23 IncomingMessage::IncomingMessage(const IncomingMessage& other) = default;
24
21 IncomingMessage::~IncomingMessage() { 25 IncomingMessage::~IncomingMessage() {
22 } 26 }
23 27
24 } // namespace gcm 28 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698