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/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
12 #include "remoting/base/constants.h" | 12 #include "remoting/base/constants.h" |
13 #include "remoting/jingle_glue/signal_strategy.h" | |
14 #include "remoting/protocol/jingle_messages.h" | 13 #include "remoting/protocol/jingle_messages.h" |
15 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 14 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
16 #include "third_party/libjingle/source/talk/xmpp/constants.h" | 15 #include "third_party/libjingle/source/talk/xmpp/constants.h" |
17 | 16 |
18 using buzz::QName; | 17 using buzz::QName; |
19 using buzz::XmlElement; | 18 using buzz::XmlElement; |
20 | 19 |
21 namespace remoting { | 20 namespace remoting { |
22 | 21 |
23 HostChangeNotificationListener::HostChangeNotificationListener( | 22 HostChangeNotificationListener::HostChangeNotificationListener( |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str(); | 72 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str(); |
74 } | 73 } |
75 return true; | 74 return true; |
76 } | 75 } |
77 | 76 |
78 void HostChangeNotificationListener::OnHostDeleted() { | 77 void HostChangeNotificationListener::OnHostDeleted() { |
79 listener_->OnHostDeleted(); | 78 listener_->OnHostDeleted(); |
80 } | 79 } |
81 | 80 |
82 } // namespace remoting | 81 } // namespace remoting |
OLD | NEW |