Unify checking of --use-surfaces flag.
[chromium-blink-merge.git] / components / gcm_driver / gcm_client.cc
bloba0282802b32730351194bff76af8580e57b40eb1
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 GCMClient::OutgoingMessage::OutgoingMessage()
18 : time_to_live(kMaximumTTL) {
21 GCMClient::OutgoingMessage::~OutgoingMessage() {
24 GCMClient::IncomingMessage::IncomingMessage() {
27 GCMClient::IncomingMessage::~IncomingMessage() {
30 GCMClient::SendErrorDetails::SendErrorDetails() : result(UNKNOWN_ERROR) {}
32 GCMClient::SendErrorDetails::~SendErrorDetails() {}
34 GCMClient::GCMStatistics::GCMStatistics()
35 : is_recording(false),
36 gcm_client_created(false),
37 connection_client_created(false),
38 android_id(0),
39 send_queue_size(0),
40 resend_queue_size(0) {
43 GCMClient::GCMStatistics::~GCMStatistics() {
46 GCMClient::GCMClient() {
49 GCMClient::~GCMClient() {
52 } // namespace gcm