OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/host_change_notification_listener.h" | 5 #include "remoting/host/host_change_notification_listener.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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "remoting/base/constants.h" | 12 #include "remoting/base/constants.h" |
13 #include "remoting/protocol/jingle_messages.h" | 13 #include "remoting/protocol/jingle_messages.h" |
14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
15 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 15 #include "third_party/libjingle_xmpp/xmpp/constants.h" |
16 | 16 |
17 using buzz::QName; | 17 using buzz::QName; |
18 using buzz::XmlElement; | 18 using buzz::XmlElement; |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 | 21 |
22 HostChangeNotificationListener::HostChangeNotificationListener( | 22 HostChangeNotificationListener::HostChangeNotificationListener( |
23 Listener* listener, | 23 Listener* listener, |
24 const std::string& host_id, | 24 const std::string& host_id, |
25 SignalStrategy* signal_strategy, | 25 SignalStrategy* signal_strategy, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str(); | 72 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str(); |
73 } | 73 } |
74 return true; | 74 return true; |
75 } | 75 } |
76 | 76 |
77 void HostChangeNotificationListener::OnHostDeleted() { | 77 void HostChangeNotificationListener::OnHostDeleted() { |
78 listener_->OnHostDeleted(); | 78 listener_->OnHostDeleted(); |
79 } | 79 } |
80 | 80 |
81 } // namespace remoting | 81 } // namespace remoting |
OLD | NEW |