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_main.h" | 5 #include "components/nacl/loader/nonsfi/nonsfi_main.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
9 #include "base/threading/thread_restrictions.h" | 11 #include "base/threading/thread_restrictions.h" |
| 12 #include "build/build_config.h" |
10 #include "native_client/src/include/elf_auxv.h" | 13 #include "native_client/src/include/elf_auxv.h" |
11 #include "native_client/src/public/nonsfi/elf_loader.h" | 14 #include "native_client/src/public/nonsfi/elf_loader.h" |
12 #include "ppapi/nacl_irt/irt_interfaces.h" | 15 #include "ppapi/nacl_irt/irt_interfaces.h" |
13 | 16 |
14 #if !defined(OS_NACL_NONSFI) | 17 #if !defined(OS_NACL_NONSFI) |
15 #error "nonsfi_main.cc must be built for nacl_helper_nonsfi." | 18 #error "nonsfi_main.cc must be built for nacl_helper_nonsfi." |
16 #endif | 19 #endif |
17 | 20 |
18 namespace nacl { | 21 namespace nacl { |
19 namespace nonsfi { | 22 namespace nonsfi { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 reinterpret_cast<EntryPointType>(NaClLoadElfFile(nexe_file)); | 66 reinterpret_cast<EntryPointType>(NaClLoadElfFile(nexe_file)); |
64 if (!base::PlatformThread::CreateNonJoinable( | 67 if (!base::PlatformThread::CreateNonJoinable( |
65 kStackSize, new PluginMainDelegate(entry_point))) { | 68 kStackSize, new PluginMainDelegate(entry_point))) { |
66 LOG(ERROR) << "LoadModuleRpc: Failed to create plugin main thread."; | 69 LOG(ERROR) << "LoadModuleRpc: Failed to create plugin main thread."; |
67 return; | 70 return; |
68 } | 71 } |
69 } | 72 } |
70 | 73 |
71 } // namespace nonsfi | 74 } // namespace nonsfi |
72 } // namespace nacl | 75 } // namespace nacl |
OLD | NEW |