Chromium Code Reviews| 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 #include "third_party/skia/include/core/SkRect.h" | |
| 11 | |
| 10 namespace net { | 12 namespace net { |
| 11 class IPEndPoint; | 13 class IPEndPoint; |
| 12 } // namespace net | 14 } // namespace net |
| 13 | 15 |
| 14 namespace remoting { | 16 namespace remoting { |
| 15 class SignalStrategy; | 17 class SignalStrategy; |
| 16 | 18 |
| 17 namespace protocol { | 19 namespace protocol { |
| 18 struct TransportRoute; | 20 struct TransportRoute; |
| 19 }; | 21 }; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 37 | 39 |
| 38 // An authenticated client is disconnected. | 40 // An authenticated client is disconnected. |
| 39 virtual void OnClientDisconnected(const std::string& jid) {} | 41 virtual void OnClientDisconnected(const std::string& jid) {} |
| 40 | 42 |
| 41 // Called on notification of a route change event, when a channel is | 43 // Called on notification of a route change event, when a channel is |
| 42 // connected. | 44 // connected. |
| 43 virtual void OnClientRouteChange(const std::string& jid, | 45 virtual void OnClientRouteChange(const std::string& jid, |
| 44 const std::string& channel_name, | 46 const std::string& channel_name, |
| 45 const protocol::TransportRoute& route) {} | 47 const protocol::TransportRoute& route) {} |
| 46 | 48 |
| 49 // Called when the client view dimensions change. | |
| 50 virtual void OnClientDimensionsChanged(const SkISize& size) {} | |
|
Wez
2012/09/15 22:39:08
Include the client jid here, so that in future we
Jamie
2012/09/19 22:35:07
Done.
| |
| 51 | |
| 47 // Called when hosting is started for an account. | 52 // Called when hosting is started for an account. |
| 48 virtual void OnStart(const std::string& xmpp_login) {} | 53 virtual void OnStart(const std::string& xmpp_login) {} |
| 49 | 54 |
| 50 // Called when the host shuts down. | 55 // Called when the host shuts down. |
| 51 virtual void OnShutdown() {} | 56 virtual void OnShutdown() {} |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 } // namespace remoting | 59 } // namespace remoting |
| 55 | 60 |
| 56 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ | 61 #endif // REMOTING_HOST_HOST_STATUS_OBSERVER_H_ |
| OLD | NEW |