| 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() { | 15 OutgoingMessage::~OutgoingMessage() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 IncomingMessage::IncomingMessage() { | 18 IncomingMessage::IncomingMessage() : decrypted(false) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 IncomingMessage::~IncomingMessage() { | 21 IncomingMessage::~IncomingMessage() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 } // namespace gcm | 24 } // namespace gcm |
| OLD | NEW |