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

Unified Diff: components/gcm_driver/instance_id/instance_id.h

Issue 1126233004: Persist Instance ID data to GCM store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac Created 5 years, 7 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/instance_id/instance_id.h
diff --git a/components/gcm_driver/instance_id/instance_id.h b/components/gcm_driver/instance_id/instance_id.h
index 731d274f59759114adba568892d7eb55f442a564..8141a3a5c028b75218b532e8d8eb7883a32b74f9 100644
--- a/components/gcm_driver/instance_id/instance_id.h
+++ b/components/gcm_driver/instance_id/instance_id.h
@@ -41,6 +41,9 @@ class InstanceID {
// Asynchronous callbacks.
typedef base::Callback<void(const std::string& app_id,
bool update_id)> TokenRefreshCallback;
+ typedef base::Callback<void(const std::string& id)> GetIDCallback;
+ typedef base::Callback<void(const base::Time& creation_time)>
+ GetCreationTimeCallback;
typedef base::Callback<void(const std::string& token,
Result result)> GetTokenCallback;
typedef base::Callback<void(Result result)> DeleteTokenCallback;
@@ -62,10 +65,10 @@ class InstanceID {
void SetTokenRefreshCallback(const TokenRefreshCallback& callback);
// Returns the Instance ID.
- virtual std::string GetID() = 0;
+ virtual void GetID(const GetIDCallback& callback) = 0;
// Returns the time when the InstanceID has been generated.
- virtual base::Time GetCreationTime() = 0;
+ virtual void GetCreationTime(const GetCreationTimeCallback& callback) = 0;
// Retrieves a token that allows the authorized entity to access the service
// defined as "scope".
« no previous file with comments | « components/gcm_driver/instance_id/fake_instance_id_driver.cc ('k') | components/gcm_driver/instance_id/instance_id_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698