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

Side by Side Diff: gin/v8_initializer.h

Issue 1681003003: Revert of Pass both 32 and 64 bit snapshot and natives fds to child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « content/public/common/content_descriptors.h ('k') | gin/v8_initializer.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 #ifndef GIN_V8_INITIALIZER_H_ 5 #ifndef GIN_V8_INITIALIZER_H_
6 #define GIN_V8_INITIALIZER_H_ 6 #define GIN_V8_INITIALIZER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Use with LoadV8NativesFromFD(). 58 // Use with LoadV8NativesFromFD().
59 // Asserts if the file does not exist. 59 // Asserts if the file does not exist.
60 static base::PlatformFile GetOpenNativesFileForChildProcesses( 60 static base::PlatformFile GetOpenNativesFileForChildProcesses(
61 base::MemoryMappedFile::Region* region_out); 61 base::MemoryMappedFile::Region* region_out);
62 62
63 // Opens (unless already cached) and returns the V8 snapshot file. 63 // Opens (unless already cached) and returns the V8 snapshot file.
64 // Use with LoadV8SnapshotFromFD(). 64 // Use with LoadV8SnapshotFromFD().
65 // Will return -1 if the file does not exist. 65 // Will return -1 if the file does not exist.
66 static base::PlatformFile GetOpenSnapshotFileForChildProcesses( 66 static base::PlatformFile GetOpenSnapshotFileForChildProcesses(
67 base::MemoryMappedFile::Region* region_out); 67 base::MemoryMappedFile::Region* region_out);
68
69 #if defined(OS_ANDROID)
70 static base::PlatformFile GetOpenNativesFileForChildProcesses(
71 base::MemoryMappedFile::Region* region_out,
72 bool abi_32_bit);
73 static base::PlatformFile GetOpenSnapshotFileForChildProcesses(
74 base::MemoryMappedFile::Region* region_out,
75 bool abi_32_bit);
76
77 static base::FilePath GetNativesFilePath(bool abi_32_bit);
78 static base::FilePath GetSnapshotFilePath(bool abi_32_bit);
79 #endif
80
81 #endif // V8_USE_EXTERNAL_STARTUP_DATA 68 #endif // V8_USE_EXTERNAL_STARTUP_DATA
82 }; 69 };
83 70
84 } // namespace gin 71 } // namespace gin
85 72
86 #endif // GIN_V8_INITIALIZER_H_ 73 #endif // GIN_V8_INITIALIZER_H_
OLDNEW
« no previous file with comments | « content/public/common/content_descriptors.h ('k') | gin/v8_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698