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

Unified Diff: components/gcm_driver/gcm_driver_desktop.h

Issue 378643002: [GCM] Check-in with signed in accounts associates device to user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compilation issue on android Created 6 years, 5 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_desktop.h
diff --git a/components/gcm_driver/gcm_driver_desktop.h b/components/gcm_driver/gcm_driver_desktop.h
index 9f0231df660ad31f927f355e6e5d10b0a927fde5..469bfc74314cd42088964f2b22aa820bcd394fef 100644
--- a/components/gcm_driver/gcm_driver_desktop.h
+++ b/components/gcm_driver/gcm_driver_desktop.h
@@ -67,6 +67,16 @@ 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,
+ bool account_removed);
Nicolas Zea 2014/07/10 20:57:32 nit: style guide prefers using an enum to a bool i
fgorski 2014/07/11 22:51:21 Done.
+
protected:
// GCMDriver implementation:
virtual GCMClient::Result EnsureStarted() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698