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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/power_monitor/power_monitor.h" | 10 #include "base/power_monitor/power_monitor.h" |
11 #include "base/power_monitor/power_monitor_device_source.h" | 11 #include "base/power_monitor/power_monitor_device_source.h" |
12 #include "base/process/launch.h" | 12 #include "base/process/launch.h" |
13 #include "base/process/memory.h" | 13 #include "base/process/memory.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/timer/hi_res_timer_manager.h" | 15 #include "base/timer/hi_res_timer_manager.h" |
16 #include "chrome/app/chrome_breakpad_client.h" | 16 #include "chrome/app/chrome_breakpad_client.h" |
17 #include "chrome/common/chrome_result_codes.h" | 17 #include "chrome/common/chrome_result_codes.h" |
18 #include "chrome/common/logging_chrome.h" | 18 #include "chrome/common/logging_chrome.h" |
19 #include "components/breakpad/breakpad_client.h" | 19 #include "components/breakpad/app/breakpad_client.h" |
20 #include "components/breakpad/breakpad_win.h" | 20 #include "components/breakpad/app/breakpad_win.h" |
21 #include "components/nacl/broker/nacl_broker_listener.h" | 21 #include "components/nacl/broker/nacl_broker_listener.h" |
22 #include "components/nacl/common/nacl_switches.h" | 22 #include "components/nacl/common/nacl_switches.h" |
23 #include "components/nacl/loader/nacl_listener.h" | 23 #include "components/nacl/loader/nacl_listener.h" |
24 #include "components/nacl/loader/nacl_main_platform_delegate.h" | 24 #include "components/nacl/loader/nacl_main_platform_delegate.h" |
25 #include "content/public/app/startup_helper_win.h" | 25 #include "content/public/app/startup_helper_win.h" |
26 #include "content/public/common/content_switches.h" | 26 #include "content/public/common/content_switches.h" |
27 #include "content/public/common/main_function_params.h" | 27 #include "content/public/common/main_function_params.h" |
28 #include "content/public/common/sandbox_init.h" | 28 #include "content/public/common/sandbox_init.h" |
29 #include "sandbox/win/src/sandbox_types.h" | 29 #include "sandbox/win/src/sandbox_types.h" |
30 | 30 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 if (process_type == switches::kNaClLoaderProcess) | 88 if (process_type == switches::kNaClLoaderProcess) |
89 return NaClMain(main_params); | 89 return NaClMain(main_params); |
90 | 90 |
91 if (process_type == switches::kNaClBrokerProcess) | 91 if (process_type == switches::kNaClBrokerProcess) |
92 return NaClBrokerMain(main_params); | 92 return NaClBrokerMain(main_params); |
93 | 93 |
94 CHECK(false) << "Unknown NaCl 64 process."; | 94 CHECK(false) << "Unknown NaCl 64 process."; |
95 return -1; | 95 return -1; |
96 } | 96 } |
OLD | NEW |