| OLD | NEW |
| 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 |
| OLD | NEW |