Chromium Code Reviews| Index: remoting/host/chromoting_host_context.cc |
| diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc |
| index 87eeb1b02bec0dee18a94a3e38a23bd8ee70a0e5..e3511db367efc67ce8f70035d31abeca1ff0b7fa 100644 |
| --- a/remoting/host/chromoting_host_context.cc |
| +++ b/remoting/host/chromoting_host_context.cc |
| @@ -17,9 +17,9 @@ ChromotingHostContext::ChromotingHostContext( |
| scoped_refptr<AutoThreadTaskRunner> ui_task_runner) |
| : audio_thread_("ChromotingAudioThread"), |
| capture_thread_("ChromotingCaptureThread"), |
| - desktop_thread_("ChromotingDesktopThread"), |
| encode_thread_("ChromotingEncodeThread"), |
| file_thread_("ChromotingFileIOThread"), |
| + input_thread_("ChromotingInputThread"), |
|
alexeypa (please no reviews)
2012/10/01 18:31:34
nit: I believe these names will be more readable i
Wez
2012/10/02 05:19:44
Perhaps, but let's rename them in a separate CL.
|
| network_thread_("ChromotingNetworkThread"), |
| ui_task_runner_(ui_task_runner) { |
| } |
| @@ -31,9 +31,9 @@ void ChromotingHostContext::ReleaseTaskRunners() { |
| url_request_context_getter_ = NULL; |
| audio_task_runner_ = NULL; |
| capture_task_runner_ = NULL; |
| - desktop_task_runner_ = NULL; |
| encode_task_runner_ = NULL; |
| file_task_runner_ = NULL; |
| + input_task_runner_ = NULL; |
| network_task_runner_ = NULL; |
| ui_task_runner_ = NULL; |
| } |
| @@ -43,9 +43,9 @@ bool ChromotingHostContext::Start() { |
| base::Thread::Options io_thread_options(MessageLoop::TYPE_IO, 0); |
| bool started = capture_thread_.Start() && encode_thread_.Start() && |
| audio_thread_.StartWithOptions(io_thread_options) && |
| - network_thread_.StartWithOptions(io_thread_options) && |
| - desktop_thread_.StartWithOptions(io_thread_options) && |
| - file_thread_.StartWithOptions(io_thread_options); |
| + file_thread_.StartWithOptions(io_thread_options) && |
| + input_thread_.StartWithOptions(io_thread_options) && |
| + network_thread_.StartWithOptions(io_thread_options); |
| if (!started) |
| return false; |
| @@ -58,15 +58,15 @@ bool ChromotingHostContext::Start() { |
| capture_task_runner_ = |
| new AutoThreadTaskRunner(capture_thread_.message_loop_proxy(), |
| ui_task_runner_); |
| - desktop_task_runner_ = |
| - new AutoThreadTaskRunner(desktop_thread_.message_loop_proxy(), |
| - ui_task_runner_); |
| encode_task_runner_ = |
| new AutoThreadTaskRunner(encode_thread_.message_loop_proxy(), |
| ui_task_runner_); |
| file_task_runner_ = |
| new AutoThreadTaskRunner(file_thread_.message_loop_proxy(), |
| ui_task_runner_); |
| + input_task_runner_ = |
| + new AutoThreadTaskRunner(input_thread_.message_loop_proxy(), |
| + ui_task_runner_); |
| network_task_runner_ = |
| new AutoThreadTaskRunner(network_thread_.message_loop_proxy(), |
| ui_task_runner_); |
| @@ -85,10 +85,6 @@ base::SingleThreadTaskRunner* ChromotingHostContext::capture_task_runner() { |
| return capture_task_runner_; |
| } |
| -base::SingleThreadTaskRunner* ChromotingHostContext::desktop_task_runner() { |
| - return desktop_task_runner_; |
| -} |
| - |
| base::SingleThreadTaskRunner* ChromotingHostContext::encode_task_runner() { |
| return encode_task_runner_; |
| } |
| @@ -97,6 +93,10 @@ base::SingleThreadTaskRunner* ChromotingHostContext::file_task_runner() { |
| return file_task_runner_; |
| } |
| +base::SingleThreadTaskRunner* ChromotingHostContext::input_task_runner() { |
| + return input_task_runner_; |
| +} |
| + |
| base::SingleThreadTaskRunner* ChromotingHostContext::network_task_runner() { |
| return network_task_runner_; |
| } |