| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // The host uses a pairing registry to generate and store pairing information | 150 // The host uses a pairing registry to generate and store pairing information |
| 151 // for clients for PIN-less authentication. | 151 // for clients for PIN-less authentication. |
| 152 scoped_refptr<protocol::PairingRegistry> pairing_registry() const { | 152 scoped_refptr<protocol::PairingRegistry> pairing_registry() const { |
| 153 return pairing_registry_; | 153 return pairing_registry_; |
| 154 } | 154 } |
| 155 void set_pairing_registry( | 155 void set_pairing_registry( |
| 156 scoped_refptr<protocol::PairingRegistry> pairing_registry) { | 156 scoped_refptr<protocol::PairingRegistry> pairing_registry) { |
| 157 pairing_registry_ = pairing_registry; | 157 pairing_registry_ = pairing_registry; |
| 158 } | 158 } |
| 159 | 159 |
| 160 void set_enable_cast(bool enable) { |
| 161 enable_cast_ = enable; |
| 162 } |
| 163 |
| 160 base::WeakPtr<ChromotingHost> AsWeakPtr() { | 164 base::WeakPtr<ChromotingHost> AsWeakPtr() { |
| 161 return weak_factory_.GetWeakPtr(); | 165 return weak_factory_.GetWeakPtr(); |
| 162 } | 166 } |
| 163 | 167 |
| 164 private: | 168 private: |
| 165 friend class ChromotingHostTest; | 169 friend class ChromotingHostTest; |
| 166 | 170 |
| 167 typedef std::list<ClientSession*> ClientList; | 171 typedef std::list<ClientSession*> ClientList; |
| 168 typedef ScopedVector<HostExtension> HostExtensionList; | 172 typedef ScopedVector<HostExtension> HostExtensionList; |
| 169 | 173 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 base::TimeDelta max_session_duration_; | 218 base::TimeDelta max_session_duration_; |
| 215 | 219 |
| 216 // The pairing registry for PIN-less authentication. | 220 // The pairing registry for PIN-less authentication. |
| 217 scoped_refptr<protocol::PairingRegistry> pairing_registry_; | 221 scoped_refptr<protocol::PairingRegistry> pairing_registry_; |
| 218 | 222 |
| 219 // List of host extensions. | 223 // List of host extensions. |
| 220 HostExtensionList extensions_; | 224 HostExtensionList extensions_; |
| 221 | 225 |
| 222 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 226 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
| 223 | 227 |
| 228 // True if cast mode is enabled. |
| 229 bool enable_cast_; |
| 230 |
| 224 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 231 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 225 }; | 232 }; |
| 226 | 233 |
| 227 } // namespace remoting | 234 } // namespace remoting |
| 228 | 235 |
| 229 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 236 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |