| 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() |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 NaClResourceFileInfo::NaClResourceFileInfo( | 27 NaClResourceFileInfo::NaClResourceFileInfo( |
| 28 IPC::PlatformFileForTransit file, | 28 IPC::PlatformFileForTransit file, |
| 29 const base::FilePath& file_path_metadata, | 29 const base::FilePath& file_path_metadata, |
| 30 const std::string& file_key) | 30 const std::string& file_key) |
| 31 : file(file), file_path_metadata(file_path_metadata), file_key(file_key) { | 31 : file(file), file_path_metadata(file_path_metadata), file_key(file_key) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 NaClResourceFileInfo::~NaClResourceFileInfo() { | 34 NaClResourceFileInfo::~NaClResourceFileInfo() { |
| 35 } | 35 } |
| 36 | 36 |
| 37 NaClResourcePrefetchInfo::NaClResourcePrefetchInfo() { |
| 38 } |
| 39 |
| 40 NaClResourcePrefetchInfo::NaClResourcePrefetchInfo( |
| 41 const std::string& manifest_key, |
| 42 const std::string& resource_url) |
| 43 : manifest_key(manifest_key), |
| 44 resource_url(resource_url) { |
| 45 } |
| 46 |
| 47 NaClResourcePrefetchInfo::~NaClResourcePrefetchInfo() { |
| 48 } |
| 49 |
| 37 NaClLaunchParams::NaClLaunchParams() | 50 NaClLaunchParams::NaClLaunchParams() |
| 38 : nexe_file(IPC::InvalidPlatformFileForTransit()), | 51 : nexe_file(IPC::InvalidPlatformFileForTransit()), |
| 39 nexe_token_lo(0), | 52 nexe_token_lo(0), |
| 40 nexe_token_hi(0), | 53 nexe_token_hi(0), |
| 41 render_view_id(0), | 54 render_view_id(0), |
| 42 permission_bits(0), | 55 permission_bits(0), |
| 43 process_type(kUnknownNaClProcessType) { | 56 process_type(kUnknownNaClProcessType) { |
| 44 } | 57 } |
| 45 | 58 |
| 46 NaClLaunchParams::NaClLaunchParams( | 59 NaClLaunchParams::NaClLaunchParams( |
| 47 const std::string& manifest_url, | 60 const std::string& manifest_url, |
| 48 const IPC::PlatformFileForTransit& nexe_file, | 61 const IPC::PlatformFileForTransit& nexe_file, |
| 49 uint64_t nexe_token_lo, | 62 uint64_t nexe_token_lo, |
| 50 uint64_t nexe_token_hi, | 63 uint64_t nexe_token_hi, |
| 51 const std::vector< | 64 const std::vector<NaClResourcePrefetchInfo>& resource_prefetch_info_list, |
| 52 std::pair<std::string, std::string> >& resource_files_to_prefetch, | |
| 53 int render_view_id, | 65 int render_view_id, |
| 54 uint32 permission_bits, | 66 uint32 permission_bits, |
| 55 bool uses_nonsfi_mode, | 67 bool uses_nonsfi_mode, |
| 56 NaClAppProcessType process_type) | 68 NaClAppProcessType process_type) |
| 57 : manifest_url(manifest_url), | 69 : manifest_url(manifest_url), |
| 58 nexe_file(nexe_file), | 70 nexe_file(nexe_file), |
| 59 nexe_token_lo(nexe_token_lo), | 71 nexe_token_lo(nexe_token_lo), |
| 60 nexe_token_hi(nexe_token_hi), | 72 nexe_token_hi(nexe_token_hi), |
| 61 resource_files_to_prefetch(resource_files_to_prefetch), | 73 resource_prefetch_info_list(resource_prefetch_info_list), |
| 62 render_view_id(render_view_id), | 74 render_view_id(render_view_id), |
| 63 permission_bits(permission_bits), | 75 permission_bits(permission_bits), |
| 64 uses_nonsfi_mode(uses_nonsfi_mode), | 76 uses_nonsfi_mode(uses_nonsfi_mode), |
| 65 process_type(process_type) { | 77 process_type(process_type) { |
| 66 } | 78 } |
| 67 | 79 |
| 68 NaClLaunchParams::~NaClLaunchParams() { | 80 NaClLaunchParams::~NaClLaunchParams() { |
| 69 } | 81 } |
| 70 | 82 |
| 71 NaClLaunchResult::NaClLaunchResult() | 83 NaClLaunchResult::NaClLaunchResult() |
| (...skipping 19 matching lines...) Expand all Loading... |
| 91 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), | 103 manifest_service_ipc_channel_handle(manifest_service_ipc_channel_handle), |
| 92 plugin_pid(plugin_pid), | 104 plugin_pid(plugin_pid), |
| 93 plugin_child_id(plugin_child_id), | 105 plugin_child_id(plugin_child_id), |
| 94 crash_info_shmem_handle(crash_info_shmem_handle) { | 106 crash_info_shmem_handle(crash_info_shmem_handle) { |
| 95 } | 107 } |
| 96 | 108 |
| 97 NaClLaunchResult::~NaClLaunchResult() { | 109 NaClLaunchResult::~NaClLaunchResult() { |
| 98 } | 110 } |
| 99 | 111 |
| 100 } // namespace nacl | 112 } // namespace nacl |
| OLD | NEW |