| // Copyright 2013 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "components/nacl/common/nacl_types.h" |
| #include "ipc/ipc_platform_file.h" |
| |
| namespace nacl { |
| |
| NaClStartParams::NaClStartParams() |
| : validation_cache_enabled(false), |
| enable_exception_handling(false), |
| enable_debug_stub(false), |
| enable_ipc_proxy(false), |
| uses_irt(false), |
| enable_dyncode_syscalls(false) { |
| } |
| |
| NaClStartParams::~NaClStartParams() { |
| } |
| |
| NaClLaunchParams::NaClLaunchParams() |
| : render_view_id(0), |
| permission_bits(0), |
| uses_irt(false), |
| enable_dyncode_syscalls(false), |
| enable_exception_handling(false), |
| enable_crash_throttling(false) { |
| } |
| |
| NaClLaunchParams::NaClLaunchParams(const std::string& manifest_url, |
| int render_view_id, |
| uint32 permission_bits, |
| bool uses_irt, |
| bool enable_dyncode_syscalls, |
| bool enable_exception_handling, |
| bool enable_crash_throttling) |
| : manifest_url(manifest_url), |
| render_view_id(render_view_id), |
| permission_bits(permission_bits), |
| uses_irt(uses_irt), |
| enable_dyncode_syscalls(enable_dyncode_syscalls), |
| enable_exception_handling(enable_exception_handling), |
| enable_crash_throttling(enable_crash_throttling) { |
| } |
| |
| NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& l) { |
| manifest_url = l.manifest_url; |
| render_view_id = l.render_view_id; |
| permission_bits = l.permission_bits; |
| uses_irt = l.uses_irt; |
| enable_dyncode_syscalls = l.enable_dyncode_syscalls; |
| enable_exception_handling = l.enable_exception_handling; |
| enable_crash_throttling = l.enable_crash_throttling; |
| } |
| |
| NaClLaunchParams::~NaClLaunchParams() { |
| } |
| |
| NaClLaunchResult::NaClLaunchResult() |
| : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), |
| ipc_channel_handle(), |
| plugin_pid(base::kNullProcessId), |
| plugin_child_id(0) { |
| } |
| |
| NaClLaunchResult::NaClLaunchResult( |
| FileDescriptor imc_channel_handle, |
| const IPC::ChannelHandle& ipc_channel_handle, |
| base::ProcessId plugin_pid, |
| int plugin_child_id) |
| : imc_channel_handle(imc_channel_handle), |
| ipc_channel_handle(ipc_channel_handle), |
| plugin_pid(plugin_pid), |
| plugin_child_id(plugin_child_id) { |
| } |
| |
| NaClLaunchResult::~NaClLaunchResult() { |
| } |
| |
| } // namespace nacl |