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 "ppapi/nacl_irt/manifest_service.h" | 5 #include "ppapi/nacl_irt/manifest_service.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "build/build_config.h" |
8 #include "ipc/ipc_channel_handle.h" | 12 #include "ipc/ipc_channel_handle.h" |
9 #include "ipc/ipc_channel_proxy.h" | 13 #include "ipc/ipc_channel_proxy.h" |
10 #include "ipc/ipc_sync_message_filter.h" | 14 #include "ipc/ipc_sync_message_filter.h" |
11 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" | 15 #include "native_client/src/trusted/service_runtime/include/sys/errno.h" |
12 #include "ppapi/nacl_irt/irt_manifest.h" | 16 #include "ppapi/nacl_irt/irt_manifest.h" |
13 #include "ppapi/nacl_irt/plugin_startup.h" | 17 #include "ppapi/nacl_irt/plugin_startup.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
15 | 19 |
16 #if !defined(OS_NACL_SFI) | 20 #if !defined(OS_NACL_SFI) |
17 #include <pthread.h> | 21 #include <pthread.h> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 167 |
164 ManifestService* manifest_service = GetManifestService(); | 168 ManifestService* manifest_service = GetManifestService(); |
165 if (manifest_service == NULL || | 169 if (manifest_service == NULL || |
166 !manifest_service->OpenResource(file, fd)) { | 170 !manifest_service->OpenResource(file, fd)) { |
167 return NACL_ABI_EIO; | 171 return NACL_ABI_EIO; |
168 } | 172 } |
169 return (*fd == -1) ? NACL_ABI_ENOENT : 0; | 173 return (*fd == -1) ? NACL_ABI_ENOENT : 0; |
170 } | 174 } |
171 | 175 |
172 } // namespace ppapi | 176 } // namespace ppapi |
OLD | NEW |