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

Unified Diff: remoting/client/client_context.h

Issue 10454018: MessageLoopProxy cleanups in remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/client/chromoting_client.cc ('k') | remoting/client/client_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/client_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698