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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/hi_res_timer_manager.h" | 8 #include "base/hi_res_timer_manager.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/power_monitor/power_monitor.h" | 10 #include "base/power_monitor/power_monitor.h" |
11 #include "chrome/common/chrome_result_codes.h" | 11 #include "components/nacl/loader/nacl_listener.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "components/nacl/loader/nacl_main_platform_delegate.h" |
13 #include "chrome/common/logging_chrome.h" | 13 #include "content/public/common/content_switches.h" |
14 #include "chrome/nacl/nacl_listener.h" | |
15 #include "chrome/nacl/nacl_main_platform_delegate.h" | |
16 #include "content/public/common/main_function_params.h" | 14 #include "content/public/common/main_function_params.h" |
17 | 15 |
18 // main() routine for the NaCl loader process. | 16 // main() routine for the NaCl loader process. |
19 int NaClMain(const content::MainFunctionParams& parameters) { | 17 int NaClMain(const content::MainFunctionParams& parameters) { |
20 const CommandLine& parsed_command_line = parameters.command_line; | 18 const CommandLine& parsed_command_line = parameters.command_line; |
21 | 19 |
22 // The main thread of the plugin services IO. | 20 // The main thread of the plugin services IO. |
23 base::MessageLoopForIO main_message_loop; | 21 base::MessageLoopForIO main_message_loop; |
24 base::PlatformThread::SetName("CrNaClMain"); | 22 base::PlatformThread::SetName("CrNaClMain"); |
25 | 23 |
(...skipping 22 matching lines...) Expand all Loading... |
48 // require waiting for a timeout. | 46 // require waiting for a timeout. |
49 VLOG(1) << "Sandbox test failed: Not launching NaCl process"; | 47 VLOG(1) << "Sandbox test failed: Not launching NaCl process"; |
50 } | 48 } |
51 #else | 49 #else |
52 NOTIMPLEMENTED() << " not implemented startup, plugin startup dialog etc."; | 50 NOTIMPLEMENTED() << " not implemented startup, plugin startup dialog etc."; |
53 #endif | 51 #endif |
54 | 52 |
55 platform.PlatformUninitialize(); | 53 platform.PlatformUninitialize(); |
56 return 0; | 54 return 0; |
57 } | 55 } |
OLD | NEW |