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

Unified Diff: remoting/host/simple_host_process.cc

Issue 4971003: Inject MessageLoop into Capturer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
« remoting/host/capturer_mac.h ('K') | « remoting/host/mock_objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index 0d4b80ef77259a57057d5010dd679ba9bb3824a6..0a6ff42d5dded2181366a9e6091ff26da722bf69 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -80,15 +80,18 @@ int main(int argc, char** argv) {
scoped_ptr<remoting::Capturer> capturer;
scoped_ptr<remoting::protocol::InputStub> input_stub;
#if defined(OS_WIN)
- capturer.reset(new remoting::CapturerGdi());
+ capturer.reset(new remoting::CapturerGdi(
+ context.capture_message_loop()));
input_stub.reset(new remoting::EventExecutorWin(
context.capture_message_loop(), capturer.get()));
#elif defined(OS_LINUX)
- capturer.reset(new remoting::CapturerLinux());
+ capturer.reset(new remoting::CapturerLinux(
+ context.capture_message_loop()));
input_stub.reset(new remoting::EventExecutorLinux(
context.capture_message_loop(), capturer.get()));
#elif defined(OS_MACOSX)
- capturer.reset(new remoting::CapturerMac());
+ capturer.reset(new remoting::CapturerMac(
+ context.capture_message_loop()));
input_stub.reset(new remoting::EventExecutorMac(
context.capture_message_loop(), capturer.get()));
#endif
@@ -111,7 +114,7 @@ int main(int argc, char** argv) {
if (fake) {
// Inject a fake capturer.
LOG(INFO) << "Using a fake capturer.";
- capturer.reset(new remoting::CapturerFake());
+ capturer.reset(new remoting::CapturerFake(context.capture_message_loop()));
}
base::Thread file_io_thread("FileIO");
« remoting/host/capturer_mac.h ('K') | « remoting/host/mock_objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698