OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/nacl/loader/nonsfi/nonsfi_listener.h" | 5 #include "components/nacl/loader/nonsfi/nonsfi_listener.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_descriptor_posix.h" | 8 #include "base/file_descriptor_posix.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 11 #include "build/build_config.h" |
11 #include "components/nacl/common/nacl_messages.h" | 12 #include "components/nacl/common/nacl_messages.h" |
12 #include "components/nacl/common/nacl_types.h" | 13 #include "components/nacl/common/nacl_types.h" |
13 #include "components/nacl/loader/nacl_trusted_listener.h" | 14 #include "components/nacl/loader/nacl_trusted_listener.h" |
14 #include "components/nacl/loader/nonsfi/nonsfi_main.h" | 15 #include "components/nacl/loader/nonsfi/nonsfi_main.h" |
15 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
16 #include "ipc/ipc_channel_handle.h" | 17 #include "ipc/ipc_channel_handle.h" |
17 #include "ipc/ipc_switches.h" | 18 #include "ipc/ipc_switches.h" |
18 #include "ipc/ipc_sync_channel.h" | 19 #include "ipc/ipc_sync_channel.h" |
19 #include "native_client/src/public/nonsfi/irt_random.h" | 20 #include "native_client/src/public/nonsfi/irt_random.h" |
20 #include "ppapi/nacl_irt/irt_manifest.h" | 21 #include "ppapi/nacl_irt/irt_manifest.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 CHECK(params.nexe_file != IPC::InvalidPlatformFileForTransit()); | 124 CHECK(params.nexe_file != IPC::InvalidPlatformFileForTransit()); |
124 CHECK(params.nexe_file_path_metadata.empty()); | 125 CHECK(params.nexe_file_path_metadata.empty()); |
125 | 126 |
126 ppapi::RegisterPreopenedDescriptorsNonSfi(key_fd_map_.release()); | 127 ppapi::RegisterPreopenedDescriptorsNonSfi(key_fd_map_.release()); |
127 | 128 |
128 MainStart(IPC::PlatformFileForTransitToPlatformFile(params.nexe_file)); | 129 MainStart(IPC::PlatformFileForTransitToPlatformFile(params.nexe_file)); |
129 } | 130 } |
130 | 131 |
131 } // namespace nonsfi | 132 } // namespace nonsfi |
132 } // namespace nacl | 133 } // namespace nacl |
OLD | NEW |