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/host/register_support_host_request.h" | 5 #include "remoting/host/register_support_host_request.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.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "remoting/base/constants.h" | 12 #include "remoting/base/constants.h" |
13 #include "remoting/host/host_config.h" | 13 #include "remoting/host/host_config.h" |
14 #include "remoting/jingle_glue/iq_sender.h" | 14 #include "remoting/jingle_glue/iq_sender.h" |
| 15 #include "remoting/jingle_glue/jingle_thread.h" |
15 #include "remoting/jingle_glue/signal_strategy.h" | 16 #include "remoting/jingle_glue/signal_strategy.h" |
16 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 17 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
17 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 18 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
18 | 19 |
19 using buzz::QName; | 20 using buzz::QName; |
20 using buzz::XmlElement; | 21 using buzz::XmlElement; |
21 | 22 |
22 namespace remoting { | 23 namespace remoting { |
23 | 24 |
24 namespace { | 25 namespace { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 iq_sender_.reset(); | 176 iq_sender_.reset(); |
176 signal_strategy_->RemoveListener(this); | 177 signal_strategy_->RemoveListener(this); |
177 signal_strategy_ = NULL; | 178 signal_strategy_ = NULL; |
178 | 179 |
179 RegisterCallback callback = callback_; | 180 RegisterCallback callback = callback_; |
180 callback_.Reset(); | 181 callback_.Reset(); |
181 callback.Run(success, support_id, lifetime); | 182 callback.Run(success, support_id, lifetime); |
182 } | 183 } |
183 | 184 |
184 } // namespace remoting | 185 } // namespace remoting |
OLD | NEW |