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

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

Issue 745123002: Link GCM heartbeat with wake on wifi preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing include Created 6 years 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
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "components/gcm_driver/gcm_activity.h" 14 #include "components/gcm_driver/gcm_activity.h"
15 15
16 template <class T> class scoped_refptr; 16 template <class T> class scoped_refptr;
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace base { 20 namespace base {
21 class FilePath; 21 class FilePath;
22 class SequencedTaskRunner; 22 class SequencedTaskRunner;
23 class Timer;
23 } 24 }
24 25
25 namespace net { 26 namespace net {
26 class IPEndPoint; 27 class IPEndPoint;
27 class URLRequestContextGetter; 28 class URLRequestContextGetter;
28 } 29 }
29 30
30 namespace gcm { 31 namespace gcm {
31 32
32 class Encryptor; 33 class Encryptor;
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 293
293 // Persists the |account_mapping| in the store. 294 // Persists the |account_mapping| in the store.
294 virtual void UpdateAccountMapping(const AccountMapping& account_mapping) = 0; 295 virtual void UpdateAccountMapping(const AccountMapping& account_mapping) = 0;
295 296
296 // Removes the account mapping related to |account_id| from the persistent 297 // Removes the account mapping related to |account_id| from the persistent
297 // store. 298 // store.
298 virtual void RemoveAccountMapping(const std::string& account_id) = 0; 299 virtual void RemoveAccountMapping(const std::string& account_id) = 0;
299 300
300 // Sets last token fetch time in persistent store. 301 // Sets last token fetch time in persistent store.
301 virtual void SetLastTokenFetchTime(const base::Time& time) = 0; 302 virtual void SetLastTokenFetchTime(const base::Time& time) = 0;
303
304 // Updates the timer used by the HeartbeatManager for sending heartbeats.
305 virtual void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) = 0;
302 }; 306 };
303 307
304 } // namespace gcm 308 } // namespace gcm
305 309
306 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 310 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698