OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file implements a standalone host process for Me2Me. | 5 // This file implements a standalone host process for Me2Me. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.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/debug/alias.h" | 13 #include "base/debug/alias.h" |
14 #include "base/file_util.h" | |
15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/synchronization/waitable_event.h" | 22 #include "base/synchronization/waitable_event.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "crypto/nss_util.h" | 25 #include "crypto/nss_util.h" |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 int exit_code = kSuccessExitCode; | 1448 int exit_code = kSuccessExitCode; |
1449 new HostProcess(context.Pass(), &exit_code); | 1449 new HostProcess(context.Pass(), &exit_code); |
1450 | 1450 |
1451 // Run the main (also UI) message loop until the host no longer needs it. | 1451 // Run the main (also UI) message loop until the host no longer needs it. |
1452 message_loop.Run(); | 1452 message_loop.Run(); |
1453 | 1453 |
1454 return exit_code; | 1454 return exit_code; |
1455 } | 1455 } |
1456 | 1456 |
1457 } // namespace remoting | 1457 } // namespace remoting |
OLD | NEW |