summaryrefslogtreecommitdiffstats
path: root/remoting/client/client_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/client/client_context.cc')
-rw-r--r--remoting/client/client_context.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/remoting/client/client_context.cc b/remoting/client/client_context.cc
index b0bc941..7335dc3 100644
--- a/remoting/client/client_context.cc
+++ b/remoting/client/client_context.cc
@@ -6,8 +6,8 @@
namespace remoting {
-ClientContext::ClientContext(base::MessageLoopProxy* main_message_loop_proxy)
- : main_message_loop_proxy_(main_message_loop_proxy),
+ClientContext::ClientContext(base::SingleThreadTaskRunner* main_task_runner)
+ : main_task_runner_(main_task_runner),
decode_thread_("ChromotingClientDecodeThread") {
}
@@ -24,16 +24,12 @@ void ClientContext::Stop() {
decode_thread_.Stop();
}
-base::MessageLoopProxy* ClientContext::main_message_loop() {
- return main_message_loop_proxy_;
+base::SingleThreadTaskRunner* ClientContext::main_task_runner() {
+ return main_task_runner_;
}
-base::MessageLoopProxy* ClientContext::decode_message_loop() {
+base::SingleThreadTaskRunner* ClientContext::decode_task_runner() {
return decode_thread_.message_loop_proxy();
}
-base::MessageLoopProxy* ClientContext::network_message_loop() {
- return main_message_loop_proxy_;
-}
-
} // namespace remoting