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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 445683003: [GCM] Exposing persistence of account mappings in GCM Driver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates based on self review Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index f75a8e31f51b14d4de57b36da43fbb7992d5977d..c4646edd096b7ab9a1bd1b4f91b2b1234a59b1b7 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -18,6 +18,7 @@
namespace gcm {
class GCMAppHandler;
+struct AccountMapping;
// Bridge between GCM users in Chrome and the platform-specific implementation.
class GCMDriver {
@@ -110,6 +111,13 @@ class GCMDriver {
virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback,
bool recording) = 0;
+ // Updates the |account_mapping| information in persistent store.
+ virtual void UpdateAccountMapping(const AccountMapping& account_mapping) = 0;
+
+ // Removes the account mapping information reated to |account_id| from
+ // persistent store.
+ virtual void RemoveAccountMapping(const std::string& account_id) = 0;
+
protected:
// Ensures that the GCM service starts (if necessary conditions are met).
virtual GCMClient::Result EnsureStarted() = 0;

Powered by Google App Engine
This is Rietveld 408576698