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

Unified Diff: components/gcm_driver/gcm_account_mapper.h

Issue 2578583002: Provide a mechanism for the GCM driver to send message receipts to GCM.
Patch Set: Added a callback entry point to GCMDriver, moved MessageReceiptCallback to gcm_message_status. 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
Index: components/gcm_driver/gcm_account_mapper.h
diff --git a/components/gcm_driver/gcm_account_mapper.h b/components/gcm_driver/gcm_account_mapper.h
index 39cd4dd792e3969450a73cb3d06097be6413f16f..d844f24d15df074a35cf051dba3f0cc190d760e3 100644
--- a/components/gcm_driver/gcm_account_mapper.h
+++ b/components/gcm_driver/gcm_account_mapper.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "components/gcm_driver/gcm_app_handler.h"
#include "components/gcm_driver/gcm_client.h"
+#include "components/gcm_driver/gcm_message_status.h"
#include "google_apis/gcm/engine/account_mapping.h"
namespace base {
@@ -31,7 +32,8 @@ class GCMAccountMapper : public GCMAppHandler {
// List of account mappings.
typedef std::vector<AccountMapping> AccountMappings;
typedef base::Callback<void(const std::string& app_id,
- const IncomingMessage& message)>
+ const IncomingMessage& message,
+ const MessageReceiptCallback& callback)>
DispatchMessageCallback;
Peter Beverloo 2017/02/08 17:09:09 nit: I know you're just passing by, but mind updat
harkness 2017/02/09 16:27:29 Done.
explicit GCMAccountMapper(GCMDriver* gcm_driver);

Powered by Google App Engine
This is Rietveld 408576698