OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/nacl_types.h" | 5 #include "chrome/common/nacl_types.h" |
| 6 #include "ipc/ipc_platform_file.h" |
6 | 7 |
7 namespace nacl { | 8 namespace nacl { |
8 | 9 |
9 NaClStartParams::NaClStartParams() | 10 NaClStartParams::NaClStartParams() |
10 : validation_cache_enabled(false), | 11 : validation_cache_enabled(false), |
11 enable_exception_handling(false), | 12 enable_exception_handling(false), |
12 enable_debug_stub(false), | 13 enable_debug_stub(false), |
13 enable_ipc_proxy(false), | 14 enable_ipc_proxy(false), |
14 uses_irt(false), | 15 uses_irt(false), |
15 enable_dyncode_syscalls(false) { | 16 enable_dyncode_syscalls(false) { |
(...skipping 29 matching lines...) Expand all Loading... |
45 render_view_id = l.render_view_id; | 46 render_view_id = l.render_view_id; |
46 permission_bits = l.permission_bits; | 47 permission_bits = l.permission_bits; |
47 uses_irt = l.uses_irt; | 48 uses_irt = l.uses_irt; |
48 enable_dyncode_syscalls = l.enable_dyncode_syscalls; | 49 enable_dyncode_syscalls = l.enable_dyncode_syscalls; |
49 enable_exception_handling = l.enable_exception_handling; | 50 enable_exception_handling = l.enable_exception_handling; |
50 } | 51 } |
51 | 52 |
52 NaClLaunchParams::~NaClLaunchParams() { | 53 NaClLaunchParams::~NaClLaunchParams() { |
53 } | 54 } |
54 | 55 |
| 56 NaClLaunchResult::NaClLaunchResult() |
| 57 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), |
| 58 ipc_channel_handle(), |
| 59 plugin_pid(base::kNullProcessId), |
| 60 plugin_child_id(0) { |
| 61 } |
| 62 |
| 63 NaClLaunchResult::NaClLaunchResult( |
| 64 FileDescriptor imc_channel_handle, |
| 65 const IPC::ChannelHandle& ipc_channel_handle, |
| 66 base::ProcessId plugin_pid, |
| 67 int plugin_child_id) |
| 68 : imc_channel_handle(imc_channel_handle), |
| 69 ipc_channel_handle(ipc_channel_handle), |
| 70 plugin_pid(plugin_pid), |
| 71 plugin_child_id(plugin_child_id) { |
| 72 } |
| 73 |
| 74 NaClLaunchResult::~NaClLaunchResult() { |
| 75 } |
| 76 |
55 } // namespace nacl | 77 } // namespace nacl |
OLD | NEW |