Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / components / nacl / common / nacl_types.cc
blob572b72c44cda14d3f7e6ca0a3cd4d668ffa29762
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
3 // found in the LICENSE file.
5 #include "components/nacl/common/nacl_types.h"
6 #include "ipc/ipc_platform_file.h"
8 namespace nacl {
10 NaClStartParams::NaClStartParams()
11 : nexe_file(IPC::InvalidPlatformFileForTransit()),
12 validation_cache_enabled(false),
13 enable_debug_stub(false),
14 enable_ipc_proxy(false),
15 process_type(kUnknownNaClProcessType),
16 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) {
19 NaClStartParams::~NaClStartParams() {
22 NaClLaunchParams::NaClLaunchParams()
23 : nexe_file(IPC::InvalidPlatformFileForTransit()),
24 nexe_token_lo(0),
25 nexe_token_hi(0),
26 render_view_id(0),
27 permission_bits(0),
28 process_type(kUnknownNaClProcessType) {
31 NaClLaunchParams::NaClLaunchParams(
32 const std::string& manifest_url,
33 const IPC::PlatformFileForTransit& nexe_file,
34 uint64_t nexe_token_lo,
35 uint64_t nexe_token_hi,
36 int render_view_id,
37 uint32 permission_bits,
38 bool uses_nonsfi_mode,
39 NaClAppProcessType process_type)
40 : manifest_url(manifest_url),
41 nexe_file(nexe_file),
42 nexe_token_lo(nexe_token_lo),
43 nexe_token_hi(nexe_token_hi),
44 render_view_id(render_view_id),
45 permission_bits(permission_bits),
46 uses_nonsfi_mode(uses_nonsfi_mode),
47 process_type(process_type) {
50 NaClLaunchParams::~NaClLaunchParams() {
53 NaClLaunchResult::NaClLaunchResult()
54 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()),
55 ppapi_ipc_channel_handle(),
56 trusted_ipc_channel_handle(),
57 plugin_pid(base::kNullProcessId),
58 plugin_child_id(0),
59 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) {
62 NaClLaunchResult::NaClLaunchResult(
63 FileDescriptor imc_channel_handle,
64 const IPC::ChannelHandle& ppapi_ipc_channel_handle,
65 const IPC::ChannelHandle& trusted_ipc_channel_handle,
66 const IPC::ChannelHandle& manifest_service_ipc_channel_handle,
67 base::ProcessId plugin_pid,
68 int plugin_child_id,
69 base::SharedMemoryHandle crash_info_shmem_handle)
70 : imc_channel_handle(imc_channel_handle),
71 ppapi_ipc_channel_handle(ppapi_ipc_channel_handle),
72 trusted_ipc_channel_handle(trusted_ipc_channel_handle),
73 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle),
74 plugin_pid(plugin_pid),
75 plugin_child_id(plugin_child_id),
76 crash_info_shmem_handle(crash_info_shmem_handle) {
79 NaClLaunchResult::~NaClLaunchResult() {
82 } // namespace nacl