Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: components/nacl/common/nacl_types.cc

Issue 649603004: Non-SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/nacl/common/nacl_types.h ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_metadata,
30 const std::string& file_key)
31 : file(file), file_path_metadata(file_path_metadata), 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> >& resource_files_to_prefetch,
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 resource_files_to_prefetch(resource_files_to_prefetch),
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
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
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_types.h ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698