| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "components/nacl/common/nacl_types.h" | 6 #include "components/nacl/common/nacl_types.h" |
| 7 #include "ipc/ipc_platform_file.h" | 7 #include "ipc/ipc_platform_file.h" |
| 8 | 8 |
| 9 namespace nacl { | 9 namespace nacl { |
| 10 | 10 |
| 11 NaClStartParams::NaClStartParams() | 11 NaClStartParams::NaClStartParams() |
| 12 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 12 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 13 irt_handle(IPC::InvalidPlatformFileForTransit()), | 13 irt_handle(IPC::InvalidPlatformFileForTransit()), |
| 14 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
| 15 mac_shm_fd(IPC::InvalidPlatformFileForTransit()), | 15 mac_shm_fd(IPC::InvalidPlatformFileForTransit()), |
| 16 #endif | 16 #endif |
| 17 #if defined(OS_POSIX) | 17 #if defined(OS_POSIX) |
| 18 debug_stub_server_bound_socket(IPC::InvalidPlatformFileForTransit()), | 18 debug_stub_server_bound_socket(IPC::InvalidPlatformFileForTransit()), |
| 19 #endif | 19 #endif |
| 20 validation_cache_enabled(false), | 20 validation_cache_enabled(false), |
| 21 enable_debug_stub(false), | 21 enable_debug_stub(false), |
| 22 process_type(kUnknownNaClProcessType), | 22 process_type(kUnknownNaClProcessType), |
| 23 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { | 23 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { |
| 24 } | 24 } |
| 25 | 25 |
| 26 NaClStartParams::NaClStartParams(const NaClStartParams& other) = default; |
| 27 |
| 26 NaClStartParams::~NaClStartParams() { | 28 NaClStartParams::~NaClStartParams() { |
| 27 } | 29 } |
| 28 | 30 |
| 29 NaClResourcePrefetchResult::NaClResourcePrefetchResult() | 31 NaClResourcePrefetchResult::NaClResourcePrefetchResult() |
| 30 : file(IPC::InvalidPlatformFileForTransit()) { | 32 : file(IPC::InvalidPlatformFileForTransit()) { |
| 31 } | 33 } |
| 32 | 34 |
| 33 NaClResourcePrefetchResult::NaClResourcePrefetchResult( | 35 NaClResourcePrefetchResult::NaClResourcePrefetchResult( |
| 34 const IPC::PlatformFileForTransit& file, | 36 const IPC::PlatformFileForTransit& file, |
| 35 const base::FilePath& file_path_metadata, | 37 const base::FilePath& file_path_metadata, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 : manifest_url(manifest_url), | 78 : manifest_url(manifest_url), |
| 77 nexe_file(nexe_file), | 79 nexe_file(nexe_file), |
| 78 nexe_token_lo(nexe_token_lo), | 80 nexe_token_lo(nexe_token_lo), |
| 79 nexe_token_hi(nexe_token_hi), | 81 nexe_token_hi(nexe_token_hi), |
| 80 resource_prefetch_request_list(resource_prefetch_request_list), | 82 resource_prefetch_request_list(resource_prefetch_request_list), |
| 81 render_view_id(render_view_id), | 83 render_view_id(render_view_id), |
| 82 permission_bits(permission_bits), | 84 permission_bits(permission_bits), |
| 83 uses_nonsfi_mode(uses_nonsfi_mode), | 85 uses_nonsfi_mode(uses_nonsfi_mode), |
| 84 process_type(process_type) {} | 86 process_type(process_type) {} |
| 85 | 87 |
| 88 NaClLaunchParams::NaClLaunchParams(const NaClLaunchParams& other) = default; |
| 89 |
| 86 NaClLaunchParams::~NaClLaunchParams() { | 90 NaClLaunchParams::~NaClLaunchParams() { |
| 87 } | 91 } |
| 88 | 92 |
| 89 NaClLaunchResult::NaClLaunchResult() | 93 NaClLaunchResult::NaClLaunchResult() |
| 90 : ppapi_ipc_channel_handle(), | 94 : ppapi_ipc_channel_handle(), |
| 91 trusted_ipc_channel_handle(), | 95 trusted_ipc_channel_handle(), |
| 92 plugin_pid(base::kNullProcessId), | 96 plugin_pid(base::kNullProcessId), |
| 93 plugin_child_id(0), | 97 plugin_child_id(0), |
| 94 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { | 98 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { |
| 95 } | 99 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 106 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 110 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
| 107 plugin_pid(plugin_pid), | 111 plugin_pid(plugin_pid), |
| 108 plugin_child_id(plugin_child_id), | 112 plugin_child_id(plugin_child_id), |
| 109 crash_info_shmem_handle(crash_info_shmem_handle) { | 113 crash_info_shmem_handle(crash_info_shmem_handle) { |
| 110 } | 114 } |
| 111 | 115 |
| 112 NaClLaunchResult::~NaClLaunchResult() { | 116 NaClLaunchResult::~NaClLaunchResult() { |
| 113 } | 117 } |
| 114 | 118 |
| 115 } // namespace nacl | 119 } // namespace nacl |
| OLD | NEW |