| Index: remoting/client/client_context.h
|
| diff --git a/remoting/client/client_context.h b/remoting/client/client_context.h
|
| index b6955b8b193274c004c0e1ed96193ba915c16fa4..27a44162d3eaa402928ea48ca661e674231b2af8 100644
|
| --- a/remoting/client/client_context.h
|
| +++ b/remoting/client/client_context.h
|
| @@ -7,27 +7,31 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/message_loop_proxy.h"
|
| #include "base/threading/thread.h"
|
|
|
| +namespace base {
|
| +class SingleThreadTaskRunner;
|
| +} // namespace base
|
| +
|
| namespace remoting {
|
|
|
| // A class that manages threads and running context for the chromoting client
|
| // process.
|
| class ClientContext {
|
| public:
|
| - ClientContext(base::MessageLoopProxy* main_message_loop_proxy);
|
| + // |main_task_runner| is the task runner for the main plugin thread
|
| + // that is used for all PPAPI calls, e.g. network and graphics.
|
| + ClientContext(base::SingleThreadTaskRunner* main_task_runner);
|
| virtual ~ClientContext();
|
|
|
| void Start();
|
| void Stop();
|
|
|
| - base::MessageLoopProxy* main_message_loop();
|
| - base::MessageLoopProxy* decode_message_loop();
|
| - base::MessageLoopProxy* network_message_loop();
|
| + base::SingleThreadTaskRunner* main_task_runner();
|
| + base::SingleThreadTaskRunner* decode_task_runner();
|
|
|
| private:
|
| - scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_;
|
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
|
|
|
| // A thread that handles all decode operations.
|
| base::Thread decode_thread_;
|
|
|