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 fc5ee4287a6d097280dc607e6237fc36cda2fa77..aca7f94aac48c0e43759ce9b097756f15c12e807 100644 |
--- a/remoting/client/plugin/pepper_xmpp_proxy.h |
+++ b/remoting/client/plugin/pepper_xmpp_proxy.h |
@@ -5,9 +5,14 @@ |
#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_XMPP_PROXY_H_ |
#define REMOTING_CLIENT_PLUGIN_PEPPER_XMPP_PROXY_H_ |
+#include "base/memory/ref_counted.h" |
#include "base/memory/weak_ptr.h" |
#include "remoting/jingle_glue/xmpp_proxy.h" |
+namespace base { |
+class MessageLoopProxy; |
+} // namespace base |
+ |
namespace remoting { |
class ChromotingScriptableObject; |
@@ -16,7 +21,7 @@ class PepperXmppProxy : public XmppProxy { |
public: |
PepperXmppProxy( |
base::WeakPtr<ChromotingScriptableObject> scriptable_object, |
- MessageLoop* callback_message_loop); |
+ base::MessageLoopProxy* callback_message_loop); |
// Registered the callback class with this object. |
// |
@@ -38,7 +43,7 @@ class PepperXmppProxy : public XmppProxy { |
base::WeakPtr<ChromotingScriptableObject> scriptable_object_; |
- MessageLoop* callback_message_loop_; |
+ scoped_refptr<base::MessageLoopProxy> callback_message_loop_; |
// Must only be access on callback_message_loop_. |
base::WeakPtr<ResponseCallback> callback_; |