OLD | NEW |
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 "chrome/browser/services/gcm/fake_gcm_client.h" | 5 #include "chrome/browser/services/gcm/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 12 matching lines...) Expand all Loading... |
23 start_mode_(start_mode), | 23 start_mode_(start_mode), |
24 ui_thread_(ui_thread), | 24 ui_thread_(ui_thread), |
25 io_thread_(io_thread), | 25 io_thread_(io_thread), |
26 weak_ptr_factory_(this) { | 26 weak_ptr_factory_(this) { |
27 } | 27 } |
28 | 28 |
29 FakeGCMClient::~FakeGCMClient() { | 29 FakeGCMClient::~FakeGCMClient() { |
30 } | 30 } |
31 | 31 |
32 void FakeGCMClient::Initialize( | 32 void FakeGCMClient::Initialize( |
33 const checkin_proto::ChromeBuildProto& chrome_build_proto, | 33 const ChromeBuildInfo& chrome_build_info, |
34 const base::FilePath& store_path, | 34 const base::FilePath& store_path, |
35 const std::vector<std::string>& account_ids, | 35 const std::vector<std::string>& account_ids, |
36 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, | 36 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, |
37 const scoped_refptr<net::URLRequestContextGetter>& | 37 const scoped_refptr<net::URLRequestContextGetter>& |
38 url_request_context_getter, | 38 url_request_context_getter, |
39 scoped_ptr<Encryptor> encryptor, | 39 scoped_ptr<Encryptor> encryptor, |
40 Delegate* delegate) { | 40 Delegate* delegate) { |
41 delegate_ = delegate; | 41 delegate_ = delegate; |
42 } | 42 } |
43 | 43 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 } | 212 } |
213 | 213 |
214 void FakeGCMClient::MessageSendError( | 214 void FakeGCMClient::MessageSendError( |
215 const std::string& app_id, | 215 const std::string& app_id, |
216 const GCMClient::SendErrorDetails& send_error_details) { | 216 const GCMClient::SendErrorDetails& send_error_details) { |
217 if (delegate_) | 217 if (delegate_) |
218 delegate_->OnMessageSendError(app_id, send_error_details); | 218 delegate_->OnMessageSendError(app_id, send_error_details); |
219 } | 219 } |
220 | 220 |
221 } // namespace gcm | 221 } // namespace gcm |
OLD | NEW |