Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
v8_initializer.h
Go to the documentation of this file.
1// Copyright 2019 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef TESTING_V8_INITIALIZER_H_
6#define TESTING_V8_INITIALIZER_H_
7
8#include <memory>
9#include <string>
10
11#ifndef PDF_ENABLE_V8
12#error "V8 must be enabled"
13#endif
14
15namespace v8 {
16class Platform;
17#ifdef V8_USE_EXTERNAL_STARTUP_DATA
18class StartupData;
19#endif
20} // namespace v8
21
22#ifdef V8_USE_EXTERNAL_STARTUP_DATA
23// |snapshot_blob| is an optional out parameter.
24std::unique_ptr<v8::Platform> InitializeV8ForPDFiumWithStartupData(
25 const std::string& exe_path,
26 const std::string& js_flags,
27 const std::string& bin_dir,
28 v8::StartupData* snapshot_blob);
29#else
31 const std::string& js_flags,
32 const std::string& exe_path);
33#endif
35#endif // TESTING_V8_INITIALIZER_H_
std::unique_ptr< v8::Platform > InitializeV8ForPDFium(const std::string &exe_path, const std::string &js_flags)
void ShutdownV8ForPDFium()