Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / gcm_driver / gcm_client.cc
blob76dc0f67334bf0ee5ed82ac5dd40a339a8aeea0c
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
3 // found in the LICENSE file.
5 #include "components/gcm_driver/gcm_client.h"
7 namespace gcm {
9 GCMClient::ChromeBuildInfo::ChromeBuildInfo()
10 : platform(PLATFORM_UNKNOWN),
11 channel(CHANNEL_UNKNOWN) {
14 GCMClient::ChromeBuildInfo::~ChromeBuildInfo() {
17 // static
18 const int GCMClient::OutgoingMessage::kMaximumTTL = 24 * 60 * 60; // 1 day.
20 GCMClient::OutgoingMessage::OutgoingMessage()
21 : time_to_live(kMaximumTTL) {
24 GCMClient::OutgoingMessage::~OutgoingMessage() {
27 GCMClient::IncomingMessage::IncomingMessage() {
30 GCMClient::IncomingMessage::~IncomingMessage() {
33 GCMClient::SendErrorDetails::SendErrorDetails() : result(UNKNOWN_ERROR) {}
35 GCMClient::SendErrorDetails::~SendErrorDetails() {}
37 GCMClient::GCMStatistics::GCMStatistics()
38 : is_recording(false),
39 gcm_client_created(false),
40 connection_client_created(false),
41 android_id(0),
42 send_queue_size(0),
43 resend_queue_size(0) {
46 GCMClient::GCMStatistics::~GCMStatistics() {
49 GCMClient::GCMClient() {
52 GCMClient::~GCMClient() {
55 } // namespace gcm