| 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 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 11 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 12 validation_cache_enabled(false), | 12 validation_cache_enabled(false), |
| 13 enable_debug_stub(false), | 13 enable_debug_stub(false), |
| 14 enable_ipc_proxy(false), | 14 enable_ipc_proxy(false), |
| 15 enable_mojo(false), | 15 enable_mojo(false), |
| 16 process_type(kUnknownNaClProcessType), | 16 process_type(kUnknownNaClProcessType), |
| 17 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { | 17 crash_info_shmem_handle(base::SharedMemory::NULLHandle()) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 NaClStartParams::~NaClStartParams() { | 20 NaClStartParams::~NaClStartParams() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 NaClResourceFileInfo::NaClResourceFileInfo() |
| 24 : file(IPC::InvalidPlatformFileForTransit()) { |
| 25 } |
| 26 |
| 27 NaClResourceFileInfo::NaClResourceFileInfo( |
| 28 IPC::PlatformFileForTransit file, |
| 29 const base::FilePath& file_path, |
| 30 const std::string& file_key) |
| 31 : file(file), file_path(file_path), file_key(file_key) { |
| 32 } |
| 33 |
| 34 NaClResourceFileInfo::~NaClResourceFileInfo() { |
| 35 } |
| 36 |
| 23 NaClLaunchParams::NaClLaunchParams() | 37 NaClLaunchParams::NaClLaunchParams() |
| 24 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 38 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 25 nexe_token_lo(0), | 39 nexe_token_lo(0), |
| 26 nexe_token_hi(0), | 40 nexe_token_hi(0), |
| 27 render_view_id(0), | 41 render_view_id(0), |
| 28 permission_bits(0), | 42 permission_bits(0), |
| 29 process_type(kUnknownNaClProcessType) { | 43 process_type(kUnknownNaClProcessType) { |
| 30 } | 44 } |
| 31 | 45 |
| 32 NaClLaunchParams::NaClLaunchParams( | 46 NaClLaunchParams::NaClLaunchParams( |
| 33 const std::string& manifest_url, | 47 const std::string& manifest_url, |
| 34 const IPC::PlatformFileForTransit& nexe_file, | 48 const IPC::PlatformFileForTransit& nexe_file, |
| 35 uint64_t nexe_token_lo, | 49 uint64_t nexe_token_lo, |
| 36 uint64_t nexe_token_hi, | 50 uint64_t nexe_token_hi, |
| 51 const std::vector< |
| 52 std::pair<std::string, std::string> >& prefetched_resource_files, |
| 37 int render_view_id, | 53 int render_view_id, |
| 38 uint32 permission_bits, | 54 uint32 permission_bits, |
| 39 bool uses_nonsfi_mode, | 55 bool uses_nonsfi_mode, |
| 40 NaClAppProcessType process_type) | 56 NaClAppProcessType process_type) |
| 41 : manifest_url(manifest_url), | 57 : manifest_url(manifest_url), |
| 42 nexe_file(nexe_file), | 58 nexe_file(nexe_file), |
| 43 nexe_token_lo(nexe_token_lo), | 59 nexe_token_lo(nexe_token_lo), |
| 44 nexe_token_hi(nexe_token_hi), | 60 nexe_token_hi(nexe_token_hi), |
| 61 prefetched_resource_files(prefetched_resource_files), |
| 45 render_view_id(render_view_id), | 62 render_view_id(render_view_id), |
| 46 permission_bits(permission_bits), | 63 permission_bits(permission_bits), |
| 47 uses_nonsfi_mode(uses_nonsfi_mode), | 64 uses_nonsfi_mode(uses_nonsfi_mode), |
| 48 process_type(process_type) { | 65 process_type(process_type) { |
| 49 } | 66 } |
| 50 | 67 |
| 51 NaClLaunchParams::~NaClLaunchParams() { | 68 NaClLaunchParams::~NaClLaunchParams() { |
| 52 } | 69 } |
| 53 | 70 |
| 54 NaClLaunchResult::NaClLaunchResult() | 71 NaClLaunchResult::NaClLaunchResult() |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 91 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
| 75 plugin_pid(plugin_pid), | 92 plugin_pid(plugin_pid), |
| 76 plugin_child_id(plugin_child_id), | 93 plugin_child_id(plugin_child_id), |
| 77 crash_info_shmem_handle(crash_info_shmem_handle) { | 94 crash_info_shmem_handle(crash_info_shmem_handle) { |
| 78 } | 95 } |
| 79 | 96 |
| 80 NaClLaunchResult::~NaClLaunchResult() { | 97 NaClLaunchResult::~NaClLaunchResult() { |
| 81 } | 98 } |
| 82 | 99 |
| 83 } // namespace nacl | 100 } // namespace nacl |
| OLD | NEW |