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=d8cfb6cafc2a9aa0cffe4a998071e8a96b04740b$
|
||||
// $hash=ac37df1c5a9a759393e0c7b33e60af3477ec8ce8$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/server_ctocpp.h"
|
||||
@@ -31,12 +31,14 @@ void CefServer::CreateServer(const CefString& address,
|
||||
|
||||
// Verify param: address; type: string_byref_const
|
||||
DCHECK(!address.empty());
|
||||
if (address.empty())
|
||||
if (address.empty()) {
|
||||
return;
|
||||
}
|
||||
// Verify param: handler; type: refptr_diff
|
||||
DCHECK(handler.get());
|
||||
if (!handler.get())
|
||||
if (!handler.get()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_server_create(address.GetStruct(), port, backlog,
|
||||
@@ -50,8 +52,9 @@ CefRefPtr<CefTaskRunner> CefServerCToCpp::GetTaskRunner() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_task_runner))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_task_runner)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -66,8 +69,9 @@ NO_SANITIZE("cfi-icall") void CefServerCToCpp::Shutdown() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, shutdown))
|
||||
if (CEF_MEMBER_MISSING(_struct, shutdown)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -79,8 +83,9 @@ NO_SANITIZE("cfi-icall") bool CefServerCToCpp::IsRunning() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_running))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_running)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -95,8 +100,9 @@ NO_SANITIZE("cfi-icall") CefString CefServerCToCpp::GetAddress() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_address))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_address)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -113,8 +119,9 @@ NO_SANITIZE("cfi-icall") bool CefServerCToCpp::HasConnection() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_connection))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_connection)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -130,8 +137,9 @@ bool CefServerCToCpp::IsValidConnection(int connection_id) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_valid_connection))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_valid_connection)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -150,19 +158,22 @@ void CefServerCToCpp::SendHttp200Response(int connection_id,
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http200response))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http200response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: content_type; type: string_byref_const
|
||||
DCHECK(!content_type.empty());
|
||||
if (content_type.empty())
|
||||
if (content_type.empty()) {
|
||||
return;
|
||||
}
|
||||
// Verify param: data; type: simple_byaddr
|
||||
DCHECK(data);
|
||||
if (!data)
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->send_http200response(_struct, connection_id,
|
||||
@@ -174,8 +185,9 @@ void CefServerCToCpp::SendHttp404Response(int connection_id) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http404response))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http404response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -189,15 +201,17 @@ void CefServerCToCpp::SendHttp500Response(int connection_id,
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http500response))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http500response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: error_message; type: string_byref_const
|
||||
DCHECK(!error_message.empty());
|
||||
if (error_message.empty())
|
||||
if (error_message.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->send_http500response(_struct, connection_id,
|
||||
@@ -213,22 +227,25 @@ void CefServerCToCpp::SendHttpResponse(int connection_id,
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http_response))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_http_response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: content_type; type: string_byref_const
|
||||
DCHECK(!content_type.empty());
|
||||
if (content_type.empty())
|
||||
if (content_type.empty()) {
|
||||
return;
|
||||
}
|
||||
// Unverified params: extra_headers
|
||||
|
||||
// Translate param: extra_headers; type: string_map_multi_byref_const
|
||||
cef_string_multimap_t extra_headersMultimap = cef_string_multimap_alloc();
|
||||
DCHECK(extra_headersMultimap);
|
||||
if (extra_headersMultimap)
|
||||
if (extra_headersMultimap) {
|
||||
transfer_string_multimap_contents(extra_headers, extra_headersMultimap);
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->send_http_response(_struct, connection_id, response_code,
|
||||
@@ -236,8 +253,9 @@ void CefServerCToCpp::SendHttpResponse(int connection_id,
|
||||
extra_headersMultimap);
|
||||
|
||||
// Restore param:extra_headers; type: string_map_multi_byref_const
|
||||
if (extra_headersMultimap)
|
||||
if (extra_headersMultimap) {
|
||||
cef_string_multimap_free(extra_headersMultimap);
|
||||
}
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
@@ -247,15 +265,17 @@ void CefServerCToCpp::SendRawData(int connection_id,
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_raw_data))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_raw_data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: data; type: simple_byaddr
|
||||
DCHECK(data);
|
||||
if (!data)
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->send_raw_data(_struct, connection_id, data, data_size);
|
||||
@@ -266,8 +286,9 @@ void CefServerCToCpp::CloseConnection(int connection_id) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, close_connection))
|
||||
if (CEF_MEMBER_MISSING(_struct, close_connection)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -282,15 +303,17 @@ void CefServerCToCpp::SendWebSocketMessage(int connection_id,
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_server_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, send_web_socket_message))
|
||||
if (CEF_MEMBER_MISSING(_struct, send_web_socket_message)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: data; type: simple_byaddr
|
||||
DCHECK(data);
|
||||
if (!data)
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->send_web_socket_message(_struct, connection_id, data, data_size);
|
||||
|
Reference in New Issue
Block a user