| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 std::string GenerateHostAuthToken(const std::string& encoded_client_token); | 160 std::string GenerateHostAuthToken(const std::string& encoded_client_token); |
| 161 | 161 |
| 162 bool HasAuthenticatedClients() const; | 162 bool HasAuthenticatedClients() const; |
| 163 | 163 |
| 164 void EnableCurtainMode(bool enable); | 164 void EnableCurtainMode(bool enable); |
| 165 | 165 |
| 166 void ProcessPreAuthentication( | 166 void ProcessPreAuthentication( |
| 167 const scoped_refptr<protocol::ConnectionToClient>& connection); | 167 const scoped_refptr<protocol::ConnectionToClient>& connection); |
| 168 | 168 |
| 169 // Show or hide the Disconnect window on the UI thread. If |show| is false, |
| 170 // hide the window, ignoring the |username| parameter. |
| 171 void ShowDisconnectWindow(bool show, const std::string& username); |
| 172 |
| 169 // The context that the chromoting host runs on. | 173 // The context that the chromoting host runs on. |
| 170 ChromotingHostContext* context_; | 174 ChromotingHostContext* context_; |
| 171 | 175 |
| 172 scoped_refptr<MutableHostConfig> config_; | 176 scoped_refptr<MutableHostConfig> config_; |
| 173 | 177 |
| 174 scoped_ptr<DesktopEnvironment> desktop_environment_; | 178 scoped_ptr<DesktopEnvironment> desktop_environment_; |
| 175 | 179 |
| 176 scoped_ptr<SignalStrategy> signal_strategy_; | 180 scoped_ptr<SignalStrategy> signal_strategy_; |
| 177 | 181 |
| 178 // The libjingle client. This is used to connect to the talk network to | 182 // The libjingle client. This is used to connect to the talk network to |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // Whether or not the host is running in "Me2Mom" mode, in which connections | 216 // Whether or not the host is running in "Me2Mom" mode, in which connections |
| 213 // are pre-authenticated, and hence the local login challenge can be bypassed. | 217 // are pre-authenticated, and hence the local login challenge can be bypassed. |
| 214 bool is_me2mom_; | 218 bool is_me2mom_; |
| 215 | 219 |
| 216 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 220 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 217 }; | 221 }; |
| 218 | 222 |
| 219 } // namespace remoting | 223 } // namespace remoting |
| 220 | 224 |
| 221 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 225 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |