| 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> | 8 #include <string> |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const std::string& full_jid) = 0; | 24 const std::string& full_jid) = 0; |
| 25 virtual void OnSignallingDisconnected() = 0; | 25 virtual void OnSignallingDisconnected() = 0; |
| 26 | 26 |
| 27 // Called on the network thread when an unauthorized user attempts | 27 // Called on the network thread when an unauthorized user attempts |
| 28 // to connect to the host. | 28 // to connect to the host. |
| 29 virtual void OnAccessDenied() = 0; | 29 virtual void OnAccessDenied() = 0; |
| 30 | 30 |
| 31 // Called on the main thread when a client authenticates, or disconnects. | 31 // Called on the main thread when a client authenticates, or disconnects. |
| 32 // The observer must not tear-down ChromotingHost state on receipt of | 32 // The observer must not tear-down ChromotingHost state on receipt of |
| 33 // this callback; it is purely informational. | 33 // this callback; it is purely informational. |
| 34 virtual void OnClientAuthenticated( | 34 virtual void OnClientAuthenticated(const std::string& jid) = 0; |
| 35 remoting::protocol::ConnectionToClient* client) = 0; | 35 virtual void OnClientDisconnected(const std::string& jid) = 0; |
| 36 virtual void OnClientDisconnected( | |
| 37 remoting::protocol::ConnectionToClient* client) = 0; | |
| 38 | 36 |
| 39 // Called on the main thread when the host shuts down. | 37 // Called on the main thread when the host shuts down. |
| 40 virtual void OnShutdown() = 0; | 38 virtual void OnShutdown() = 0; |
| 41 }; | 39 }; |
| 42 | 40 |
| 43 } // namespace remoting | 41 } // namespace remoting |
| 44 | 42 |
| 45 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ | 43 #endif // REMOTING_HOST_STATUS_OBSERVER_H_ |
| OLD | NEW |