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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const OutgoingMessage& message) = 0; 258 const OutgoingMessage& message) = 0;
259 259
260 // Enables or disables internal activity recording. 260 // Enables or disables internal activity recording.
261 virtual void SetRecording(bool recording) = 0; 261 virtual void SetRecording(bool recording) = 0;
262 262
263 // Clear all recorded GCM activity logs. 263 // Clear all recorded GCM activity logs.
264 virtual void ClearActivityLogs() = 0; 264 virtual void ClearActivityLogs() = 0;
265 265
266 // Gets internal states and statistics. 266 // Gets internal states and statistics.
267 virtual GCMStatistics GetStatistics() const = 0; 267 virtual GCMStatistics GetStatistics() const = 0;
268
269 // Sets a list of accounts with OAuth2 tokens for the next checkin.
270 // |account_tokens| maps email addresses to OAuth2 access tokens.
271 // |account_removed| indicates that an account has been removed since the
272 // last time the callback was called, which triggers an immediate checkin,
273 // to ensure that association between device and account is removed.
274 virtual void SetAccountsForCheckin(
275 const std::map<std::string, std::string>& account_tokens,
276 bool account_removed) = 0;
268 }; 277 };
269 278
270 } // namespace gcm 279 } // namespace gcm
271 280
272 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 281 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698