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> |
11 | 11 |
12 #if defined(OS_POSIX) | 12 #if defined(OS_POSIX) |
13 #include <unistd.h> | 13 #include <unistd.h> |
14 #endif | 14 #endif |
15 | 15 |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
| 21 #include "build/build_config.h" |
21 #include "components/nacl/common/nacl_messages.h" | 22 #include "components/nacl/common/nacl_messages.h" |
22 #include "components/nacl/common/nacl_renderer_messages.h" | 23 #include "components/nacl/common/nacl_renderer_messages.h" |
23 #include "components/nacl/common/nacl_switches.h" | 24 #include "components/nacl/common/nacl_switches.h" |
24 #include "components/nacl/loader/nacl_ipc_adapter.h" | 25 #include "components/nacl/loader/nacl_ipc_adapter.h" |
25 #include "components/nacl/loader/nacl_validation_db.h" | 26 #include "components/nacl/loader/nacl_validation_db.h" |
26 #include "components/nacl/loader/nacl_validation_query.h" | 27 #include "components/nacl/loader/nacl_validation_query.h" |
27 #include "ipc/attachment_broker_unprivileged.h" | 28 #include "ipc/attachment_broker_unprivileged.h" |
28 #include "ipc/ipc_channel_handle.h" | 29 #include "ipc/ipc_channel_handle.h" |
29 #include "ipc/ipc_switches.h" | 30 #include "ipc/ipc_switches.h" |
30 #include "ipc/ipc_sync_channel.h" | 31 #include "ipc/ipc_sync_channel.h" |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 } | 494 } |
494 | 495 |
495 void NaClListener::OnFileTokenResolved( | 496 void NaClListener::OnFileTokenResolved( |
496 uint64_t token_lo, | 497 uint64_t token_lo, |
497 uint64_t token_hi, | 498 uint64_t token_hi, |
498 IPC::PlatformFileForTransit ipc_fd, | 499 IPC::PlatformFileForTransit ipc_fd, |
499 base::FilePath file_path) { | 500 base::FilePath file_path) { |
500 resolved_cb_.Run(ipc_fd, file_path); | 501 resolved_cb_.Run(ipc_fd, file_path); |
501 resolved_cb_.Reset(); | 502 resolved_cb_.Reset(); |
502 } | 503 } |
OLD | NEW |