summaryrefslogtreecommitdiff
path: root/chromium/gin/v8_initializer.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-20 10:33:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-11-22 11:45:12 +0000
commitbe59a35641616a4cf23c4a13fa0632624b021c1b (patch)
tree9da183258bdf9cc413f7562079d25ace6955467f /chromium/gin/v8_initializer.h
parentd702e4b6a64574e97fc7df8fe3238cde70242080 (diff)
downloadqtwebengine-chromium-be59a35641616a4cf23c4a13fa0632624b021c1b.tar.gz
BASELINE: Update Chromium to 62.0.3202.101
Change-Id: I2d5eca8117600df6d331f6166ab24d943d9814ac Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/gin/v8_initializer.h')
-rw-r--r--chromium/gin/v8_initializer.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/chromium/gin/v8_initializer.h b/chromium/gin/v8_initializer.h
index 7d16c3eb6d9..f0a7c5e0fb6 100644
--- a/chromium/gin/v8_initializer.h
+++ b/chromium/gin/v8_initializer.h
@@ -54,28 +54,26 @@ class GIN_EXPORT V8Initializer {
// so that it will not return if natives cannot be loaded.
static void LoadV8Natives();
- // Opens (unless already cached) and returns the V8 natives file.
- // Use with LoadV8NativesFromFD().
- // Asserts if the file does not exist.
- static base::PlatformFile GetOpenNativesFileForChildProcesses(
- base::MemoryMappedFile::Region* region_out);
-
- // Opens (unless already cached) and returns the V8 snapshot file.
- // Use with LoadV8SnapshotFromFD().
- // 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 GetOpenSnapshotFileForChildProcesses(
- base::MemoryMappedFile::Region* region_out,
- bool abi_32_bit);
-
static base::FilePath GetNativesFilePath();
static base::FilePath GetSnapshotFilePath(bool abi_32_bit);
#endif
#endif // V8_USE_EXTERNAL_STARTUP_DATA
+
+ // Load V8 context snapshot from user provided platform file descriptors.
+ // Other details are same with LoadV8SnapshotFromFD.
+ static void LoadV8ContextSnapshotFromFD(base::PlatformFile snapshot_fd,
+ int64_t snapshot_offset,
+ int64_t snapshot_size);
+
+ // Load V8 context snapshot from default resources, if they are available.
+ static void LoadV8ContextSnapshot();
+
+ // Get address and size information for currently loaded V8 context snapshot.
+ // If no snapshot is loaded, the return values are nullptr and 0.
+ static void GetV8ContextSnapshotData(const char** snapshot_data_out,
+ int* snapshot_size_out);
};
} // namespace gin