OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "jingle/notifier/listener/xmpp_push_client.h" | 5 #include "jingle/notifier/listener/xmpp_push_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "jingle/notifier/base/notifier_options_util.h" | 9 #include "jingle/notifier/base/notifier_options_util.h" |
10 #include "jingle/notifier/listener/push_client_observer.h" | 10 #include "jingle/notifier/listener/push_client_observer.h" |
11 #include "jingle/notifier/listener/send_ping_task.h" | 11 #include "jingle/notifier/listener/send_ping_task.h" |
12 #include "jingle/notifier/listener/push_notifications_send_update_task.h" | 12 #include "jingle/notifier/listener/push_notifications_send_update_task.h" |
13 | 13 |
14 namespace notifier { | 14 namespace notifier { |
15 | 15 |
16 XmppPushClient::XmppPushClient(const NotifierOptions& notifier_options) | 16 XmppPushClient::XmppPushClient(const NotifierOptions& notifier_options) |
17 : notifier_options_(notifier_options) { | 17 : notifier_options_(notifier_options) { |
18 DCHECK(notifier_options_.request_context_getter-> | 18 DCHECK(notifier_options_.request_context_getter-> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 if (!base_task_.get()) { | 157 if (!base_task_.get()) { |
158 DVLOG(1) << "Push: Cannot send ping"; | 158 DVLOG(1) << "Push: Cannot send ping"; |
159 return; | 159 return; |
160 } | 160 } |
161 // Owned by |base_task_|. | 161 // Owned by |base_task_|. |
162 SendPingTask* task = new SendPingTask(base_task_.get(), this); | 162 SendPingTask* task = new SendPingTask(base_task_.get(), this); |
163 task->Start(); | 163 task->Start(); |
164 } | 164 } |
165 | 165 |
166 } // namespace notifier | 166 } // namespace notifier |
OLD | NEW |