| 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/process/launch.h" | 11 #include "base/process/launch.h" |
| 12 #include "base/process/memory.h" | 12 #include "base/process/memory.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/timer/hi_res_timer_manager.h" | 14 #include "base/timer/hi_res_timer_manager.h" |
| 15 #include "chrome/app/breakpad_win.h" | 15 #include "chrome/app/breakpad_win.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 "chrome/nacl/nacl_listener.h" | |
| 20 #include "chrome/nacl/nacl_main_platform_delegate.h" | |
| 21 #include "components/breakpad/breakpad_client.h" | 19 #include "components/breakpad/breakpad_client.h" |
| 22 #include "components/nacl/broker/nacl_broker_listener.h" | 20 #include "components/nacl/broker/nacl_broker_listener.h" |
| 23 #include "components/nacl/common/nacl_switches.h" | 21 #include "components/nacl/common/nacl_switches.h" |
| 22 #include "components/nacl/loader/nacl_listener.h" |
| 23 #include "components/nacl/loader/nacl_main_platform_delegate.h" |
| 24 #include "content/public/app/startup_helper_win.h" | 24 #include "content/public/app/startup_helper_win.h" |
| 25 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
| 26 #include "content/public/common/main_function_params.h" | 26 #include "content/public/common/main_function_params.h" |
| 27 #include "content/public/common/sandbox_init.h" | 27 #include "content/public/common/sandbox_init.h" |
| 28 #include "sandbox/win/src/sandbox_types.h" | 28 #include "sandbox/win/src/sandbox_types.h" |
| 29 | 29 |
| 30 extern int NaClMain(const content::MainFunctionParams&); | 30 extern int NaClMain(const content::MainFunctionParams&); |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 if (process_type == switches::kNaClLoaderProcess) | 87 if (process_type == switches::kNaClLoaderProcess) |
| 88 return NaClMain(main_params); | 88 return NaClMain(main_params); |
| 89 | 89 |
| 90 if (process_type == switches::kNaClBrokerProcess) | 90 if (process_type == switches::kNaClBrokerProcess) |
| 91 return NaClBrokerMain(main_params); | 91 return NaClBrokerMain(main_params); |
| 92 | 92 |
| 93 CHECK(false) << "Unknown NaCl 64 process."; | 93 CHECK(false) << "Unknown NaCl 64 process."; |
| 94 return -1; | 94 return -1; |
| 95 } | 95 } |
| OLD | NEW |