Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 // Pause or unpause the session. While the session is paused, remote input | 141 // Pause or unpause the session. While the session is paused, remote input |
| 142 // is ignored. Can be called from any thread. | 142 // is ignored. Can be called from any thread. |
| 143 void PauseSession(bool pause); | 143 void PauseSession(bool pause); |
| 144 | 144 |
| 145 // Disconnects all active clients. Clients are disconnected | 145 // Disconnects all active clients. Clients are disconnected |
| 146 // asynchronously when this method is called on a thread other than | 146 // asynchronously when this method is called on a thread other than |
| 147 // the network thread. Potentically this may cause disconnection of | 147 // the network thread. Potentically this may cause disconnection of |
| 148 // clients that were not connected when this method is called. | 148 // clients that were not connected when this method is called. |
| 149 void DisconnectAllClients(); | 149 void DisconnectAllClients(); |
| 150 | 150 |
| 151 // Disconnects a client with matching |desktop_environment| | |
|
Wez
2012/10/13 00:47:15
nit: "Disconnects the client that is using |deskto
alexeypa (please no reviews)
2012/10/16 19:32:25
Done.
| |
| 152 void DisconnectClient(DesktopEnvironment* desktop_environment); | |
| 153 | |
| 151 const UiStrings& ui_strings() { return ui_strings_; } | 154 const UiStrings& ui_strings() { return ui_strings_; } |
| 152 | 155 |
| 153 // Set localized strings. Must be called before host is started. | 156 // Set localized strings. Must be called before host is started. |
| 154 void SetUiStrings(const UiStrings& ui_strings); | 157 void SetUiStrings(const UiStrings& ui_strings); |
| 155 | 158 |
| 156 private: | 159 private: |
| 157 friend class base::RefCountedThreadSafe<ChromotingHost>; | 160 friend class base::RefCountedThreadSafe<ChromotingHost>; |
| 158 friend class ChromotingHostTest; | 161 friend class ChromotingHostTest; |
| 159 | 162 |
| 160 typedef std::vector<scoped_refptr<ClientSession> > ClientList; | 163 typedef std::vector<scoped_refptr<ClientSession> > ClientList; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 | 224 |
| 222 // The maximum duration of any session. | 225 // The maximum duration of any session. |
| 223 base::TimeDelta max_session_duration_; | 226 base::TimeDelta max_session_duration_; |
| 224 | 227 |
| 225 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 228 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 226 }; | 229 }; |
| 227 | 230 |
| 228 } // namespace remoting | 231 } // namespace remoting |
| 229 | 232 |
| 230 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 233 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |