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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | 79 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
80 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 80 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
81 virtual ~ChromotingHost(); | 81 virtual ~ChromotingHost(); |
82 | 82 |
83 // Asynchronously starts the host. | 83 // Asynchronously starts the host. |
84 // | 84 // |
85 // After this is invoked, the host process will connect to the talk | 85 // After this is invoked, the host process will connect to the talk |
86 // network and start listening for incoming connections. | 86 // network and start listening for incoming connections. |
87 // | 87 // |
88 // This method can only be called once during the lifetime of this object. | 88 // This method can only be called once during the lifetime of this object. |
89 void Start(const std::string& xmpp_login); | 89 void Start(const std::string& host_owner); |
90 | 90 |
91 // HostStatusMonitor interface. | 91 // HostStatusMonitor interface. |
92 virtual void AddStatusObserver(HostStatusObserver* observer) OVERRIDE; | 92 virtual void AddStatusObserver(HostStatusObserver* observer) OVERRIDE; |
93 virtual void RemoveStatusObserver(HostStatusObserver* observer) OVERRIDE; | 93 virtual void RemoveStatusObserver(HostStatusObserver* observer) OVERRIDE; |
94 | 94 |
95 // This method may be called only from | 95 // This method may be called only from |
96 // HostStatusObserver::OnClientAuthenticated() to reject the new | 96 // HostStatusObserver::OnClientAuthenticated() to reject the new |
97 // client. | 97 // client. |
98 void RejectAuthenticatingClient(); | 98 void RejectAuthenticatingClient(); |
99 | 99 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_refptr<protocol::PairingRegistry> pairing_registry_; | 205 scoped_refptr<protocol::PairingRegistry> pairing_registry_; |
206 | 206 |
207 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 207 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 209 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace remoting | 212 } // namespace remoting |
213 | 213 |
214 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 214 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |