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

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

Issue 1673723002: Use IpcVideoFrameCapturer on network thread instead of capturer thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « remoting/host/basic_desktop_environment.cc ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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> transport_context,
74 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner, 74 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
75 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 75 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner);
76 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner,
77 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner,
78 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
79 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
80 ~ChromotingHost() override; 76 ~ChromotingHost() override;
81 77
82 // Asynchronously starts the host. 78 // Asynchronously starts the host.
83 // 79 //
84 // After this is invoked, the host process will connect to the talk 80 // After this is invoked, the host process will connect to the talk
85 // network and start listening for incoming connections. 81 // network and start listening for incoming connections.
86 // 82 //
87 // This method can only be called once during the lifetime of this object. 83 // This method can only be called once during the lifetime of this object.
88 void Start(const std::string& host_owner); 84 void Start(const std::string& host_owner);
89 85
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void DisconnectAllClients(); 149 void DisconnectAllClients();
154 150
155 // Unless specified otherwise all members of this class must be 151 // Unless specified otherwise all members of this class must be
156 // used on the network thread only. 152 // used on the network thread only.
157 153
158 // Parameters specified when the host was created. 154 // Parameters specified when the host was created.
159 DesktopEnvironmentFactory* desktop_environment_factory_; 155 DesktopEnvironmentFactory* desktop_environment_factory_;
160 scoped_ptr<protocol::SessionManager> session_manager_; 156 scoped_ptr<protocol::SessionManager> session_manager_;
161 scoped_refptr<protocol::TransportContext> transport_context_; 157 scoped_refptr<protocol::TransportContext> transport_context_;
162 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; 158 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
163 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
164 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_;
165 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; 159 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
166 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
167 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
168 160
169 // Must be used on the network thread only. 161 // Must be used on the network thread only.
170 base::ObserverList<HostStatusObserver> status_observers_; 162 base::ObserverList<HostStatusObserver> status_observers_;
171 163
172 // The connections to remote clients. 164 // The connections to remote clients.
173 ClientList clients_; 165 ClientList clients_;
174 166
175 // True if the host has been started. 167 // True if the host has been started.
176 bool started_; 168 bool started_;
177 169
(...skipping 13 matching lines...) Expand all
191 HostExtensionList extensions_; 183 HostExtensionList extensions_;
192 184
193 base::WeakPtrFactory<ChromotingHost> weak_factory_; 185 base::WeakPtrFactory<ChromotingHost> weak_factory_;
194 186
195 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 187 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
196 }; 188 };
197 189
198 } // namespace remoting 190 } // namespace remoting
199 191
200 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 192 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « remoting/host/basic_desktop_environment.cc ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698