Pass both 32 and 64 bit snapshot and natives fds to child processes.
Child processes are in the best position to determine which files
to use, therefore it is simplest just to provide both 32 and 64
bit versions from the parent.
BUG=581409,455699
Committed: https://crrev.com/c560d75783aca05249092dd11503b53f7b631be1
Cr-Commit-Position: refs/heads/master@{#374371}
Review URL: https://codereview.chromium.org/1665513002
Cr-Commit-Position: refs/heads/master@{#374643}
diff --git a/gin/v8_initializer.h b/gin/v8_initializer.h
index dcb5329..4c03480 100644
--- a/gin/v8_initializer.h
+++ b/gin/v8_initializer.h
@@ -65,6 +65,19 @@
// Will return -1 if the file does not exist.
static base::PlatformFile GetOpenSnapshotFileForChildProcesses(
base::MemoryMappedFile::Region* region_out);
+
+#if defined(OS_ANDROID)
+ static base::PlatformFile GetOpenNativesFileForChildProcesses(
+ base::MemoryMappedFile::Region* region_out,
+ bool abi_32_bit);
+ static base::PlatformFile GetOpenSnapshotFileForChildProcesses(
+ base::MemoryMappedFile::Region* region_out,
+ bool abi_32_bit);
+
+ static base::FilePath GetNativesFilePath(bool abi_32_bit);
+ static base::FilePath GetSnapshotFilePath(bool abi_32_bit);
+#endif
+
#endif // V8_USE_EXTERNAL_STARTUP_DATA
};