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

Unified Diff: components/gcm_driver/gcm_client_impl.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_client_impl.h
diff --git a/components/gcm_driver/gcm_client_impl.h b/components/gcm_driver/gcm_client_impl.h
index 10d89b76620edf00623ddb1e75862bda5fae06fe..48bfa6a0284400e62d2212391c08a1c76f431486 100644
--- a/components/gcm_driver/gcm_client_impl.h
+++ b/components/gcm_driver/gcm_client_impl.h
@@ -105,6 +105,9 @@ class GCMClientImpl
virtual GCMStatistics GetStatistics() const OVERRIDE;
virtual void SetAccountsForCheckin(
const std::map<std::string, std::string>& account_tokens) OVERRIDE;
+ virtual void UpdateAccountMapping(
+ const AccountMapping& account_mapping) OVERRIDE;
+ virtual void RemoveAccountMapping(const std::string& account_id) OVERRIDE;
// GCMStatsRecorder::Delegate implemenation.
virtual void OnActivityRecorded() OVERRIDE;
@@ -222,6 +225,10 @@ class GCMClientImpl
// Callback for persisting registration info in the |gcm_store_|.
void UpdateRegistrationCallback(bool success);
+ // Callback for all store operations that do not try to recover, if write in
+ // |gcm_store_| fails.
+ void DefaultStoreCallback(bool success);
+
// Completes the registration request.
void OnRegisterCompleted(const std::string& app_id,
const std::vector<std::string>& sender_ids,

Powered by Google App Engine
This is Rietveld 408576698