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

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

Issue 1800893002: Enable TURN on the host when using WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // return to the idle state. We then go to step (2) if there a new 63 // return to the idle state. We then go to step (2) if there a new
64 // incoming connection. 64 // incoming connection.
65 class ChromotingHost : public base::NonThreadSafe, 65 class ChromotingHost : public base::NonThreadSafe,
66 public ClientSession::EventHandler, 66 public ClientSession::EventHandler,
67 public HostStatusMonitor { 67 public HostStatusMonitor {
68 public: 68 public:
69 // |desktop_environment_factory| must outlive this object. 69 // |desktop_environment_factory| must outlive this object.
70 ChromotingHost( 70 ChromotingHost(
71 DesktopEnvironmentFactory* desktop_environment_factory, 71 DesktopEnvironmentFactory* desktop_environment_factory,
72 scoped_ptr<protocol::SessionManager> session_manager, 72 scoped_ptr<protocol::SessionManager> session_manager,
73 scoped_refptr<protocol::TransportContext> transport_context, 73 scoped_refptr<protocol::TransportContext> ice_transport_context,
74 scoped_refptr<protocol::TransportContext> webrtc_transport_context,
74 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner, 75 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
75 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner); 76 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner);
76 ~ChromotingHost() override; 77 ~ChromotingHost() override;
77 78
78 // Asynchronously starts the host. 79 // Asynchronously starts the host.
79 // 80 //
80 // After this is invoked, the host process will connect to the talk 81 // After this is invoked, the host process will connect to the talk
81 // network and start listening for incoming connections. 82 // network and start listening for incoming connections.
82 // 83 //
83 // This method can only be called once during the lifetime of this object. 84 // This method can only be called once during the lifetime of this object.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // shutdown asynchronously, but the caller is guaranteed not to receive 148 // shutdown asynchronously, but the caller is guaranteed not to receive
148 // callbacks for disconnected clients after this call returns. 149 // callbacks for disconnected clients after this call returns.
149 void DisconnectAllClients(); 150 void DisconnectAllClients();
150 151
151 // Unless specified otherwise all members of this class must be 152 // Unless specified otherwise all members of this class must be
152 // used on the network thread only. 153 // used on the network thread only.
153 154
154 // Parameters specified when the host was created. 155 // Parameters specified when the host was created.
155 DesktopEnvironmentFactory* desktop_environment_factory_; 156 DesktopEnvironmentFactory* desktop_environment_factory_;
156 scoped_ptr<protocol::SessionManager> session_manager_; 157 scoped_ptr<protocol::SessionManager> session_manager_;
157 scoped_refptr<protocol::TransportContext> transport_context_; 158 scoped_refptr<protocol::TransportContext> ice_transport_context_;
159 scoped_refptr<protocol::TransportContext> webrtc_transport_context_;
158 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; 160 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
159 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; 161 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
160 162
161 // Must be used on the network thread only. 163 // Must be used on the network thread only.
162 base::ObserverList<HostStatusObserver> status_observers_; 164 base::ObserverList<HostStatusObserver> status_observers_;
163 165
164 // The connections to remote clients. 166 // The connections to remote clients.
165 ClientList clients_; 167 ClientList clients_;
166 168
167 // True if the host has been started. 169 // True if the host has been started.
(...skipping 15 matching lines...) Expand all
183 HostExtensionList extensions_; 185 HostExtensionList extensions_;
184 186
185 base::WeakPtrFactory<ChromotingHost> weak_factory_; 187 base::WeakPtrFactory<ChromotingHost> weak_factory_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 189 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
188 }; 190 };
189 191
190 } // namespace remoting 192 } // namespace remoting
191 193
192 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 194 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698