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 #ifndef REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H | 5 #ifndef REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H |
6 #define REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H | 6 #define REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "remoting/jingle_glue/signal_strategy.h" | 13 #include "remoting/signaling/signal_strategy.h" |
14 | 14 |
15 namespace buzz { | 15 namespace buzz { |
16 class XmlElement; | 16 class XmlElement; |
17 } // namespace buzz | 17 } // namespace buzz |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 | 20 |
21 // HostChangeNotificationListener listens for messages from the remoting bot | 21 // HostChangeNotificationListener listens for messages from the remoting bot |
22 // indicating that its host entry has been changed in the directory. | 22 // indicating that its host entry has been changed in the directory. |
23 // If a message is received indicating that the host was deleted, it uses the | 23 // If a message is received indicating that the host was deleted, it uses the |
(...skipping 28 matching lines...) Expand all Loading... |
52 std::string host_id_; | 52 std::string host_id_; |
53 SignalStrategy* signal_strategy_; | 53 SignalStrategy* signal_strategy_; |
54 std::string directory_bot_jid_; | 54 std::string directory_bot_jid_; |
55 base::WeakPtrFactory<HostChangeNotificationListener> weak_factory_; | 55 base::WeakPtrFactory<HostChangeNotificationListener> weak_factory_; |
56 DISALLOW_COPY_AND_ASSIGN(HostChangeNotificationListener); | 56 DISALLOW_COPY_AND_ASSIGN(HostChangeNotificationListener); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace remoting | 59 } // namespace remoting |
60 | 60 |
61 #endif // REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H | 61 #endif // REMOTING_HOST_HOST_CHANGE_NOTIFICATION_LISTENER_H |
OLD | NEW |