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 #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 Loading... |
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 |
68 #endif // V8_USE_EXTERNAL_STARTUP_DATA | 81 #endif // V8_USE_EXTERNAL_STARTUP_DATA |
69 }; | 82 }; |
70 | 83 |
71 } // namespace gin | 84 } // namespace gin |
72 | 85 |
73 #endif // GIN_V8_INITIALIZER_H_ | 86 #endif // GIN_V8_INITIALIZER_H_ |
OLD | NEW |