| 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 15 matching lines...) Expand all Loading... |
| 26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
| 27 #include "components/nacl/common/nacl_messages.h" | 27 #include "components/nacl/common/nacl_messages.h" |
| 28 #include "components/nacl/common/nacl_renderer_messages.h" | 28 #include "components/nacl/common/nacl_renderer_messages.h" |
| 29 #include "components/nacl/common/nacl_switches.h" | 29 #include "components/nacl/common/nacl_switches.h" |
| 30 #include "components/nacl/loader/nacl_ipc_adapter.h" | 30 #include "components/nacl/loader/nacl_ipc_adapter.h" |
| 31 #include "components/nacl/loader/nacl_validation_db.h" | 31 #include "components/nacl/loader/nacl_validation_db.h" |
| 32 #include "components/nacl/loader/nacl_validation_query.h" | 32 #include "components/nacl/loader/nacl_validation_query.h" |
| 33 #include "content/public/common/mojo_channel_switches.h" | 33 #include "content/public/common/mojo_channel_switches.h" |
| 34 #include "ipc/attachment_broker_unprivileged.h" | 34 #include "ipc/attachment_broker_unprivileged.h" |
| 35 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
| 36 #include "ipc/ipc_switches.h" | |
| 37 #include "ipc/ipc_sync_channel.h" | 36 #include "ipc/ipc_sync_channel.h" |
| 38 #include "ipc/ipc_sync_message_filter.h" | 37 #include "ipc/ipc_sync_message_filter.h" |
| 39 #include "mojo/edk/embedder/embedder.h" | 38 #include "mojo/edk/embedder/embedder.h" |
| 40 #include "mojo/edk/embedder/scoped_ipc_support.h" | 39 #include "mojo/edk/embedder/scoped_ipc_support.h" |
| 41 #include "native_client/src/public/chrome_main.h" | 40 #include "native_client/src/public/chrome_main.h" |
| 42 #include "native_client/src/public/nacl_app.h" | 41 #include "native_client/src/public/nacl_app.h" |
| 43 #include "native_client/src/public/nacl_desc.h" | 42 #include "native_client/src/public/nacl_desc.h" |
| 44 | 43 |
| 45 #if defined(OS_POSIX) | 44 #if defined(OS_POSIX) |
| 46 #include "base/file_descriptor_posix.h" | 45 #include "base/file_descriptor_posix.h" |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 474 } |
| 476 | 475 |
| 477 void NaClListener::OnFileTokenResolved( | 476 void NaClListener::OnFileTokenResolved( |
| 478 uint64_t token_lo, | 477 uint64_t token_lo, |
| 479 uint64_t token_hi, | 478 uint64_t token_hi, |
| 480 IPC::PlatformFileForTransit ipc_fd, | 479 IPC::PlatformFileForTransit ipc_fd, |
| 481 base::FilePath file_path) { | 480 base::FilePath file_path) { |
| 482 resolved_cb_.Run(ipc_fd, file_path); | 481 resolved_cb_.Run(ipc_fd, file_path); |
| 483 resolved_cb_.Reset(); | 482 resolved_cb_.Reset(); |
| 484 } | 483 } |
| OLD | NEW |