| 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;
|
|
|