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

Side by Side Diff: gin/v8_initializer.h

Issue 2075283003: Remove natives_blob.bin's arch dependence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 68
69 #if defined(OS_ANDROID) 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( 70 static base::PlatformFile GetOpenSnapshotFileForChildProcesses(
74 base::MemoryMappedFile::Region* region_out, 71 base::MemoryMappedFile::Region* region_out,
75 bool abi_32_bit); 72 bool abi_32_bit);
76 73
77 static base::FilePath GetNativesFilePath(bool abi_32_bit); 74 static base::FilePath GetNativesFilePath();
78 static base::FilePath GetSnapshotFilePath(bool abi_32_bit); 75 static base::FilePath GetSnapshotFilePath(bool abi_32_bit);
79 #endif 76 #endif
80 77
81 #endif // V8_USE_EXTERNAL_STARTUP_DATA 78 #endif // V8_USE_EXTERNAL_STARTUP_DATA
82 }; 79 };
83 80
84 } // namespace gin 81 } // namespace gin
85 82
86 #endif // GIN_V8_INITIALIZER_H_ 83 #endif // GIN_V8_INITIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698