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

Unified Diff: remoting/client/plugin/pepper_xmpp_proxy.h

Issue 10454018: MessageLoopProxy cleanups in remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/plugin/pepper_xmpp_proxy.h
diff --git a/remoting/client/plugin/pepper_xmpp_proxy.h b/remoting/client/plugin/pepper_xmpp_proxy.h
index 40ba4bad762ab582201f3d6eddb6ed95b01afb32..d2808f9eb1d9cea2e8ac91f9eb7ae3830d9cb5bc 100644
--- a/remoting/client/plugin/pepper_xmpp_proxy.h
+++ b/remoting/client/plugin/pepper_xmpp_proxy.h
@@ -11,7 +11,7 @@
#include "remoting/jingle_glue/xmpp_proxy.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
} // namespace base
namespace remoting {
@@ -22,8 +22,8 @@ class PepperXmppProxy : public XmppProxy {
PepperXmppProxy(
const SendIqCallback& send_iq_callback,
- base::MessageLoopProxy* plugin_message_loop,
- base::MessageLoopProxy* callback_message_loop);
+ base::SingleThreadTaskRunner* plugin_task_runner,
+ base::SingleThreadTaskRunner* callback_task_runner);
Wez 2012/05/26 00:18:40 nit: scoped_refptr<>?
Wez 2012/05/26 00:18:40 nit: Clarify the roles of the two TaskRunners.
Sergey Ulanov 2012/05/30 01:07:07 Will fix in a separate CL.
Sergey Ulanov 2012/05/30 01:07:07 Done.
// Registered the callback class with this object.
//
@@ -46,8 +46,8 @@ class PepperXmppProxy : public XmppProxy {
SendIqCallback send_iq_callback_;
- scoped_refptr<base::MessageLoopProxy> plugin_message_loop_;
- scoped_refptr<base::MessageLoopProxy> callback_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> plugin_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_;
// Must only be access on callback_message_loop_.
base::WeakPtr<ResponseCallback> callback_;

Powered by Google App Engine
This is Rietveld 408576698