| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 SignalStrategy* signal_strategy, | 73 SignalStrategy* signal_strategy, |
| 74 DesktopEnvironment* environment, | 74 DesktopEnvironment* environment, |
| 75 scoped_ptr<protocol::SessionManager> session_manager); | 75 scoped_ptr<protocol::SessionManager> session_manager); |
| 76 | 76 |
| 77 // Asynchronously start the host process. | 77 // Asynchronously start the host process. |
| 78 // | 78 // |
| 79 // After this is invoked, the host process will connect to the talk | 79 // After this is invoked, the host process will connect to the talk |
| 80 // network and start listening for incoming connections. | 80 // network and start listening for incoming connections. |
| 81 // | 81 // |
| 82 // This method can only be called once during the lifetime of this object. | 82 // This method can only be called once during the lifetime of this object. |
| 83 void Start(); | 83 void Start(const std::string& xmpp_login); |
| 84 | 84 |
| 85 // Asynchronously shutdown the host process. |shutdown_task| is | 85 // Asynchronously shutdown the host process. |shutdown_task| is |
| 86 // called after shutdown is completed. | 86 // called after shutdown is completed. |
| 87 void Shutdown(const base::Closure& shutdown_task); | 87 void Shutdown(const base::Closure& shutdown_task); |
| 88 | 88 |
| 89 // Add/Remove |observer| to/from the list of status observers. Both | 89 // Add/Remove |observer| to/from the list of status observers. Both |
| 90 // methods can be called on the network thread only. | 90 // methods can be called on the network thread only. |
| 91 void AddStatusObserver(HostStatusObserver* observer); | 91 void AddStatusObserver(HostStatusObserver* observer); |
| 92 void RemoveStatusObserver(HostStatusObserver* observer); | 92 void RemoveStatusObserver(HostStatusObserver* observer); |
| 93 | 93 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 // The maximum duration of any session. | 231 // The maximum duration of any session. |
| 232 base::TimeDelta max_session_duration_; | 232 base::TimeDelta max_session_duration_; |
| 233 | 233 |
| 234 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 234 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 } // namespace remoting | 237 } // namespace remoting |
| 238 | 238 |
| 239 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 239 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |