Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 #if defined(OS_ANDROID) | 69 #if defined(OS_ANDROID) |
| 70 static base::PlatformFile GetOpenSnapshotFileForChildProcesses( | 70 static base::PlatformFile GetOpenSnapshotFileForChildProcesses( |
| 71 base::MemoryMappedFile::Region* region_out, | 71 base::MemoryMappedFile::Region* region_out, |
| 72 bool abi_32_bit); | 72 bool abi_32_bit); |
| 73 | 73 |
| 74 static base::FilePath GetNativesFilePath(); | 74 static base::FilePath GetNativesFilePath(); |
| 75 static base::FilePath GetSnapshotFilePath(bool abi_32_bit); | 75 static base::FilePath GetSnapshotFilePath(bool abi_32_bit); |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 #endif // V8_USE_EXTERNAL_STARTUP_DATA | 78 #endif // V8_USE_EXTERNAL_STARTUP_DATA |
| 79 | |
| 80 static void LoadBlinkV8SnapshotFromFD(base::PlatformFile snapshot_fd, | |
|
haraken
2017/07/04 15:04:19
LoadV8ContextSnapshotFromFD
peria
2017/07/07 06:21:51
Done.
| |
| 81 int64_t snapshot_offset, | |
| 82 int64_t snapshot_size); | |
| 83 static void LoadBlinkV8Snapshot(); | |
|
haraken
2017/07/04 15:04:19
LoadV8ContextSnapshot
peria
2017/07/07 06:21:51
Done.
| |
| 84 static void GetBlinkV8SnapshotData(const char** snapshot_data_out, | |
|
haraken
2017/07/04 15:04:19
GetV8ContextSnapshotData
peria
2017/07/07 06:21:51
Done.
| |
| 85 int* snapshot_size_out); | |
| 79 }; | 86 }; |
| 80 | 87 |
| 81 } // namespace gin | 88 } // namespace gin |
| 82 | 89 |
| 83 #endif // GIN_V8_INITIALIZER_H_ | 90 #endif // GIN_V8_INITIALIZER_H_ |
| OLD | NEW |