Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: remoting/host/chromoting_host.h

Issue 398873005: Preparations for Cast Host Extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added remoting_me2me_host Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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) {
Wez 2014/07/17 22:56:36 Add a comment to explain what it means to "enable_
aiguha 2014/07/18 21:30:37 Done.
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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698