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 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
15 #include "chrome/common/nacl_messages.h" | 15 #include "components/nacl/common/nacl_messages.h" |
16 #include "chrome/nacl/nacl_ipc_adapter.h" | 16 #include "components/nacl/loader/nacl_ipc_adapter.h" |
17 #include "chrome/nacl/nacl_validation_db.h" | 17 #include "components/nacl/loader/nacl_validation_db.h" |
18 #include "chrome/nacl/nacl_validation_query.h" | 18 #include "components/nacl/loader/nacl_validation_query.h" |
19 #include "ipc/ipc_channel_handle.h" | 19 #include "ipc/ipc_channel_handle.h" |
20 #include "ipc/ipc_switches.h" | 20 #include "ipc/ipc_switches.h" |
21 #include "ipc/ipc_sync_channel.h" | 21 #include "ipc/ipc_sync_channel.h" |
22 #include "ipc/ipc_sync_message_filter.h" | 22 #include "ipc/ipc_sync_message_filter.h" |
23 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" | 23 #include "native_client/src/trusted/service_runtime/sel_main_chrome.h" |
24 #include "native_client/src/trusted/validator/nacl_file_info.h" | 24 #include "native_client/src/trusted/validator/nacl_file_info.h" |
25 | 25 |
26 #if defined(OS_POSIX) | 26 #if defined(OS_POSIX) |
27 #include "base/file_descriptor_posix.h" | 27 #include "base/file_descriptor_posix.h" |
28 #endif | 28 #endif |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 #if defined(OS_WIN) | 309 #if defined(OS_WIN) |
310 args->broker_duplicate_handle_func = BrokerDuplicateHandle; | 310 args->broker_duplicate_handle_func = BrokerDuplicateHandle; |
311 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; | 311 args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; |
312 #endif | 312 #endif |
313 #if defined(OS_LINUX) | 313 #if defined(OS_LINUX) |
314 args->prereserved_sandbox_size = prereserved_sandbox_size_; | 314 args->prereserved_sandbox_size = prereserved_sandbox_size_; |
315 #endif | 315 #endif |
316 NaClChromeMainStart(args); | 316 NaClChromeMainStart(args); |
317 NOTREACHED(); | 317 NOTREACHED(); |
318 } | 318 } |
OLD | NEW |