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

Unified Diff: components/gcm_driver/gcm_client.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_client.h
diff --git a/components/gcm_driver/gcm_client.h b/components/gcm_driver/gcm_client.h
index 8e0fb2f369d6fca14e13d819d869555fb0acb792..aeab63acab77e0d4e0e2fcb218dc572466ace3da 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -265,6 +265,15 @@ class GCMClient {
// Gets internal states and statistics.
virtual GCMStatistics GetStatistics() const = 0;
+
+ // 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.
+ virtual void SetAccountsForCheckin(
+ const std::map<std::string, std::string>& account_tokens,
+ bool account_removed) = 0;
};
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698