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

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

Issue 1126233004: Persist Instance ID data to GCM store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac Created 5 years, 7 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
« 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>
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 // Removes the account mapping related to |account_id| from the persistent 303 // Removes the account mapping related to |account_id| from the persistent
304 // store. 304 // store.
305 virtual void RemoveAccountMapping(const std::string& account_id) = 0; 305 virtual void RemoveAccountMapping(const std::string& account_id) = 0;
306 306
307 // Sets last token fetch time in persistent store. 307 // Sets last token fetch time in persistent store.
308 virtual void SetLastTokenFetchTime(const base::Time& time) = 0; 308 virtual void SetLastTokenFetchTime(const base::Time& time) = 0;
309 309
310 // Updates the timer used by the HeartbeatManager for sending heartbeats. 310 // Updates the timer used by the HeartbeatManager for sending heartbeats.
311 virtual void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) = 0; 311 virtual void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) = 0;
312
313 // Adds the Instance ID data for a specific app to the persistent store.
314 virtual void AddInstanceIDData(const std::string& app_id,
315 const std::string& instance_id_data) = 0;
316
317 // Removes the Instance ID data for a specific app from the persistent store.
318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0;
319
320 // Retrieves the Instance ID data for a specific app from the persistent
321 // store.
322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0;
312 }; 323 };
313 324
314 } // namespace gcm 325 } // namespace gcm
315 326
316 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 327 #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