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