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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
| 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); | 111 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); |
| 112 | 112 |
| 113 // Enables/disables curtaining when one or more clients are connected. | 113 // Enables/disables curtaining when one or more clients are connected. |
| 114 // Takes immediate effect if clients are already connected. | 114 // Takes immediate effect if clients are already connected. |
| 115 void SetEnableCurtaining(bool enable); | 115 void SetEnableCurtaining(bool enable); |
| 116 | 116 |
| 117 // Sets the maximum duration of any session. By default, a session has no | 117 // Sets the maximum duration of any session. By default, a session has no |
| 118 // maximum duration. | 118 // maximum duration. |
| 119 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); | 119 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); |
| 120 | 120 |
| 121 // Enables recording of video frame sequences. by clients. | |
|
Sergey Ulanov
2014/07/11 18:38:03
remove . after 'sequences'
| |
| 122 void SetEnableVideoFrameRecording(bool enable); | |
|
Sergey Ulanov
2014/07/11 18:38:03
Do we really need this flag? VideoFrameRecorder do
| |
| 123 | |
| 121 //////////////////////////////////////////////////////////////////////////// | 124 //////////////////////////////////////////////////////////////////////////// |
| 122 // ClientSession::EventHandler implementation. | 125 // ClientSession::EventHandler implementation. |
| 123 virtual void OnSessionAuthenticating(ClientSession* client) OVERRIDE; | 126 virtual void OnSessionAuthenticating(ClientSession* client) OVERRIDE; |
| 124 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; | 127 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; |
| 125 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; | 128 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; |
| 126 virtual void OnSessionClientCapabilities(ClientSession* client) OVERRIDE; | 129 virtual void OnSessionClientCapabilities(ClientSession* client) OVERRIDE; |
| 127 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; | 130 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; |
| 128 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; | 131 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; |
| 129 virtual void OnSessionSequenceNumber(ClientSession* session, | 132 virtual void OnSessionSequenceNumber(ClientSession* session, |
| 130 int64 sequence_number) OVERRIDE; | 133 int64 sequence_number) OVERRIDE; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 // Flags used for RejectAuthenticatingClient(). | 209 // Flags used for RejectAuthenticatingClient(). |
| 207 bool authenticating_client_; | 210 bool authenticating_client_; |
| 208 bool reject_authenticating_client_; | 211 bool reject_authenticating_client_; |
| 209 | 212 |
| 210 // True if the curtain mode is enabled. | 213 // True if the curtain mode is enabled. |
| 211 bool enable_curtaining_; | 214 bool enable_curtaining_; |
| 212 | 215 |
| 213 // The maximum duration of any session. | 216 // The maximum duration of any session. |
| 214 base::TimeDelta max_session_duration_; | 217 base::TimeDelta max_session_duration_; |
| 215 | 218 |
| 219 // True if video frame recording is enabled. | |
| 220 bool enable_video_frame_recording_; | |
| 221 | |
| 216 // The pairing registry for PIN-less authentication. | 222 // The pairing registry for PIN-less authentication. |
| 217 scoped_refptr<protocol::PairingRegistry> pairing_registry_; | 223 scoped_refptr<protocol::PairingRegistry> pairing_registry_; |
| 218 | 224 |
| 219 // List of host extensions. | 225 // List of host extensions. |
| 220 HostExtensionList extensions_; | 226 HostExtensionList extensions_; |
| 221 | 227 |
| 222 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 228 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
| 223 | 229 |
| 224 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 230 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 225 }; | 231 }; |
| 226 | 232 |
| 227 } // namespace remoting | 233 } // namespace remoting |
| 228 | 234 |
| 229 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 235 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |