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

Unified Diff: components/gcm_driver/gcm_client_impl.h

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Fix issue with rebase Created 3 years, 10 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
« no previous file with comments | « components/gcm_driver/gcm_client.h ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_client_impl.h
diff --git a/components/gcm_driver/gcm_client_impl.h b/components/gcm_driver/gcm_client_impl.h
index 9e102154b86b20e1cbe8c7ac5d81432a36087b1f..8c3ea6737bc36661b84603ef3f50ca6be585f2be 100644
--- a/components/gcm_driver/gcm_client_impl.h
+++ b/components/gcm_driver/gcm_client_impl.h
@@ -51,6 +51,7 @@ namespace gcm {
class CheckinRequest;
class ConnectionFactory;
class GCMClientImplTest;
+enum class GCMMessageStatus;
// Helper class for building GCM internals. Allows tests to inject fake versions
// as necessary.
@@ -323,6 +324,13 @@ class GCMClientImpl
// Reset all cahced values.
void ResetCache();
+ // Send a message to GCM with information about the final status of a
+ // previously received message. This can be run as a result of a callback
+ // being executed from an AppHandler.
+ void SendMessageReceipt(const std::string& message_id,
+ const std::string& app_id,
+ GCMMessageStatus status);
+
// Builder for the GCM internals (mcs client, etc.).
std::unique_ptr<GCMInternalsBuilder> internals_builder_;
« no previous file with comments | « components/gcm_driver/gcm_client.h ('k') | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698