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 <list> | 8 #include <list> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual void OnSequenceNumberUpdated( | 114 virtual void OnSequenceNumberUpdated( |
115 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 115 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; |
116 virtual void OnRouteChange( | 116 virtual void OnRouteChange( |
117 protocol::ConnectionToClient* connection, | 117 protocol::ConnectionToClient* connection, |
118 const std::string& channel_name, | 118 const std::string& channel_name, |
119 const protocol::TransportRoute& route) OVERRIDE; | 119 const protocol::TransportRoute& route) OVERRIDE; |
120 | 120 |
121 // SessionController::Delegate interface. | 121 // SessionController::Delegate interface. |
122 virtual void DisconnectSession() OVERRIDE; | 122 virtual void DisconnectSession() OVERRIDE; |
123 virtual void OnLocalMouseMoved(const SkIPoint& position) OVERRIDE; | 123 virtual void OnLocalMouseMoved(const SkIPoint& position) OVERRIDE; |
| 124 virtual void PauseSession(bool pause) OVERRIDE; |
124 | 125 |
125 protocol::ConnectionToClient* connection() const { | 126 protocol::ConnectionToClient* connection() const { |
126 return connection_.get(); | 127 return connection_.get(); |
127 } | 128 } |
128 | 129 |
129 const std::string& client_jid() { return client_jid_; } | 130 const std::string& client_jid() { return client_jid_; } |
130 | 131 |
131 bool is_authenticated() { return auth_input_filter_.enabled(); } | 132 bool is_authenticated() { return auth_input_filter_.enabled(); } |
132 | 133 |
133 // Disable handling of input events from this client. If the client has any | |
134 // keys or mouse buttons pressed then these will be released. | |
135 void SetDisableInputs(bool disable_inputs); | |
136 | |
137 private: | 134 private: |
138 // Creates a proxy for sending clipboard events to the client. | 135 // Creates a proxy for sending clipboard events to the client. |
139 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); | 136 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); |
140 | 137 |
141 // Creates an audio encoder for the specified configuration. | 138 // Creates an audio encoder for the specified configuration. |
142 static scoped_ptr<AudioEncoder> CreateAudioEncoder( | 139 static scoped_ptr<AudioEncoder> CreateAudioEncoder( |
143 const protocol::SessionConfig& config); | 140 const protocol::SessionConfig& config); |
144 | 141 |
145 // Creates a video encoder for the specified configuration. | 142 // Creates a video encoder for the specified configuration. |
146 static scoped_ptr<VideoEncoder> CreateVideoEncoder( | 143 static scoped_ptr<VideoEncoder> CreateVideoEncoder( |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 206 |
210 // Used to apply client-requested changes in screen resolution. | 207 // Used to apply client-requested changes in screen resolution. |
211 scoped_ptr<SessionController> session_controller_; | 208 scoped_ptr<SessionController> session_controller_; |
212 | 209 |
213 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 210 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
214 }; | 211 }; |
215 | 212 |
216 } // namespace remoting | 213 } // namespace remoting |
217 | 214 |
218 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 215 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |