| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Encoder* CreateEncoder(const protocol::SessionConfig& config); | 165 Encoder* CreateEncoder(const protocol::SessionConfig& config); |
| 166 | 166 |
| 167 std::string GenerateHostAuthToken(const std::string& encoded_client_token); | 167 std::string GenerateHostAuthToken(const std::string& encoded_client_token); |
| 168 | 168 |
| 169 void AddAuthenticatedClient(ClientSession* client, | 169 void AddAuthenticatedClient(ClientSession* client, |
| 170 const protocol::SessionConfig& config, | 170 const protocol::SessionConfig& config, |
| 171 const std::string& jid); | 171 const std::string& jid); |
| 172 | 172 |
| 173 int AuthenticatedClientsCount() const; | 173 int AuthenticatedClientsCount() const; |
| 174 | 174 |
| 175 void EnableCurtainMode(bool enable); | |
| 176 | |
| 177 void StopScreenRecorder(); | 175 void StopScreenRecorder(); |
| 178 void OnScreenRecorderStopped(); | 176 void OnScreenRecorderStopped(); |
| 179 | 177 |
| 180 // Called from Shutdown() or OnScreenRecorderStopped() to finish shutdown. | 178 // Called from Shutdown() or OnScreenRecorderStopped() to finish shutdown. |
| 181 void ShutdownFinish(); | 179 void ShutdownFinish(); |
| 182 | 180 |
| 183 // Unless specified otherwise all members of this class must be | 181 // Unless specified otherwise all members of this class must be |
| 184 // used on the network thread only. | 182 // used on the network thread only. |
| 185 | 183 |
| 186 // Parameters specified when the host was created. | 184 // Parameters specified when the host was created. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 215 | 213 |
| 216 // Configuration of the protocol. | 214 // Configuration of the protocol. |
| 217 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; | 215 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; |
| 218 | 216 |
| 219 // Stores list of tasks that should be executed when we finish | 217 // Stores list of tasks that should be executed when we finish |
| 220 // shutdown. Used only while |state_| is set to kStopping. | 218 // shutdown. Used only while |state_| is set to kStopping. |
| 221 std::vector<base::Closure> shutdown_tasks_; | 219 std::vector<base::Closure> shutdown_tasks_; |
| 222 | 220 |
| 223 // TODO(sergeyu): The following members do not belong to | 221 // TODO(sergeyu): The following members do not belong to |
| 224 // ChromotingHost and should be moved elsewhere. | 222 // ChromotingHost and should be moved elsewhere. |
| 225 bool is_curtained_; | |
| 226 bool is_it2me_; | 223 bool is_it2me_; |
| 227 std::string access_code_; | 224 std::string access_code_; |
| 228 UiStrings ui_strings_; | 225 UiStrings ui_strings_; |
| 229 | 226 |
| 230 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 227 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 231 }; | 228 }; |
| 232 | 229 |
| 233 } // namespace remoting | 230 } // namespace remoting |
| 234 | 231 |
| 235 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 232 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |