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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_CHROMOTING_HOST_H_ |
6 #define REMOTING_CHROMOTING_HOST_H_ | 6 #define REMOTING_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 }; | 162 }; |
163 | 163 |
164 // This method is called if a client is disconnected from the host. | 164 // This method is called if a client is disconnected from the host. |
165 void OnClientDisconnected(protocol::ConnectionToClient* client); | 165 void OnClientDisconnected(protocol::ConnectionToClient* client); |
166 | 166 |
167 // Creates encoder for the specified configuration. | 167 // Creates encoder for the specified configuration. |
168 Encoder* CreateEncoder(const protocol::SessionConfig* config); | 168 Encoder* CreateEncoder(const protocol::SessionConfig* config); |
169 | 169 |
170 std::string GenerateHostAuthToken(const std::string& encoded_client_token); | 170 std::string GenerateHostAuthToken(const std::string& encoded_client_token); |
171 | 171 |
172 bool HasAuthenticatedClients() const; | 172 int AuthenticatedClientsCount() const; |
173 | 173 |
174 void EnableCurtainMode(bool enable); | 174 void EnableCurtainMode(bool enable); |
175 | 175 |
176 void MonitorLocalInputs(bool enable); | 176 void MonitorLocalInputs(bool enable); |
177 | 177 |
178 void ProcessPreAuthentication( | 178 void ProcessPreAuthentication( |
179 const scoped_refptr<protocol::ConnectionToClient>& connection); | 179 const scoped_refptr<protocol::ConnectionToClient>& connection); |
180 | 180 |
181 // Show or hide the Disconnect window on the UI thread. If |show| is false, | 181 // Show or hide the Disconnect window on the UI thread. If |show| is false, |
182 // hide the window, ignoring the |username| parameter. | 182 // hide the window, ignoring the |username| parameter. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // Stores list of tasks that should be executed when we finish | 246 // Stores list of tasks that should be executed when we finish |
247 // shutdown. Used only while |state_| is set to kStopping. | 247 // shutdown. Used only while |state_| is set to kStopping. |
248 std::vector<Task*> shutdown_tasks_; | 248 std::vector<Task*> shutdown_tasks_; |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace remoting | 253 } // namespace remoting |
254 | 254 |
255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |