| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 scoped_refptr<protocol::PairingRegistry> pairing_registry) { | 131 scoped_refptr<protocol::PairingRegistry> pairing_registry) { |
| 132 pairing_registry_ = pairing_registry; | 132 pairing_registry_ = pairing_registry; |
| 133 } | 133 } |
| 134 | 134 |
| 135 const ClientSessions& client_sessions_for_tests() { return clients_; } | 135 const ClientSessions& client_sessions_for_tests() { return clients_; } |
| 136 | 136 |
| 137 base::WeakPtr<ChromotingHost> AsWeakPtr() { | 137 base::WeakPtr<ChromotingHost> AsWeakPtr() { |
| 138 return weak_factory_.GetWeakPtr(); | 138 return weak_factory_.GetWeakPtr(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 scoped_refptr<protocol::TransportContext> transport_context_for_tests() { |
| 142 return transport_context_; |
| 143 } |
| 144 |
| 141 private: | 145 private: |
| 142 friend class ChromotingHostTest; | 146 friend class ChromotingHostTest; |
| 143 | 147 |
| 144 // Unless specified otherwise all members of this class must be | 148 // Unless specified otherwise all members of this class must be |
| 145 // used on the network thread only. | 149 // used on the network thread only. |
| 146 | 150 |
| 147 // Parameters specified when the host was created. | 151 // Parameters specified when the host was created. |
| 148 DesktopEnvironmentFactory* desktop_environment_factory_; | 152 DesktopEnvironmentFactory* desktop_environment_factory_; |
| 149 std::unique_ptr<protocol::SessionManager> session_manager_; | 153 std::unique_ptr<protocol::SessionManager> session_manager_; |
| 150 scoped_refptr<protocol::TransportContext> transport_context_; | 154 scoped_refptr<protocol::TransportContext> transport_context_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 176 std::vector<std::unique_ptr<HostExtension>> extensions_; | 180 std::vector<std::unique_ptr<HostExtension>> extensions_; |
| 177 | 181 |
| 178 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 182 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
| 179 | 183 |
| 180 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 184 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 181 }; | 185 }; |
| 182 | 186 |
| 183 } // namespace remoting | 187 } // namespace remoting |
| 184 | 188 |
| 185 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 189 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |