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

Side by Side Diff: components/gcm_driver/fake_gcm_driver.cc

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 unified diff | Download patch
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 #include "components/gcm_driver/fake_gcm_driver.h" 5 #include "components/gcm_driver/fake_gcm_driver.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 9
10 namespace gcm { 10 namespace gcm {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return NULL; 105 return NULL;
106 } 106 }
107 107
108 void FakeGCMDriver::AddHeartbeatInterval(const std::string& scope, 108 void FakeGCMDriver::AddHeartbeatInterval(const std::string& scope,
109 int interval_ms) { 109 int interval_ms) {
110 } 110 }
111 111
112 void FakeGCMDriver::RemoveHeartbeatInterval(const std::string& scope) { 112 void FakeGCMDriver::RemoveHeartbeatInterval(const std::string& scope) {
113 } 113 }
114 114
115 void FakeGCMDriver::DoSendMessageReceipt(const MessageReceiptCallback& callback,
116 GCMMessageStatus status) {
117 callback.Run(status);
118 }
115 } // namespace gcm 119 } // namespace gcm
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698