| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/nacl_listener.h" | 5 #include "components/nacl/loader/nacl_listener.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "components/nacl/loader/nacl_validation_db.h" | 25 #include "components/nacl/loader/nacl_validation_db.h" |
| 26 #include "components/nacl/loader/nacl_validation_query.h" | 26 #include "components/nacl/loader/nacl_validation_query.h" |
| 27 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
| 28 #include "ipc/ipc_switches.h" | 28 #include "ipc/ipc_switches.h" |
| 29 #include "ipc/ipc_sync_channel.h" | 29 #include "ipc/ipc_sync_channel.h" |
| 30 #include "ipc/ipc_sync_message_filter.h" | 30 #include "ipc/ipc_sync_message_filter.h" |
| 31 #include "mojo/nacl/mojo_syscall.h" | 31 #include "mojo/nacl/mojo_syscall.h" |
| 32 #include "native_client/src/public/chrome_main.h" | 32 #include "native_client/src/public/chrome_main.h" |
| 33 #include "native_client/src/public/nacl_app.h" | 33 #include "native_client/src/public/nacl_app.h" |
| 34 #include "native_client/src/public/nacl_desc.h" | 34 #include "native_client/src/public/nacl_desc.h" |
| 35 #include "native_client/src/public/nacl_file_info.h" | |
| 36 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 35 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
| 37 #include "third_party/mojo/src/mojo/edk/embedder/platform_support.h" | 36 #include "third_party/mojo/src/mojo/edk/embedder/platform_support.h" |
| 38 | 37 |
| 39 #if defined(OS_POSIX) | 38 #if defined(OS_POSIX) |
| 40 #include "base/file_descriptor_posix.h" | 39 #include "base/file_descriptor_posix.h" |
| 41 #endif | 40 #endif |
| 42 | 41 |
| 43 #if defined(OS_LINUX) | 42 #if defined(OS_LINUX) |
| 44 #include "content/public/common/child_process_sandbox_support_linux.h" | 43 #include "content/public/common/child_process_sandbox_support_linux.h" |
| 45 #endif | 44 #endif |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 468 } |
| 470 | 469 |
| 471 void NaClListener::OnFileTokenResolved( | 470 void NaClListener::OnFileTokenResolved( |
| 472 uint64_t token_lo, | 471 uint64_t token_lo, |
| 473 uint64_t token_hi, | 472 uint64_t token_hi, |
| 474 IPC::PlatformFileForTransit ipc_fd, | 473 IPC::PlatformFileForTransit ipc_fd, |
| 475 base::FilePath file_path) { | 474 base::FilePath file_path) { |
| 476 resolved_cb_.Run(ipc_fd, file_path); | 475 resolved_cb_.Run(ipc_fd, file_path); |
| 477 resolved_cb_.Reset(); | 476 resolved_cb_.Reset(); |
| 478 } | 477 } |
| OLD | NEW |