| 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 "chrome/nacl/nacl_listener.h" | 5 #include "components/nacl/loader/nacl_listener.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
| 11 #include <unistd.h> | 11 #include <unistd.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.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/rand_util.h" | 18 #include "base/rand_util.h" |
| 19 #include "chrome/nacl/nacl_ipc_adapter.h" | |
| 20 #include "chrome/nacl/nacl_validation_db.h" | |
| 21 #include "chrome/nacl/nacl_validation_query.h" | |
| 22 #include "components/nacl/common/nacl_messages.h" | 19 #include "components/nacl/common/nacl_messages.h" |
| 20 #include "components/nacl/loader/nacl_ipc_adapter.h" |
| 21 #include "components/nacl/loader/nacl_validation_db.h" |
| 22 #include "components/nacl/loader/nacl_validation_query.h" |
| 23 #include "ipc/ipc_channel_handle.h" | 23 #include "ipc/ipc_channel_handle.h" |
| 24 #include "ipc/ipc_switches.h" | 24 #include "ipc/ipc_switches.h" |
| 25 #include "ipc/ipc_sync_channel.h" | 25 #include "ipc/ipc_sync_channel.h" |
| 26 #include "ipc/ipc_sync_message_filter.h" | 26 #include "ipc/ipc_sync_message_filter.h" |
| 27 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" | 27 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" |
| 28 #include "native_client/src/trusted/validator/nacl_file_info.h" | 28 #include "native_client/src/trusted/validator/nacl_file_info.h" |
| 29 | 29 |
| 30 #if defined(OS_POSIX) | 30 #if defined(OS_POSIX) |
| 31 #include "base/file_descriptor_posix.h" | 31 #include "base/file_descriptor_posix.h" |
| 32 #endif | 32 #endif |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 #if defined(OS_WIN) | 327 #if defined(OS_WIN) |
| 328 args->broker_duplicate_handle_func = BrokerDuplicateHandle; | 328 args->broker_duplicate_handle_func = BrokerDuplicateHandle; |
| 329 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; | 329 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; |
| 330 #endif | 330 #endif |
| 331 #if defined(OS_LINUX) | 331 #if defined(OS_LINUX) |
| 332 args->prereserved_sandbox_size = prereserved_sandbox_size_; | 332 args->prereserved_sandbox_size = prereserved_sandbox_size_; |
| 333 #endif | 333 #endif |
| 334 NaClChromeMainStart(args); | 334 NaClChromeMainStart(args); |
| 335 NOTREACHED(); | 335 NOTREACHED(); |
| 336 } | 336 } |
| OLD | NEW |