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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 | 135 |
| 136 // SessionManager::Listener implementation. | 136 // SessionManager::Listener implementation. |
| 137 virtual void OnSessionManagerReady() OVERRIDE; | 137 virtual void OnSessionManagerReady() OVERRIDE; |
| 138 virtual void OnIncomingSession( | 138 virtual void OnIncomingSession( |
| 139 protocol::Session* session, | 139 protocol::Session* session, |
| 140 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; | 140 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; |
| 141 | 141 |
| 142 // Sets desired configuration for the protocol. Must be called before Start(). | 142 // Sets desired configuration for the protocol. Must be called before Start(). |
| 143 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config); | 143 void set_protocol_config(scoped_ptr<protocol::CandidateSessionConfig> config); |
| 144 | 144 |
| 145 // Returns the candidate configuration for the protocol. | |
| 146 const protocol::CandidateSessionConfig* protocol_config() const { | |
| 147 return protocol_config_.get(); | |
| 148 } | |
|
Jamie
2014/06/17 17:35:48
Nit: Now that we have two setter/getter pairs, it
Wez
2014/06/17 17:58:23
Done.
| |
| 149 | |
| 145 base::WeakPtr<ChromotingHost> AsWeakPtr() { | 150 base::WeakPtr<ChromotingHost> AsWeakPtr() { |
| 146 return weak_factory_.GetWeakPtr(); | 151 return weak_factory_.GetWeakPtr(); |
| 147 } | 152 } |
| 148 | 153 |
| 149 // The host uses a pairing registry to generate and store pairing information | 154 // The host uses a pairing registry to generate and store pairing information |
| 150 // for clients for PIN-less authentication. | 155 // for clients for PIN-less authentication. |
| 151 scoped_refptr<protocol::PairingRegistry> pairing_registry() const { | 156 scoped_refptr<protocol::PairingRegistry> pairing_registry() const { |
| 152 return pairing_registry_; | 157 return pairing_registry_; |
| 153 } | 158 } |
| 154 void set_pairing_registry( | 159 void set_pairing_registry( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 HostExtensionList extensions_; | 220 HostExtensionList extensions_; |
| 216 | 221 |
| 217 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 222 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
| 218 | 223 |
| 219 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 224 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 220 }; | 225 }; |
| 221 | 226 |
| 222 } // namespace remoting | 227 } // namespace remoting |
| 223 | 228 |
| 224 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 229 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |