This source file includes following definitions.
- audio_decode_thread_
- Start
- Stop
- main_task_runner
- decode_task_runner
- audio_decode_task_runner
#include "remoting/client/client_context.h"
namespace remoting {
ClientContext::ClientContext(base::SingleThreadTaskRunner* main_task_runner)
: main_task_runner_(main_task_runner),
decode_thread_("ChromotingClientDecodeThread"),
audio_decode_thread_("ChromotingClientAudioDecodeThread") {
}
ClientContext::~ClientContext() {
}
void ClientContext::Start() {
decode_thread_.Start();
audio_decode_thread_.Start();
}
void ClientContext::Stop() {
decode_thread_.Stop();
audio_decode_thread_.Stop();
}
base::SingleThreadTaskRunner* ClientContext::main_task_runner() {
return main_task_runner_.get();
}
base::SingleThreadTaskRunner* ClientContext::decode_task_runner() {
return decode_thread_.message_loop_proxy().get();
}
base::SingleThreadTaskRunner* ClientContext::audio_decode_task_runner() {
return audio_decode_thread_.message_loop_proxy().get();
}
}