OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_STATUS_OBSERVER_H_ | 5 #ifndef REMOTING_HOST_HOST_STATUS_OBSERVER_H_ |
6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_ | 6 #define REMOTING_HOST_HOST_STATUS_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual void OnAccessDenied(const std::string& jid) = 0; | 25 virtual void OnAccessDenied(const std::string& jid) = 0; |
26 | 26 |
27 // Called when a client authenticates, or disconnects. Observers | 27 // Called when a client authenticates, or disconnects. Observers |
28 // must not tear-down ChromotingHost state on receipt of this | 28 // must not tear-down ChromotingHost state on receipt of this |
29 // callback; it is purely informational. | 29 // callback; it is purely informational. |
30 virtual void OnClientAuthenticated(const std::string& jid) = 0; | 30 virtual void OnClientAuthenticated(const std::string& jid) = 0; |
31 virtual void OnClientDisconnected(const std::string& jid) = 0; | 31 virtual void OnClientDisconnected(const std::string& jid) = 0; |
32 | 32 |
33 // Called on notification of a route change event, when a channel is | 33 // Called on notification of a route change event, when a channel is |
34 // connected. | 34 // connected. |
35 virtual void OnClientIpAddress(const std::string& jid, | 35 virtual void OnClientRouteChange(const std::string& jid, |
36 const std::string& channel_name, | 36 const std::string& channel_name, |
37 const net::IPEndPoint& end_point) { } | 37 const net::IPEndPoint& remote_end_point, |
| 38 const net::IPEndPoint& local_end_point) { } |
38 | 39 |
39 // Called when the host shuts down. | 40 // Called when the host shuts down. |
40 virtual void OnShutdown() = 0; | 41 virtual void OnShutdown() = 0; |
41 }; | 42 }; |
42 | 43 |
43 } // namespace remoting | 44 } // namespace remoting |
44 | 45 |
45 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ | 46 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ |
OLD | NEW |