| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_descriptor_posix.h" | 10 #include "base/file_descriptor_posix.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/message_loop/message_loop.h" |
| 13 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 16 #include "components/nacl/common/nacl.mojom.h" | 17 #include "components/nacl/common/nacl.mojom.h" |
| 17 #include "components/nacl/common/nacl_messages.h" | 18 #include "components/nacl/common/nacl_messages.h" |
| 18 #include "components/nacl/common/nacl_service.h" | 19 #include "components/nacl/common/nacl_service.h" |
| 19 #include "components/nacl/common/nacl_types.h" | 20 #include "components/nacl/common/nacl_types.h" |
| 20 #include "components/nacl/loader/nacl_trusted_listener.h" | 21 #include "components/nacl/loader/nacl_trusted_listener.h" |
| 21 #include "components/nacl/loader/nonsfi/nonsfi_main.h" | 22 #include "components/nacl/loader/nonsfi/nonsfi_main.h" |
| 22 #include "content/public/common/content_descriptors.h" | 23 #include "content/public/common/content_descriptors.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 CHECK(params.nexe_file != IPC::InvalidPlatformFileForTransit()); | 135 CHECK(params.nexe_file != IPC::InvalidPlatformFileForTransit()); |
| 135 CHECK(params.nexe_file_path_metadata.empty()); | 136 CHECK(params.nexe_file_path_metadata.empty()); |
| 136 | 137 |
| 137 ppapi::RegisterPreopenedDescriptorsNonSfi(key_fd_map_.release()); | 138 ppapi::RegisterPreopenedDescriptorsNonSfi(key_fd_map_.release()); |
| 138 | 139 |
| 139 MainStart(IPC::PlatformFileForTransitToPlatformFile(params.nexe_file)); | 140 MainStart(IPC::PlatformFileForTransitToPlatformFile(params.nexe_file)); |
| 140 } | 141 } |
| 141 | 142 |
| 142 } // namespace nonsfi | 143 } // namespace nonsfi |
| 143 } // namespace nacl | 144 } // namespace nacl |
| OLD | NEW |