OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/setup/native_messaging_host.h" | 5 #include "remoting/host/setup/me2me_native_messaging_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 scoped_ptr<NativeMessagingChannel> channel( | 505 scoped_ptr<NativeMessagingChannel> channel( |
506 new NativeMessagingChannel(host.Pass(), read_file, write_file)); | 506 new NativeMessagingChannel(host.Pass(), read_file, write_file)); |
507 channel->Start(run_loop.QuitClosure()); | 507 channel->Start(run_loop.QuitClosure()); |
508 | 508 |
509 // Run the loop until channel is alive. | 509 // Run the loop until channel is alive. |
510 run_loop.Run(); | 510 run_loop.Run(); |
511 return kSuccessExitCode; | 511 return kSuccessExitCode; |
512 } | 512 } |
513 | 513 |
514 } // namespace remoting | 514 } // namespace remoting |
OLD | NEW |