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 "remoting/client/plugin/pepper_xmpp_proxy.h" | 5 #include "remoting/client/plugin/pepper_xmpp_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 PepperXmppProxy::PepperXmppProxy( | 13 PepperXmppProxy::PepperXmppProxy( |
14 const SendIqCallback& send_iq_callback, | 14 const SendIqCallback& send_iq_callback, |
15 base::SingleThreadTaskRunner* plugin_task_runner, | 15 base::SingleThreadTaskRunner* plugin_task_runner, |
16 base::SingleThreadTaskRunner* callback_task_runner) | 16 base::SingleThreadTaskRunner* callback_task_runner) |
17 : send_iq_callback_(send_iq_callback), | 17 : send_iq_callback_(send_iq_callback), |
18 plugin_task_runner_(plugin_task_runner), | 18 plugin_task_runner_(plugin_task_runner), |
19 callback_task_runner_(callback_task_runner) { | 19 callback_task_runner_(callback_task_runner) { |
(...skipping 29 matching lines...) Expand all Loading... |
49 callback_task_runner_->PostTask( | 49 callback_task_runner_->PostTask( |
50 FROM_HERE, base::Bind(&PepperXmppProxy::OnIq, this, response_xml)); | 50 FROM_HERE, base::Bind(&PepperXmppProxy::OnIq, this, response_xml)); |
51 return; | 51 return; |
52 } | 52 } |
53 | 53 |
54 if (callback_.get()) | 54 if (callback_.get()) |
55 callback_->OnIq(response_xml); | 55 callback_->OnIq(response_xml); |
56 } | 56 } |
57 | 57 |
58 } // namespace remoting | 58 } // namespace remoting |
OLD | NEW |