Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Side by Side Diff: components/gcm_driver/gcm_client.cc

Issue 589663004: Setting max TTL for upstream GCM messages to 1 day to match server side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CL feedback Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698