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_CLIENT_SESSION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ |
6 #define REMOTING_HOST_CLIENT_SESSION_H_ | 6 #define REMOTING_HOST_CLIENT_SESSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // protocol::ConnectionToClient::EventHandler interface. | 116 // protocol::ConnectionToClient::EventHandler interface. |
117 void OnConnectionAuthenticating( | 117 void OnConnectionAuthenticating( |
118 protocol::ConnectionToClient* connection) override; | 118 protocol::ConnectionToClient* connection) override; |
119 void OnConnectionAuthenticated( | 119 void OnConnectionAuthenticated( |
120 protocol::ConnectionToClient* connection) override; | 120 protocol::ConnectionToClient* connection) override; |
121 void OnConnectionChannelsConnected( | 121 void OnConnectionChannelsConnected( |
122 protocol::ConnectionToClient* connection) override; | 122 protocol::ConnectionToClient* connection) override; |
123 void OnConnectionClosed(protocol::ConnectionToClient* connection, | 123 void OnConnectionClosed(protocol::ConnectionToClient* connection, |
124 protocol::ErrorCode error) override; | 124 protocol::ErrorCode error) override; |
125 void OnEventTimestamp(protocol::ConnectionToClient* connection, | 125 void OnInputEventReceived(protocol::ConnectionToClient* connection, |
126 int64 timestamp) override; | 126 int64_t timestamp) override; |
127 void OnRouteChange(protocol::ConnectionToClient* connection, | 127 void OnRouteChange(protocol::ConnectionToClient* connection, |
128 const std::string& channel_name, | 128 const std::string& channel_name, |
129 const protocol::TransportRoute& route) override; | 129 const protocol::TransportRoute& route) override; |
130 | 130 |
131 // ClientSessionControl interface. | 131 // ClientSessionControl interface. |
132 const std::string& client_jid() const override; | 132 const std::string& client_jid() const override; |
133 void DisconnectSession() override; | 133 void DisconnectSession() override; |
134 void OnLocalMouseMoved(const webrtc::DesktopVector& position) override; | 134 void OnLocalMouseMoved(const webrtc::DesktopVector& position) override; |
135 void SetDisableInputs(bool disable_inputs) override; | 135 void SetDisableInputs(bool disable_inputs) override; |
136 void ResetVideoPipeline() override; | 136 void ResetVideoPipeline() override; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // Used to disable callbacks to |this| once DisconnectSession() has been | 247 // Used to disable callbacks to |this| once DisconnectSession() has been |
248 // called. | 248 // called. |
249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
250 | 250 |
251 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 251 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
252 }; | 252 }; |
253 | 253 |
254 } // namespace remoting | 254 } // namespace remoting |
255 | 255 |
256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |