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.h" | 17 #include "base/message_loop.h" |
18 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
19 #include "chrome/common/nacl_messages.h" | 19 #include "components/nacl/common/nacl_messages.h" |
20 #include "chrome/nacl/nacl_ipc_adapter.h" | 20 #include "components/nacl/loader/nacl_ipc_adapter.h" |
21 #include "chrome/nacl/nacl_validation_db.h" | 21 #include "components/nacl/loader/nacl_validation_db.h" |
22 #include "chrome/nacl/nacl_validation_query.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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 #if defined(OS_WIN) | 317 #if defined(OS_WIN) |
318 args->broker_duplicate_handle_func = BrokerDuplicateHandle; | 318 args->broker_duplicate_handle_func = BrokerDuplicateHandle; |
319 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; | 319 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; |
320 #endif | 320 #endif |
321 #if defined(OS_LINUX) | 321 #if defined(OS_LINUX) |
322 args->prereserved_sandbox_size = prereserved_sandbox_size_; | 322 args->prereserved_sandbox_size = prereserved_sandbox_size_; |
323 #endif | 323 #endif |
324 NaClChromeMainStart(args); | 324 NaClChromeMainStart(args); |
325 NOTREACHED(); | 325 NOTREACHED(); |
326 } | 326 } |
OLD | NEW |