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

Unified Diff: components/nacl/common/nacl_types.cc

Issue 1085583005: Refactor params of NaClProcessMsg_Start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/common/nacl_types.cc
diff --git a/components/nacl/common/nacl_types.cc b/components/nacl/common/nacl_types.cc
index 4abb8286ea8a0cef1e87ed4884c37b91ab862a98..d9e994fc1a1f689c9abaf7fa177a67c9981e35b2 100644
--- a/components/nacl/common/nacl_types.cc
+++ b/components/nacl/common/nacl_types.cc
@@ -34,6 +34,19 @@ NaClResourceFileInfo::NaClResourceFileInfo(
NaClResourceFileInfo::~NaClResourceFileInfo() {
}
+NaClResourcePrefetchInfo::NaClResourcePrefetchInfo() {
+}
+
+NaClResourcePrefetchInfo::NaClResourcePrefetchInfo(
+ const std::string& manifest_key,
+ const std::string& resource_url)
+ : manifest_key(manifest_key),
+ resource_url(resource_url) {
+}
+
+NaClResourcePrefetchInfo::~NaClResourcePrefetchInfo() {
+}
+
NaClLaunchParams::NaClLaunchParams()
: nexe_file(IPC::InvalidPlatformFileForTransit()),
nexe_token_lo(0),
@@ -48,8 +61,7 @@ NaClLaunchParams::NaClLaunchParams(
const IPC::PlatformFileForTransit& nexe_file,
uint64_t nexe_token_lo,
uint64_t nexe_token_hi,
- const std::vector<
- std::pair<std::string, std::string> >& resource_files_to_prefetch,
+ const std::vector<NaClResourcePrefetchInfo>& resource_prefetch_info_list,
int render_view_id,
uint32 permission_bits,
bool uses_nonsfi_mode,
@@ -58,7 +70,7 @@ NaClLaunchParams::NaClLaunchParams(
nexe_file(nexe_file),
nexe_token_lo(nexe_token_lo),
nexe_token_hi(nexe_token_hi),
- resource_files_to_prefetch(resource_files_to_prefetch),
+ resource_prefetch_info_list(resource_prefetch_info_list),
render_view_id(render_view_id),
permission_bits(permission_bits),
uses_nonsfi_mode(uses_nonsfi_mode),

Powered by Google App Engine
This is Rietveld 408576698