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;
void ResetState();
// Sets state to ready. This will initiate the MCS login and notify the
// delegates.
- void OnReady();
+ void OnReady(const std::vector<AccountMapping>& account_mappings);
// Starts a first time device checkin.
void StartCheckin();
// 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,