linux: Pass v8 snapshot's fd to child process

This commit is contained in:
Cheng Zhao 2015-04-21 21:42:49 +08:00
parent a5b6ffd93c
commit 7e88fe107d
3 changed files with 49 additions and 1 deletions

View file

@ -46,8 +46,20 @@ class BrowserClient : public content::ContentBrowserClient {
base::FilePath GetDefaultDownloadDirectory() override;
content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override;
#if defined(OS_POSIX) && !defined(OS_MACOSX)
void GetAdditionalMappedFilesForChildProcess(
const base::CommandLine& command_line,
int child_process_id,
content::FileDescriptorInfo* mappings) override;
#endif
BrowserMainParts* browser_main_parts_;
#if defined(OS_POSIX) && !defined(OS_MACOSX)
base::ScopedFD v8_natives_fd_;
base::ScopedFD v8_snapshot_fd_;
#endif // OS_POSIX && !OS_MACOSX
DISALLOW_COPY_AND_ASSIGN(BrowserClient);
};