Index: components/gcm_driver/gcm_driver_desktop.h |
diff --git a/components/gcm_driver/gcm_driver_desktop.h b/components/gcm_driver/gcm_driver_desktop.h |
index 9f0231df660ad31f927f355e6e5d10b0a927fde5..b898eec82d3535dd19b8f0e31a5c50278bc2c8f8 100644 |
--- a/components/gcm_driver/gcm_driver_desktop.h |
+++ b/components/gcm_driver/gcm_driver_desktop.h |
@@ -55,8 +55,6 @@ class GCMDriverDesktop : public GCMDriver { |
virtual void AddAppHandler(const std::string& app_id, |
GCMAppHandler* handler) OVERRIDE; |
virtual void RemoveAppHandler(const std::string& app_id) OVERRIDE; |
- |
- // GCMDriver implementation: |
virtual void Enable() OVERRIDE; |
virtual void Disable() OVERRIDE; |
virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; |
@@ -67,6 +65,15 @@ class GCMDriverDesktop : public GCMDriver { |
virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
bool recording) OVERRIDE; |
+ // GCMDriverDesktop specific implementation. |
+ // Sets a list of accounts with OAuth2 tokens for the next checkin. |
+ // |account_tokens| maps email addresses to OAuth2 access tokens. |
+ // |account_removed| indicates that an account has been removed since the |
+ // last time the callback was called, which triggers an immediate checkin, |
+ // to ensure that association between device and account is removed. |
+ void SetAccountsForCheckin( |
+ const std::map<std::string, std::string>& account_tokens); |
+ |
protected: |
// GCMDriver implementation: |
virtual GCMClient::Result EnsureStarted() OVERRIDE; |