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

Unified Diff: remoting/host/screen_recorder.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
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_recorder.h
diff --git a/remoting/host/screen_recorder.h b/remoting/host/screen_recorder.h
index 3007aa52917e6f62e8b53e33f82bbea2536a7039..3398548a37ee0b3bb6f25ea90984cf86a4457b7a 100644
--- a/remoting/host/screen_recorder.h
+++ b/remoting/host/screen_recorder.h
@@ -17,6 +17,10 @@
#include "remoting/host/capturer.h"
#include "remoting/proto/video.pb.h"
+namespace base {
+class MessageLoopProxy;
+} // namespace base
+
namespace remoting {
namespace protocol {
@@ -74,7 +78,7 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// This object does not own capturer but owns encoder.
ScreenRecorder(MessageLoop* capture_loop,
MessageLoop* encode_loop,
- MessageLoop* network_loop,
+ base::MessageLoopProxy* network_loop,
Capturer* capturer,
Encoder* encoder);
@@ -160,7 +164,7 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// Message loops used by this class.
MessageLoop* capture_loop_;
MessageLoop* encode_loop_;
- MessageLoop* network_loop_;
+ scoped_refptr<base::MessageLoopProxy> network_loop_;
// Reference to the capturer. This member is always accessed on the capture
// thread.
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698