| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/gcm_client.h" | 5 #include "components/gcm_driver/gcm_client.h" |
| 6 | 6 |
| 7 namespace gcm { | 7 namespace gcm { |
| 8 | 8 |
| 9 GCMClient::ChromeBuildInfo::ChromeBuildInfo() | 9 GCMClient::ChromeBuildInfo::ChromeBuildInfo() |
| 10 : platform(PLATFORM_UNKNOWN), | 10 : platform(PLATFORM_UNKNOWN), |
| 11 channel(CHANNEL_UNKNOWN) { | 11 channel(CHANNEL_UNKNOWN) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 GCMClient::ChromeBuildInfo::~ChromeBuildInfo() { | 14 GCMClient::ChromeBuildInfo::~ChromeBuildInfo() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 // static |
| 18 const int GCMClient::OutgoingMessage::kMaximumTTL = 24 * 60 * 60; // 1 day. |
| 19 |
| 17 GCMClient::OutgoingMessage::OutgoingMessage() | 20 GCMClient::OutgoingMessage::OutgoingMessage() |
| 18 : time_to_live(kMaximumTTL) { | 21 : time_to_live(kMaximumTTL) { |
| 19 } | 22 } |
| 20 | 23 |
| 21 GCMClient::OutgoingMessage::~OutgoingMessage() { | 24 GCMClient::OutgoingMessage::~OutgoingMessage() { |
| 22 } | 25 } |
| 23 | 26 |
| 24 GCMClient::IncomingMessage::IncomingMessage() { | 27 GCMClient::IncomingMessage::IncomingMessage() { |
| 25 } | 28 } |
| 26 | 29 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 43 GCMClient::GCMStatistics::~GCMStatistics() { | 46 GCMClient::GCMStatistics::~GCMStatistics() { |
| 44 } | 47 } |
| 45 | 48 |
| 46 GCMClient::GCMClient() { | 49 GCMClient::GCMClient() { |
| 47 } | 50 } |
| 48 | 51 |
| 49 GCMClient::~GCMClient() { | 52 GCMClient::~GCMClient() { |
| 50 } | 53 } |
| 51 | 54 |
| 52 } // namespace gcm | 55 } // namespace gcm |
| OLD | NEW |