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

Unified Diff: components/gcm_driver/gcm_client.h

Issue 442123003: [GCM] Adding the OnSendAcknowledgement event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 6fce669f450749fc7dd63b55f39b5b752fe8b6ff..e5082c59080d08159864af512aac57b67a725387 100644
--- a/components/gcm_driver/gcm_client.h
+++ b/components/gcm_driver/gcm_client.h
@@ -184,6 +184,12 @@ class GCMClient {
const std::string& app_id,
const SendErrorDetails& send_error_details) = 0;
+ // Called when a message was acknowledged by the GCM server.
+ // |app_id|: application ID.
+ // |message_id|: ID of the acknowledged message.
+ virtual void OnSendAcknowledged(const std::string& app_id,
+ const std::string& message_id) = 0;
+
// Called when the GCM becomes ready. To get to this state, GCMClient
// finished loading from the GCM store and retrieved the device check-in
// from the server if it hadn't yet.

Powered by Google App Engine
This is Rietveld 408576698