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

Unified Diff: remoting/client/client_context.h

Issue 7633009: Use MessageLoopProxy for network message loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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
Index: remoting/client/client_context.h
diff --git a/remoting/client/client_context.h b/remoting/client/client_context.h
index e825d44fba17afe3711e6232048c07e61a88a295..a71f5166941b592f5399a1d6abf3513b5ed30449 100644
--- a/remoting/client/client_context.h
+++ b/remoting/client/client_context.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/message_loop_proxy.h"
#include "base/threading/thread.h"
namespace remoting {
@@ -23,7 +24,7 @@ class ClientContext {
MessageLoop* main_message_loop();
MessageLoop* decode_message_loop();
- MessageLoop* network_message_loop();
+ base::MessageLoopProxy* network_message_loop();
private:
// A thread that handles capture rate control and sending data to the
@@ -34,8 +35,13 @@ class ClientContext {
base::Thread decode_thread_;
// A thread that handles all network IO.
+ //
+ // TODO(sergeyu): Remove |network_thread_| and use main plugin
+ // message loop for network IO.
base::Thread network_thread_;
+ scoped_refptr<base::MessageLoopProxy> network_message_loop_;
+
DISALLOW_COPY_AND_ASSIGN(ClientContext);
};

Powered by Google App Engine
This is Rietveld 408576698