OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_STATUS_OBSERVER_H_ | 5 #ifndef REMOTING_HOST_STATUS_OBSERVER_H_ |
6 #define REMOTING_HOST_STATUS_OBSERVER_H_ | 6 #define REMOTING_HOST_STATUS_OBSERVER_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 namespace remoting { | 10 namespace remoting { |
9 | 11 |
10 class SignalStrategy; | 12 class SignalStrategy; |
11 | 13 |
12 class HostStatusObserver { | 14 class HostStatusObserver { |
13 public: | 15 public: |
14 HostStatusObserver() { } | 16 HostStatusObserver() { } |
15 virtual ~HostStatusObserver() { } | 17 virtual ~HostStatusObserver() { } |
16 | 18 |
17 // Called on the network thread when status of the XMPP changes. | 19 // Called on the network thread when status of the XMPP changes. |
18 virtual void OnSignallingConnected(SignalStrategy* signal_strategy, | 20 virtual void OnSignallingConnected(SignalStrategy* signal_strategy, |
19 const std::string& full_jid) = 0; | 21 const std::string& full_jid) = 0; |
20 virtual void OnSignallingDisconnected() = 0; | 22 virtual void OnSignallingDisconnected() = 0; |
21 | 23 |
22 // Called on the network thread when an unauthorized user attempts | 24 // Called on the network thread when an unauthorized user attempts |
23 // to connect to the host. | 25 // to connect to the host. |
24 virtual void OnAccessDenied() = 0; | 26 virtual void OnAccessDenied() = 0; |
25 | 27 |
26 // Called on the main thread when the host shuts down. | 28 // Called on the main thread when the host shuts down. |
27 virtual void OnShutdown() = 0; | 29 virtual void OnShutdown() = 0; |
28 }; | 30 }; |
29 | 31 |
30 } // namespace remoting | 32 } // namespace remoting |
31 | 33 |
32 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ | 34 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ |
OLD | NEW |