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

Unified Diff: remoting/host/chromoting_host_context.cc

Issue 11018004: Fix ChromotingHost and DesktopEnvironmentFactory references to TaskRunners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows build. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/chromoting_host_context.h ('k') | remoting/host/chromoting_host_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"),
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_;
}
« no previous file with comments | « remoting/host/chromoting_host_context.h ('k') | remoting/host/chromoting_host_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698