| 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 "components/nacl/common/nacl_types.h" | 6 #include "components/nacl/common/nacl_types.h" |
| 6 #include "ipc/ipc_platform_file.h" | 7 #include "ipc/ipc_platform_file.h" |
| 7 | 8 |
| 8 namespace nacl { | 9 namespace nacl { |
| 9 | 10 |
| 10 NaClStartParams::NaClStartParams() | 11 NaClStartParams::NaClStartParams() |
| 11 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 12 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 12 imc_bootstrap_handle(IPC::InvalidPlatformFileForTransit()), | 13 imc_bootstrap_handle(IPC::InvalidPlatformFileForTransit()), |
| 13 irt_handle(IPC::InvalidPlatformFileForTransit()), | 14 irt_handle(IPC::InvalidPlatformFileForTransit()), |
| 14 #if defined(OS_MACOSX) | 15 #if defined(OS_MACOSX) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 render_view_id(0), | 61 render_view_id(0), |
| 61 permission_bits(0), | 62 permission_bits(0), |
| 62 process_type(kUnknownNaClProcessType) { | 63 process_type(kUnknownNaClProcessType) { |
| 63 } | 64 } |
| 64 | 65 |
| 65 NaClLaunchParams::NaClLaunchParams( | 66 NaClLaunchParams::NaClLaunchParams( |
| 66 const std::string& manifest_url, | 67 const std::string& manifest_url, |
| 67 const IPC::PlatformFileForTransit& nexe_file, | 68 const IPC::PlatformFileForTransit& nexe_file, |
| 68 uint64_t nexe_token_lo, | 69 uint64_t nexe_token_lo, |
| 69 uint64_t nexe_token_hi, | 70 uint64_t nexe_token_hi, |
| 70 const std::vector< | 71 const std::vector<NaClResourcePrefetchRequest>& |
| 71 NaClResourcePrefetchRequest>& resource_prefetch_request_list, | 72 resource_prefetch_request_list, |
| 72 int render_view_id, | 73 int render_view_id, |
| 73 uint32 permission_bits, | 74 uint32_t permission_bits, |
| 74 bool uses_nonsfi_mode, | 75 bool uses_nonsfi_mode, |
| 75 NaClAppProcessType process_type) | 76 NaClAppProcessType process_type) |
| 76 : manifest_url(manifest_url), | 77 : manifest_url(manifest_url), |
| 77 nexe_file(nexe_file), | 78 nexe_file(nexe_file), |
| 78 nexe_token_lo(nexe_token_lo), | 79 nexe_token_lo(nexe_token_lo), |
| 79 nexe_token_hi(nexe_token_hi), | 80 nexe_token_hi(nexe_token_hi), |
| 80 resource_prefetch_request_list(resource_prefetch_request_list), | 81 resource_prefetch_request_list(resource_prefetch_request_list), |
| 81 render_view_id(render_view_id), | 82 render_view_id(render_view_id), |
| 82 permission_bits(permission_bits), | 83 permission_bits(permission_bits), |
| 83 uses_nonsfi_mode(uses_nonsfi_mode), | 84 uses_nonsfi_mode(uses_nonsfi_mode), |
| 84 process_type(process_type) { | 85 process_type(process_type) {} |
| 85 } | |
| 86 | 86 |
| 87 NaClLaunchParams::~NaClLaunchParams() { | 87 NaClLaunchParams::~NaClLaunchParams() { |
| 88 } | 88 } |
| 89 | 89 |
| 90 NaClLaunchResult::NaClLaunchResult() | 90 NaClLaunchResult::NaClLaunchResult() |
| 91 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), | 91 : imc_channel_handle(IPC::InvalidPlatformFileForTransit()), |
| 92 ppapi_ipc_channel_handle(), | 92 ppapi_ipc_channel_handle(), |
| 93 trusted_ipc_channel_handle(), | 93 trusted_ipc_channel_handle(), |
| 94 plugin_pid(base::kNullProcessId), | 94 plugin_pid(base::kNullProcessId), |
| 95 plugin_child_id(0), | 95 plugin_child_id(0), |
| (...skipping 14 matching lines...) Expand all Loading... |
| 110 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 110 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
| 111 plugin_pid(plugin_pid), | 111 plugin_pid(plugin_pid), |
| 112 plugin_child_id(plugin_child_id), | 112 plugin_child_id(plugin_child_id), |
| 113 crash_info_shmem_handle(crash_info_shmem_handle) { | 113 crash_info_shmem_handle(crash_info_shmem_handle) { |
| 114 } | 114 } |
| 115 | 115 |
| 116 NaClLaunchResult::~NaClLaunchResult() { | 116 NaClLaunchResult::~NaClLaunchResult() { |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace nacl | 119 } // namespace nacl |
| OLD | NEW |