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

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

Issue 594383003: [GCM] Passing GCMClient::AccountTokenInfo list to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@account-mapper
Patch Set: Addressing CR comments Created 6 years, 2 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
« no previous file with comments | « components/gcm_driver/fake_gcm_client.h ('k') | components/gcm_driver/fake_gcm_driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_client.h" 5 #include "components/gcm_driver/fake_gcm_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void FakeGCMClient::SetRecording(bool recording) { 109 void FakeGCMClient::SetRecording(bool recording) {
110 } 110 }
111 111
112 void FakeGCMClient::ClearActivityLogs() { 112 void FakeGCMClient::ClearActivityLogs() {
113 } 113 }
114 114
115 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const { 115 GCMClient::GCMStatistics FakeGCMClient::GetStatistics() const {
116 return GCMClient::GCMStatistics(); 116 return GCMClient::GCMStatistics();
117 } 117 }
118 118
119 void FakeGCMClient::SetAccountsForCheckin( 119 void FakeGCMClient::SetAccountTokens(
120 const std::map<std::string, std::string>& account_tokens) { 120 const std::vector<AccountTokenInfo>& account_tokens) {
121 } 121 }
122 122
123 void FakeGCMClient::UpdateAccountMapping( 123 void FakeGCMClient::UpdateAccountMapping(
124 const AccountMapping& account_mapping) { 124 const AccountMapping& account_mapping) {
125 } 125 }
126 126
127 void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) { 127 void FakeGCMClient::RemoveAccountMapping(const std::string& account_id) {
128 } 128 }
129 129
130 void FakeGCMClient::PerformDelayedLoading() { 130 void FakeGCMClient::PerformDelayedLoading() {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 delegate_->OnMessageSendError(app_id, send_error_details); 241 delegate_->OnMessageSendError(app_id, send_error_details);
242 } 242 }
243 243
244 void FakeGCMClient::SendAcknowledgement(const std::string& app_id, 244 void FakeGCMClient::SendAcknowledgement(const std::string& app_id,
245 const std::string& message_id) { 245 const std::string& message_id) {
246 if (delegate_) 246 if (delegate_)
247 delegate_->OnSendAcknowledged(app_id, message_id); 247 delegate_->OnSendAcknowledged(app_id, message_id);
248 } 248 }
249 249
250 } // namespace gcm 250 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_client.h ('k') | components/gcm_driver/fake_gcm_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698