mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update generated files for copyright year and bracket style
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=8abfb084742cdd3ed31754a33281f0eacfc5fceb$
|
||||
// $hash=ebc2c4b31cdbde186263ed5eccbb6cc3e7da1d30$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/request_context_ctocpp.h"
|
||||
@@ -62,8 +62,9 @@ CefRefPtr<CefRequestContext> CefRequestContext::CreateContext(
|
||||
|
||||
// Verify param: other; type: refptr_same
|
||||
DCHECK(other.get());
|
||||
if (!other.get())
|
||||
if (!other.get()) {
|
||||
return nullptr;
|
||||
}
|
||||
// Unverified params: handler
|
||||
|
||||
// Execute
|
||||
@@ -80,15 +81,17 @@ CefRefPtr<CefRequestContext> CefRequestContext::CreateContext(
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::IsSame(CefRefPtr<CefRequestContext> other) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_same))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_same)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: other; type: refptr_same
|
||||
DCHECK(other.get());
|
||||
if (!other.get())
|
||||
if (!other.get()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval =
|
||||
@@ -102,15 +105,17 @@ NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::IsSharingWith(
|
||||
CefRefPtr<CefRequestContext> other) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_sharing_with))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_sharing_with)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: other; type: refptr_same
|
||||
DCHECK(other.get());
|
||||
if (!other.get())
|
||||
if (!other.get()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval =
|
||||
@@ -122,8 +127,9 @@ bool CefRequestContextCToCpp::IsSharingWith(
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefRequestContextCToCpp::IsGlobal() {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_global))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_global)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -137,8 +143,9 @@ NO_SANITIZE("cfi-icall") bool CefRequestContextCToCpp::IsGlobal() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefRequestContextHandler> CefRequestContextCToCpp::GetHandler() {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_handler))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_handler)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -151,8 +158,9 @@ CefRefPtr<CefRequestContextHandler> CefRequestContextCToCpp::GetHandler() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") CefString CefRequestContextCToCpp::GetCachePath() {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_cache_path))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_cache_path)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -169,8 +177,9 @@ NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefCookieManager> CefRequestContextCToCpp::GetCookieManager(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_cookie_manager))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_cookie_manager)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -190,15 +199,17 @@ bool CefRequestContextCToCpp::RegisterSchemeHandlerFactory(
|
||||
const CefString& domain_name,
|
||||
CefRefPtr<CefSchemeHandlerFactory> factory) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, register_scheme_handler_factory))
|
||||
if (CEF_MEMBER_MISSING(_struct, register_scheme_handler_factory)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: scheme_name; type: string_byref_const
|
||||
DCHECK(!scheme_name.empty());
|
||||
if (scheme_name.empty())
|
||||
if (scheme_name.empty()) {
|
||||
return false;
|
||||
}
|
||||
// Unverified params: domain_name, factory
|
||||
|
||||
// Execute
|
||||
@@ -213,8 +224,9 @@ bool CefRequestContextCToCpp::RegisterSchemeHandlerFactory(
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::ClearSchemeHandlerFactories() {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_scheme_handler_factories))
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_scheme_handler_factories)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -229,8 +241,9 @@ NO_SANITIZE("cfi-icall")
|
||||
void CefRequestContextCToCpp::ClearCertificateExceptions(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_certificate_exceptions))
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_certificate_exceptions)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -245,8 +258,9 @@ NO_SANITIZE("cfi-icall")
|
||||
void CefRequestContextCToCpp::ClearHttpAuthCredentials(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_http_auth_credentials))
|
||||
if (CEF_MEMBER_MISSING(_struct, clear_http_auth_credentials)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -261,8 +275,9 @@ NO_SANITIZE("cfi-icall")
|
||||
void CefRequestContextCToCpp::CloseAllConnections(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, close_all_connections))
|
||||
if (CEF_MEMBER_MISSING(_struct, close_all_connections)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -278,19 +293,22 @@ void CefRequestContextCToCpp::ResolveHost(
|
||||
const CefString& origin,
|
||||
CefRefPtr<CefResolveCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, resolve_host))
|
||||
if (CEF_MEMBER_MISSING(_struct, resolve_host)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: origin; type: string_byref_const
|
||||
DCHECK(!origin.empty());
|
||||
if (origin.empty())
|
||||
if (origin.empty()) {
|
||||
return;
|
||||
}
|
||||
// Verify param: callback; type: refptr_diff
|
||||
DCHECK(callback.get());
|
||||
if (!callback.get())
|
||||
if (!callback.get()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->resolve_host(_struct, origin.GetStruct(),
|
||||
@@ -303,15 +321,17 @@ void CefRequestContextCToCpp::LoadExtension(
|
||||
CefRefPtr<CefDictionaryValue> manifest,
|
||||
CefRefPtr<CefExtensionHandler> handler) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, load_extension))
|
||||
if (CEF_MEMBER_MISSING(_struct, load_extension)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: root_directory; type: string_byref_const
|
||||
DCHECK(!root_directory.empty());
|
||||
if (root_directory.empty())
|
||||
if (root_directory.empty()) {
|
||||
return;
|
||||
}
|
||||
// Unverified params: manifest, handler
|
||||
|
||||
// Execute
|
||||
@@ -323,15 +343,17 @@ void CefRequestContextCToCpp::LoadExtension(
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::DidLoadExtension(const CefString& extension_id) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, did_load_extension))
|
||||
if (CEF_MEMBER_MISSING(_struct, did_load_extension)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(!extension_id.empty());
|
||||
if (extension_id.empty())
|
||||
if (extension_id.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->did_load_extension(_struct, extension_id.GetStruct());
|
||||
@@ -343,15 +365,17 @@ bool CefRequestContextCToCpp::DidLoadExtension(const CefString& extension_id) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::HasExtension(const CefString& extension_id) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_extension))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_extension)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(!extension_id.empty());
|
||||
if (extension_id.empty())
|
||||
if (extension_id.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_extension(_struct, extension_id.GetStruct());
|
||||
@@ -364,16 +388,18 @@ NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::GetExtensions(
|
||||
std::vector<CefString>& extension_ids) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_extensions))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_extensions)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Translate param: extension_ids; type: string_vec_byref
|
||||
cef_string_list_t extension_idsList = cef_string_list_alloc();
|
||||
DCHECK(extension_idsList);
|
||||
if (extension_idsList)
|
||||
if (extension_idsList) {
|
||||
transfer_string_list_contents(extension_ids, extension_idsList);
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_extensions(_struct, extension_idsList);
|
||||
@@ -393,15 +419,17 @@ NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefExtension> CefRequestContextCToCpp::GetExtension(
|
||||
const CefString& extension_id) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_extension))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_extension)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: extension_id; type: string_byref_const
|
||||
DCHECK(!extension_id.empty());
|
||||
if (extension_id.empty())
|
||||
if (extension_id.empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_extension_t* _retval =
|
||||
@@ -415,8 +443,9 @@ NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefMediaRouter> CefRequestContextCToCpp::GetMediaRouter(
|
||||
CefRefPtr<CefCompletionCallback> callback) {
|
||||
cef_request_context_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_media_router))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_media_router)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -434,15 +463,17 @@ NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::HasPreference(const CefString& name) {
|
||||
cef_preference_manager_t* _struct =
|
||||
reinterpret_cast<cef_preference_manager_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, has_preference))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_preference)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_preference(_struct, name.GetStruct());
|
||||
@@ -456,15 +487,17 @@ CefRefPtr<CefValue> CefRequestContextCToCpp::GetPreference(
|
||||
const CefString& name) {
|
||||
cef_preference_manager_t* _struct =
|
||||
reinterpret_cast<cef_preference_manager_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_preference))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_preference)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_value_t* _retval = _struct->get_preference(_struct, name.GetStruct());
|
||||
@@ -478,8 +511,9 @@ CefRefPtr<CefDictionaryValue> CefRequestContextCToCpp::GetAllPreferences(
|
||||
bool include_defaults) {
|
||||
cef_preference_manager_t* _struct =
|
||||
reinterpret_cast<cef_preference_manager_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_all_preferences))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_all_preferences)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -495,15 +529,17 @@ NO_SANITIZE("cfi-icall")
|
||||
bool CefRequestContextCToCpp::CanSetPreference(const CefString& name) {
|
||||
cef_preference_manager_t* _struct =
|
||||
reinterpret_cast<cef_preference_manager_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, can_set_preference))
|
||||
if (CEF_MEMBER_MISSING(_struct, can_set_preference)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->can_set_preference(_struct, name.GetStruct());
|
||||
@@ -518,15 +554,17 @@ bool CefRequestContextCToCpp::SetPreference(const CefString& name,
|
||||
CefString& error) {
|
||||
cef_preference_manager_t* _struct =
|
||||
reinterpret_cast<cef_preference_manager_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, set_preference))
|
||||
if (CEF_MEMBER_MISSING(_struct, set_preference)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return false;
|
||||
}
|
||||
// Unverified params: value
|
||||
|
||||
// Execute
|
||||
|
Reference in New Issue
Block a user