| 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/common/nacl_types.h" | 5 #include "components/nacl/common/nacl_types.h" |
| 6 #include "ipc/ipc_platform_file.h" | 6 #include "ipc/ipc_platform_file.h" |
| 7 | 7 |
| 8 namespace nacl { | 8 namespace nacl { |
| 9 | 9 |
| 10 NaClStartParams::NaClStartParams() | 10 NaClStartParams::NaClStartParams() |
| 11 : validation_cache_enabled(false), | 11 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 12 validation_cache_enabled(false), |
| 12 enable_exception_handling(false), | 13 enable_exception_handling(false), |
| 13 enable_debug_stub(false), | 14 enable_debug_stub(false), |
| 14 enable_ipc_proxy(false), | 15 enable_ipc_proxy(false), |
| 15 uses_irt(false), | 16 uses_irt(false), |
| 16 enable_dyncode_syscalls(false) { | 17 enable_dyncode_syscalls(false) { |
| 17 } | 18 } |
| 18 | 19 |
| 19 NaClStartParams::~NaClStartParams() { | 20 NaClStartParams::~NaClStartParams() { |
| 20 } | 21 } |
| 21 | 22 |
| 22 NaClLaunchParams::NaClLaunchParams() | 23 NaClLaunchParams::NaClLaunchParams() |
| 23 : render_view_id(0), | 24 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 25 render_view_id(0), |
| 24 permission_bits(0), | 26 permission_bits(0), |
| 25 uses_irt(false), | 27 uses_irt(false), |
| 26 enable_dyncode_syscalls(false), | 28 enable_dyncode_syscalls(false), |
| 27 enable_exception_handling(false), | 29 enable_exception_handling(false), |
| 28 enable_crash_throttling(false) { | 30 enable_crash_throttling(false) { |
| 29 } | 31 } |
| 30 | 32 |
| 31 NaClLaunchParams::NaClLaunchParams(const std::string& manifest_url, | 33 NaClLaunchParams::NaClLaunchParams( |
| 32 int render_view_id, | 34 const std::string& manifest_url, |
| 33 uint32 permission_bits, | 35 const IPC::PlatformFileForTransit& nexe_file, |
| 34 bool uses_irt, | 36 int render_view_id, |
| 35 bool uses_nonsfi_mode, | 37 uint32 permission_bits, |
| 36 bool enable_dyncode_syscalls, | 38 bool uses_irt, |
| 37 bool enable_exception_handling, | 39 bool uses_nonsfi_mode, |
| 38 bool enable_crash_throttling) | 40 bool enable_dyncode_syscalls, |
| 41 bool enable_exception_handling, |
| 42 bool enable_crash_throttling) |
| 39 : manifest_url(manifest_url), | 43 : manifest_url(manifest_url), |
| 44 nexe_file(nexe_file), |
| 40 render_view_id(render_view_id), | 45 render_view_id(render_view_id), |
| 41 permission_bits(permission_bits), | 46 permission_bits(permission_bits), |
| 42 uses_irt(uses_irt), | 47 uses_irt(uses_irt), |
| 43 uses_nonsfi_mode(uses_nonsfi_mode), | 48 uses_nonsfi_mode(uses_nonsfi_mode), |
| 44 enable_dyncode_syscalls(enable_dyncode_syscalls), | 49 enable_dyncode_syscalls(enable_dyncode_syscalls), |
| 45 enable_exception_handling(enable_exception_handling), | 50 enable_exception_handling(enable_exception_handling), |
| 46 enable_crash_throttling(enable_crash_throttling) { | 51 enable_crash_throttling(enable_crash_throttling) { |
| 47 } | 52 } |
| 48 | 53 |
| 49 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& l) { | 54 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& l) |
| 50 manifest_url = l.manifest_url; | 55 : manifest_url(l.manifest_url), |
| 51 render_view_id = l.render_view_id; | 56 nexe_file(l.nexe_file), |
| 52 permission_bits = l.permission_bits; | 57 render_view_id(l.render_view_id), |
| 53 uses_irt = l.uses_irt; | 58 permission_bits(l.permission_bits), |
| 54 uses_nonsfi_mode = l.uses_nonsfi_mode; | 59 uses_irt(l.uses_irt), |
| 55 enable_dyncode_syscalls = l.enable_dyncode_syscalls; | 60 uses_nonsfi_mode(l.uses_nonsfi_mode), |
| 56 enable_exception_handling = l.enable_exception_handling; | 61 enable_dyncode_syscalls(l.enable_dyncode_syscalls), |
| 57 enable_crash_throttling = l.enable_crash_throttling; | 62 enable_exception_handling(l.enable_exception_handling), |
| 63 enable_crash_throttling(l.enable_crash_throttling) { |
| 58 } | 64 } |
| 59 | 65 |
| 60 NaClLaunchParams::~NaClLaunchParams() { | 66 NaClLaunchParams::~NaClLaunchParams() { |
| 61 } | 67 } |
| 62 | 68 |
| 63 NaClLaunchResult::NaClLaunchResult() | 69 NaClLaunchResult::NaClLaunchResult() |
| 64 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), | 70 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), |
| 65 ppapi_ipc_channel_handle(), | 71 ppapi_ipc_channel_handle(), |
| 66 trusted_ipc_channel_handle(), | 72 trusted_ipc_channel_handle(), |
| 67 plugin_pid(base::kNullProcessId), | 73 plugin_pid(base::kNullProcessId), |
| (...skipping 12 matching lines...) Expand all Loading... |
| 80 trusted_ipc_channel_handle(trusted_ipc_channel_handle), | 86 trusted_ipc_channel_handle(trusted_ipc_channel_handle), |
| 81 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 87 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
| 82 plugin_pid(plugin_pid), | 88 plugin_pid(plugin_pid), |
| 83 plugin_child_id(plugin_child_id) { | 89 plugin_child_id(plugin_child_id) { |
| 84 } | 90 } |
| 85 | 91 |
| 86 NaClLaunchResult::~NaClLaunchResult() { | 92 NaClLaunchResult::~NaClLaunchResult() { |
| 87 } | 93 } |
| 88 | 94 |
| 89 } // namespace nacl | 95 } // namespace nacl |
| OLD | NEW |