2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2015-02-11 19:15:04 +01: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=576edac053088a0f3923123ac0af2114d011d9bb$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-02-11 19:15:04 +01:00
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/x509cert_principal_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2015-02-11 19:15:04 +01:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_display_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetDisplayName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_common_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetCommonName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_locality_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetLocalityName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_state_or_province_name(
|
2016-09-02 12:01:33 +02:00
|
|
|
struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
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
|
|
|
CefString _retval =
|
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetStateOrProvinceName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_country_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetCountryName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
void CEF_CALLBACK x509cert_principal_get_organization_names(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: names; type: string_vec_byref
|
|
|
|
DCHECK(names);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!names) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
std::vector<CefString> namesList;
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetOrganizationNames(namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: names; type: string_vec_byref
|
|
|
|
cef_string_list_clear(names);
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
void CEF_CALLBACK x509cert_principal_get_organization_unit_names(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: names; type: string_vec_byref
|
|
|
|
DCHECK(names);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!names) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
std::vector<CefString> namesList;
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetOrganizationUnitNames(namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: names; type: string_vec_byref
|
|
|
|
cef_string_list_clear(names);
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
CefX509CertPrincipalCppToC::CefX509CertPrincipalCppToC() {
|
|
|
|
GetStruct()->get_display_name = x509cert_principal_get_display_name;
|
|
|
|
GetStruct()->get_common_name = x509cert_principal_get_common_name;
|
|
|
|
GetStruct()->get_locality_name = x509cert_principal_get_locality_name;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_state_or_province_name =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_state_or_province_name;
|
|
|
|
GetStruct()->get_country_name = x509cert_principal_get_country_name;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_organization_names =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_organization_names;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_organization_unit_names =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_organization_unit_names;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefX509CertPrincipalCppToC::~CefX509CertPrincipalCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefX509CertPrincipal> CefCppToCRefCounted<
|
|
|
|
CefX509CertPrincipalCppToC,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_x509cert_principal_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-02-11 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefX509CertPrincipalCppToC,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::kWrapperType =
|
2016-09-02 12:01:33 +02:00
|
|
|
WT_X509CERT_PRINCIPAL;
|