| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 MutableHostConfig* config, | 170 MutableHostConfig* config, |
| 171 DesktopEnvironment* environment, | 171 DesktopEnvironment* environment, |
| 172 AccessVerifier* access_verifier, | 172 AccessVerifier* access_verifier, |
| 173 bool allow_nat_traversal); | 173 bool allow_nat_traversal); |
| 174 virtual ~ChromotingHost(); | 174 virtual ~ChromotingHost(); |
| 175 | 175 |
| 176 // This method is called if a client is disconnected from the host. | 176 // This method is called if a client is disconnected from the host. |
| 177 void OnClientDisconnected(protocol::ConnectionToClient* client); | 177 void OnClientDisconnected(protocol::ConnectionToClient* client); |
| 178 | 178 |
| 179 // Creates encoder for the specified configuration. | 179 // Creates encoder for the specified configuration. |
| 180 Encoder* CreateEncoder(const protocol::SessionConfig* config); | 180 Encoder* CreateEncoder(const protocol::SessionConfig& config); |
| 181 | 181 |
| 182 std::string GenerateHostAuthToken(const std::string& encoded_client_token); | 182 std::string GenerateHostAuthToken(const std::string& encoded_client_token); |
| 183 | 183 |
| 184 int AuthenticatedClientsCount() const; | 184 int AuthenticatedClientsCount() const; |
| 185 | 185 |
| 186 void EnableCurtainMode(bool enable); | 186 void EnableCurtainMode(bool enable); |
| 187 | 187 |
| 188 void ProcessPreAuthentication( | 188 void ProcessPreAuthentication( |
| 189 const scoped_refptr<protocol::ConnectionToClient>& connection); | 189 const scoped_refptr<protocol::ConnectionToClient>& connection); |
| 190 | 190 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 std::vector<Task*> shutdown_tasks_; | 246 std::vector<Task*> shutdown_tasks_; |
| 247 | 247 |
| 248 UiStrings ui_strings_; | 248 UiStrings ui_strings_; |
| 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 |