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

Side by Side Diff: components/gcm_driver/gcm_client.h

Issue 594383003: [GCM] Passing GCMClient::AccountTokenInfo list to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@account-mapper
Patch Set: Addressing CR comments Created 6 years, 2 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
« no previous file with comments | « components/gcm_driver/gcm_account_mapper.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Enables or disables internal activity recording. 277 // Enables or disables internal activity recording.
278 virtual void SetRecording(bool recording) = 0; 278 virtual void SetRecording(bool recording) = 0;
279 279
280 // Clear all recorded GCM activity logs. 280 // Clear all recorded GCM activity logs.
281 virtual void ClearActivityLogs() = 0; 281 virtual void ClearActivityLogs() = 0;
282 282
283 // Gets internal states and statistics. 283 // Gets internal states and statistics.
284 virtual GCMStatistics GetStatistics() const = 0; 284 virtual GCMStatistics GetStatistics() const = 0;
285 285
286 // Sets a list of accounts with OAuth2 tokens for the next checkin. 286 // Sets a list of accounts with OAuth2 tokens for the next checkin.
287 // |account_tokens| maps email addresses to OAuth2 access tokens. 287 // |account_tokens|: list of email addresses, account IDs and OAuth2 access
288 virtual void SetAccountsForCheckin( 288 // tokens.
289 const std::map<std::string, std::string>& account_tokens) = 0; 289 virtual void SetAccountTokens(
290 const std::vector<AccountTokenInfo>& account_tokens) = 0;
290 291
291 // Persists the |account_mapping| in the store. 292 // Persists the |account_mapping| in the store.
292 virtual void UpdateAccountMapping(const AccountMapping& account_mapping) = 0; 293 virtual void UpdateAccountMapping(const AccountMapping& account_mapping) = 0;
293 294
294 // Removes the account mapping related to |account_id| from the persistent 295 // Removes the account mapping related to |account_id| from the persistent
295 // store. 296 // store.
296 virtual void RemoveAccountMapping(const std::string& account_id) = 0; 297 virtual void RemoveAccountMapping(const std::string& account_id) = 0;
297 }; 298 };
298 299
299 } // namespace gcm 300 } // namespace gcm
300 301
301 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 302 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_account_mapper.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698