2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2012-04-03 03:34:16 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=f2b284f21cdb59e621ecddbe2f07392d24d48ddd$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
#include "include/capi/cef_app_capi.h"
|
2016-12-12 11:05:29 +01:00
|
|
|
#include "include/capi/cef_crash_util_capi.h"
|
2016-11-15 18:56:02 +01:00
|
|
|
#include "include/capi/cef_file_util_capi.h"
|
2021-08-28 03:55:15 +02:00
|
|
|
#include "include/capi/cef_i18n_util_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_origin_whitelist_capi.h"
|
2015-04-09 16:59:34 +02:00
|
|
|
#include "include/capi/cef_parser_capi.h"
|
2012-06-26 18:47:05 +02:00
|
|
|
#include "include/capi/cef_path_util_capi.h"
|
|
|
|
#include "include/capi/cef_process_util_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_scheme_capi.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "include/capi/cef_ssl_info_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_task_capi.h"
|
2012-10-18 00:45:49 +02:00
|
|
|
#include "include/capi/cef_trace_capi.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/capi/cef_v8_capi.h"
|
2017-05-31 17:33:30 +02:00
|
|
|
#include "include/capi/test/cef_test_helpers_capi.h"
|
2019-03-14 16:18:06 +01:00
|
|
|
#include "include/cef_api_hash.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_app.h"
|
|
|
|
#include "include/cef_crash_util.h"
|
|
|
|
#include "include/cef_file_util.h"
|
2021-08-28 03:55:15 +02:00
|
|
|
#include "include/cef_i18n_util.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_origin_whitelist.h"
|
|
|
|
#include "include/cef_parser.h"
|
|
|
|
#include "include/cef_path_util.h"
|
|
|
|
#include "include/cef_process_util.h"
|
|
|
|
#include "include/cef_scheme.h"
|
|
|
|
#include "include/cef_ssl_info.h"
|
|
|
|
#include "include/cef_task.h"
|
|
|
|
#include "include/cef_trace.h"
|
|
|
|
#include "include/cef_v8.h"
|
2017-05-31 17:33:30 +02:00
|
|
|
#include "include/test/cef_test_helpers.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/app_cpptoc.h"
|
2014-02-05 21:35:45 +01:00
|
|
|
#include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
|
2013-12-17 23:04:35 +01:00
|
|
|
#include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/task_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/binary_value_ctocpp.h"
|
2012-06-26 18:47:05 +02:00
|
|
|
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
2015-04-15 15:45:30 +02:00
|
|
|
#include "libcef_dll/ctocpp/value_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2014-07-09 20:03:43 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Define used to facilitate parsing.
|
|
|
|
#define CEF_GLOBAL
|
|
|
|
|
|
|
|
// GLOBAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_GLOBAL int CefExecuteProcess(const CefMainArgs& args,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefApp> application,
|
|
|
|
void* windows_sandbox_info) {
|
2013-03-25 23:15:33 +01:00
|
|
|
const char* api_hash = cef_api_hash(0);
|
|
|
|
if (strcmp(api_hash, CEF_API_HASH_PLATFORM)) {
|
|
|
|
// The libcef API hash does not match the current header API hash.
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false);
|
2012-04-03 03:34:16 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2013-11-15 19:47:02 +01:00
|
|
|
// Unverified params: application, windows_sandbox_info
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_execute_process(&args, CefAppCppToC::Wrap(application),
|
|
|
|
windows_sandbox_info);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_GLOBAL bool CefInitialize(const CefMainArgs& args,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefSettings& settings,
|
|
|
|
CefRefPtr<CefApp> application,
|
|
|
|
void* windows_sandbox_info) {
|
2013-03-25 23:15:33 +01:00
|
|
|
const char* api_hash = cef_api_hash(0);
|
|
|
|
if (strcmp(api_hash, CEF_API_HASH_PLATFORM)) {
|
|
|
|
// The libcef API hash does not match the current header API hash.
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false);
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2013-11-15 19:47:02 +01:00
|
|
|
// Unverified params: application, windows_sandbox_info
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_initialize(
|
2017-05-17 11:29:28 +02:00
|
|
|
&args, &settings, CefAppCppToC::Wrap(application), windows_sandbox_info);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefShutdown() {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
#if DCHECK_IS_ON()
|
|
|
|
shutdown_checker::SetIsShutdown();
|
|
|
|
#endif
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
// Execute
|
|
|
|
cef_shutdown();
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefDoMessageLoopWork() {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_do_message_loop_work();
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefRunMessageLoop() {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_run_message_loop();
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL void CefQuitMessageLoop() {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_quit_message_loop();
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefCrashReportingEnabled() {
|
2016-12-12 11:05:29 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_crash_reporting_enabled();
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-12-12 11:05:29 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL
|
2021-08-09 23:18:43 +02:00
|
|
|
void CefSetCrashKeyValue(const CefString& key, const CefString& value) {
|
2016-12-12 11:05:29 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: key; type: string_byref_const
|
|
|
|
DCHECK(!key.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (key.empty()) {
|
2016-12-12 11:05:29 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-08 18:35:21 +01:00
|
|
|
// Unverified params: value
|
2016-12-12 11:05:29 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_set_crash_key_value(key.GetStruct(), value.GetStruct());
|
2016-12-12 11:05:29 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefCreateDirectory(const CefString& full_path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: full_path; type: string_byref_const
|
|
|
|
DCHECK(!full_path.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (full_path.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_create_directory(full_path.GetStruct());
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefGetTempDirectory(CefString& temp_dir) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_get_temp_directory(temp_dir.GetWritableStruct());
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefCreateNewTempDirectory(const CefString& prefix,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString& new_temp_path) {
|
2016-11-15 18:56:02 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: prefix
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_create_new_temp_directory(
|
2017-05-17 11:29:28 +02:00
|
|
|
prefix.GetStruct(), new_temp_path.GetWritableStruct());
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefCreateTempDirectoryInDirectory(const CefString& base_dir,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefString& prefix,
|
|
|
|
CefString& new_dir) {
|
2016-11-15 18:56:02 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: base_dir; type: string_byref_const
|
|
|
|
DCHECK(!base_dir.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (base_dir.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Unverified params: prefix
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_create_temp_directory_in_directory(
|
2017-05-17 11:29:28 +02:00
|
|
|
base_dir.GetStruct(), prefix.GetStruct(), new_dir.GetWritableStruct());
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefDirectoryExists(const CefString& path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(!path.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (path.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_directory_exists(path.GetStruct());
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefDeleteFile(const CefString& path, bool recursive) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(!path.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (path.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_delete_file(path.GetStruct(), recursive);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-11-15 18:56:02 +01:00
|
|
|
CEF_GLOBAL bool CefZipDirectory(const CefString& src_dir,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefString& dest_file,
|
|
|
|
bool include_hidden_files) {
|
2016-11-15 18:56:02 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: src_dir; type: string_byref_const
|
|
|
|
DCHECK(!src_dir.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (src_dir.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
// Verify param: dest_file; type: string_byref_const
|
|
|
|
DCHECK(!dest_file.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (dest_file.empty()) {
|
2016-11-15 18:56:02 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_zip_directory(src_dir.GetStruct(), dest_file.GetStruct(),
|
|
|
|
include_hidden_files);
|
2016-11-15 18:56:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-11-15 18:56:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-07-11 21:02:44 +02:00
|
|
|
CEF_GLOBAL void CefLoadCRLSetsFile(const CefString& path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(!path.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (path.empty()) {
|
2017-07-11 21:02:44 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-07-11 21:02:44 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_load_crlsets_file(path.GetStruct());
|
|
|
|
}
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefIsRTL() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_is_rtl();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL
|
2021-08-09 23:18:43 +02:00
|
|
|
bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin,
|
|
|
|
const CefString& target_protocol,
|
|
|
|
const CefString& target_domain,
|
|
|
|
bool allow_target_subdomains) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(!source_origin.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (source_origin.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(!target_protocol.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (target_protocol.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-04 20:45:44 +02:00
|
|
|
// Unverified params: target_domain
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_add_cross_origin_whitelist_entry(
|
2017-05-17 11:29:28 +02:00
|
|
|
source_origin.GetStruct(), target_protocol.GetStruct(),
|
|
|
|
target_domain.GetStruct(), allow_target_subdomains);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL
|
2021-08-09 23:18:43 +02:00
|
|
|
bool CefRemoveCrossOriginWhitelistEntry(const CefString& source_origin,
|
|
|
|
const CefString& target_protocol,
|
|
|
|
const CefString& target_domain,
|
|
|
|
bool allow_target_subdomains) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(!source_origin.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (source_origin.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(!target_protocol.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (target_protocol.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-06-04 20:45:44 +02:00
|
|
|
// Unverified params: target_domain
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_remove_cross_origin_whitelist_entry(
|
2017-05-17 11:29:28 +02:00
|
|
|
source_origin.GetStruct(), target_protocol.GetStruct(),
|
|
|
|
target_domain.GetStruct(), allow_target_subdomains);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefClearCrossOriginWhitelist() {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_clear_cross_origin_whitelist();
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2022-10-03 19:46:50 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL bool CefResolveURL(const CefString& base_url,
|
|
|
|
const CefString& relative_url,
|
|
|
|
CefString& resolved_url) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: base_url; type: string_byref_const
|
|
|
|
DCHECK(!base_url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (base_url.empty()) {
|
2022-10-03 19:46:50 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-03 19:46:50 +02:00
|
|
|
// Verify param: relative_url; type: string_byref_const
|
|
|
|
DCHECK(!relative_url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (relative_url.empty()) {
|
2022-10-03 19:46:50 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-10-03 19:46:50 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_resolve_url(base_url.GetStruct(), relative_url.GetStruct(),
|
|
|
|
resolved_url.GetWritableStruct());
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval ? true : false;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_GLOBAL bool CefParseURL(const CefString& url, CefURLParts& parts) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (url.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_parse_url(url.GetStruct(), &parts);
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_GLOBAL bool CefCreateURL(const CefURLParts& parts, CefString& url) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_create_url(&parts, url.GetWritableStruct());
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_GLOBAL CefString
|
2021-08-09 23:18:43 +02:00
|
|
|
CefFormatUrlForSecurityDisplay(const CefString& origin_url) {
|
2015-10-09 17:23:12 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: origin_url; type: string_byref_const
|
|
|
|
DCHECK(!origin_url.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (origin_url.empty()) {
|
2015-10-09 17:23:12 +02:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-10-09 17:23:12 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval =
|
|
|
|
cef_format_url_for_security_display(origin_url.GetStruct());
|
2015-10-09 17:23:12 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2014-01-28 18:26:59 +01:00
|
|
|
CEF_GLOBAL CefString CefGetMimeType(const CefString& extension) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: extension; type: string_byref_const
|
|
|
|
DCHECK(!extension.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (extension.empty()) {
|
2014-01-28 18:26:59 +01:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-28 18:26:59 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval = cef_get_mime_type(extension.GetStruct());
|
2014-01-28 18:26:59 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL
|
2021-08-09 23:18:43 +02:00
|
|
|
void CefGetExtensionsForMimeType(const CefString& mime_type,
|
|
|
|
std::vector<CefString>& extensions) {
|
2014-07-09 20:03:43 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: mime_type; type: string_byref_const
|
|
|
|
DCHECK(!mime_type.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (mime_type.empty()) {
|
2014-07-09 20:03:43 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-09 20:03:43 +02:00
|
|
|
|
|
|
|
// Translate param: extensions; type: string_vec_byref
|
|
|
|
cef_string_list_t extensionsList = cef_string_list_alloc();
|
|
|
|
DCHECK(extensionsList);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (extensionsList) {
|
2014-07-09 20:03:43 +02:00
|
|
|
transfer_string_list_contents(extensions, extensionsList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-09 20:03:43 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_get_extensions_for_mime_type(mime_type.GetStruct(), extensionsList);
|
2014-07-09 20:03:43 +02:00
|
|
|
|
|
|
|
// Restore param:extensions; type: string_vec_byref
|
|
|
|
if (extensionsList) {
|
|
|
|
extensions.clear();
|
|
|
|
transfer_string_list_contents(extensionsList, extensions);
|
|
|
|
cef_string_list_free(extensionsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-02-11 19:15:04 +01:00
|
|
|
CEF_GLOBAL CefString CefBase64Encode(const void* data, size_t data_size) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: data; type: simple_byaddr
|
|
|
|
DCHECK(data);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!data) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval = cef_base64encode(data, data_size);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-02-11 19:15:04 +01:00
|
|
|
CEF_GLOBAL CefRefPtr<CefBinaryValue> CefBase64Decode(const CefString& data) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: data; type: string_byref_const
|
|
|
|
DCHECK(!data.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (data.empty()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_binary_value_t* _retval = cef_base64decode(data.GetStruct());
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBinaryValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-02-11 19:15:04 +01:00
|
|
|
CEF_GLOBAL CefString CefURIEncode(const CefString& text, bool use_plus) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: text; type: string_byref_const
|
|
|
|
DCHECK(!text.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (text.empty()) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval = cef_uriencode(text.GetStruct(), use_plus);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_GLOBAL CefString CefURIDecode(const CefString& text,
|
|
|
|
bool convert_to_utf8,
|
|
|
|
cef_uri_unescape_rule_t unescape_rule) {
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: text; type: string_byref_const
|
|
|
|
DCHECK(!text.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (text.empty()) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval =
|
|
|
|
cef_uridecode(text.GetStruct(), convert_to_utf8, unescape_rule);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-17 16:19:30 +02:00
|
|
|
CEF_GLOBAL CefRefPtr<CefValue> CefParseJSON(const CefString& json_string,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_json_parser_options_t options) {
|
2015-04-17 16:19:30 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json_string; type: string_byref_const
|
|
|
|
DCHECK(!json_string.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (json_string.empty()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_value_t* _retval = cef_parse_json(json_string.GetStruct(), options);
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2020-06-13 02:54:08 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL CefRefPtr<CefValue> CefParseJSON(const void* json,
|
|
|
|
size_t json_size,
|
|
|
|
cef_json_parser_options_t options) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json; type: simple_byaddr
|
|
|
|
DCHECK(json);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!json) {
|
2020-06-13 02:54:08 +02:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2020-06-13 02:54:08 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_value_t* _retval = cef_parse_json_buffer(json, json_size, options);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-17 16:19:30 +02:00
|
|
|
CEF_GLOBAL CefRefPtr<CefValue> CefParseJSONAndReturnError(
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefString& json_string,
|
|
|
|
cef_json_parser_options_t options,
|
|
|
|
CefString& error_msg_out) {
|
2015-04-17 16:19:30 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: json_string; type: string_byref_const
|
|
|
|
DCHECK(!json_string.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (json_string.empty()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_value_t* _retval = cef_parse_jsonand_return_error(
|
2020-10-08 21:54:42 +02:00
|
|
|
json_string.GetStruct(), options, error_msg_out.GetWritableStruct());
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefValueCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2021-08-09 23:18:43 +02:00
|
|
|
CEF_GLOBAL CefString CefWriteJSON(CefRefPtr<CefValue> node,
|
|
|
|
cef_json_writer_options_t options) {
|
2015-04-17 16:19:30 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: node; type: refptr_same
|
|
|
|
DCHECK(node.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!node.get()) {
|
2015-04-17 16:19:30 +02:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval =
|
|
|
|
cef_write_json(CefValueCToCpp::Unwrap(node), options);
|
2015-04-17 16:19:30 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefGetPath(PathKey key, CefString& path) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_get_path(key, path.GetWritableStruct());
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefLaunchProcess(CefRefPtr<CefCommandLine> command_line) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: command_line; type: refptr_same
|
|
|
|
DCHECK(command_line.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!command_line.get()) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_launch_process(CefCommandLineCToCpp::Unwrap(command_line));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_GLOBAL bool CefRegisterSchemeHandlerFactory(
|
|
|
|
const CefString& scheme_name,
|
2015-04-09 16:59:34 +02:00
|
|
|
const CefString& domain_name,
|
|
|
|
CefRefPtr<CefSchemeHandlerFactory> factory) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: scheme_name; type: string_byref_const
|
|
|
|
DCHECK(!scheme_name.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (scheme_name.empty()) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
// Unverified params: domain_name, factory
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_register_scheme_handler_factory(
|
2017-05-17 11:29:28 +02:00
|
|
|
scheme_name.GetStruct(), domain_name.GetStruct(),
|
2015-04-09 16:59:34 +02:00
|
|
|
CefSchemeHandlerFactoryCppToC::Wrap(factory));
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefClearSchemeHandlerFactories() {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_clear_scheme_handler_factories();
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
CEF_GLOBAL bool CefIsCertStatusError(cef_cert_status_t status) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_is_cert_status_error(status);
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-09-02 12:01:33 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL bool CefCurrentlyOn(CefThreadId threadId) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_currently_on(threadId);
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefPostTask(CefThreadId threadId, CefRefPtr<CefTask> task) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!task.get()) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_post_task(threadId, CefTaskCppToC::Wrap(task));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefPostDelayedTask(CefThreadId threadId,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTask> task,
|
2023-06-01 16:07:20 +02:00
|
|
|
int64_t delay_ms) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!task.get()) {
|
2015-04-09 16:59:34 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
cef_post_delayed_task(threadId, CefTaskCppToC::Wrap(task), delay_ms);
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefBeginTracing(const CefString& categories,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefCompletionCallback> callback) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: categories, callback
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_begin_tracing(categories.GetStruct(),
|
|
|
|
CefCompletionCallbackCppToC::Wrap(callback));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-09 16:59:34 +02:00
|
|
|
CEF_GLOBAL bool CefEndTracing(const CefString& tracing_file,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefEndTracingCallback> callback) {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: tracing_file, callback
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_end_tracing(tracing_file.GetStruct(),
|
|
|
|
CefEndTracingCallbackCppToC::Wrap(callback));
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-09 16:59:34 +02:00
|
|
|
}
|
|
|
|
|
2023-06-01 16:07:20 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CEF_GLOBAL int64_t CefNowFromSystemTraceTime() {
|
2015-04-09 16:59:34 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2023-06-01 16:07:20 +02:00
|
|
|
int64_t _retval = cef_now_from_system_trace_time();
|
2015-04-09 16:59:34 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-04-03 03:34:16 +02:00
|
|
|
CEF_GLOBAL bool CefRegisterExtension(const CefString& extension_name,
|
2017-05-17 11:29:28 +02:00
|
|
|
const CefString& javascript_code,
|
|
|
|
CefRefPtr<CefV8Handler> handler) {
|
2012-04-03 03:34:16 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: extension_name; type: string_byref_const
|
|
|
|
DCHECK(!extension_name.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (extension_name.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Verify param: javascript_code; type: string_byref_const
|
|
|
|
DCHECK(!javascript_code.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (javascript_code.empty()) {
|
2012-04-03 03:34:16 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2012-04-03 03:34:16 +02:00
|
|
|
// Unverified params: handler
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = cef_register_extension(extension_name.GetStruct(),
|
|
|
|
javascript_code.GetStruct(),
|
|
|
|
CefV8HandlerCppToC::Wrap(handler));
|
2012-04-03 03:34:16 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-03 03:34:16 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-31 17:33:30 +02:00
|
|
|
CEF_GLOBAL void CefExecuteJavaScriptWithUserGestureForTests(
|
|
|
|
CefRefPtr<CefFrame> frame,
|
|
|
|
const CefString& javascript) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: frame; type: refptr_same
|
|
|
|
DCHECK(frame.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!frame.get()) {
|
2017-05-31 17:33:30 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-31 17:33:30 +02:00
|
|
|
// Unverified params: javascript
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_execute_java_script_with_user_gesture_for_tests(
|
|
|
|
CefFrameCToCpp::Unwrap(frame), javascript.GetStruct());
|
|
|
|
}
|
2022-08-03 02:51:02 +02:00
|
|
|
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
|
|
CEF_GLOBAL void CefSetDataDirectoryForTests(const CefString& dir) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: dir; type: string_byref_const
|
|
|
|
DCHECK(!dir.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (dir.empty()) {
|
2022-08-03 02:51:02 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-08-03 02:51:02 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_set_data_directory_for_tests(dir.GetStruct());
|
|
|
|
}
|