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

Unified Diff: remoting/client/plugin/chromoting_scriptable_object.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/chromoting_scriptable_object.h
diff --git a/remoting/client/plugin/chromoting_scriptable_object.h b/remoting/client/plugin/chromoting_scriptable_object.h
index acb8d635bdcc95a6b5789a4c5d741704a303f36f..272b1f4cd6b8b26f8c33944daa263408b0acbb1e 100644
--- a/remoting/client/plugin/chromoting_scriptable_object.h
+++ b/remoting/client/plugin/chromoting_scriptable_object.h
@@ -108,7 +108,7 @@
#include "remoting/client/plugin/chromoting_instance.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}; // namespace base
namespace remoting {
@@ -121,7 +121,7 @@ class ChromotingScriptableObject
public:
ChromotingScriptableObject(
ChromotingInstance* instance,
Wez 2012/05/26 00:18:40 nit: Add a comment explaining that the instance mu
Sergey Ulanov 2012/05/30 01:07:07 Done.
- base::MessageLoopProxy* plugin_message_loop);
+ base::SingleThreadTaskRunner* plugin_task_runner);
Wez 2012/05/26 00:18:40 nit: scoped_refptr<>?
Wez 2012/05/26 00:18:40 nit: Clarify that we only need to pass the plugin
Wez 2012/05/26 00:18:40 ChromotingScriptableObject doesn't actually need a
Sergey Ulanov 2012/05/30 01:07:07 It assumes that the task runner runs all tasks on
Sergey Ulanov 2012/05/30 01:07:07 It's really necessary in case, though still might
Sergey Ulanov 2012/05/30 01:07:07 Potentially we can set ThreadTaskRunnerHandle for
virtual ~ChromotingScriptableObject();
virtual void Init();
@@ -206,7 +206,7 @@ class ChromotingScriptableObject
ChromotingInstance* instance_;
- scoped_refptr<base::MessageLoopProxy> plugin_message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> plugin_task_runner_;
DISALLOW_COPY_AND_ASSIGN(ChromotingScriptableObject);
};

Powered by Google App Engine
This is Rietveld 408576698