1 // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 // 5 // --------------------------------------------------------------------------- 6 // 7 // This file was generated by the CEF translator tool. If making changes by 8 // hand only do so within the body of existing method and function 9 // implementations. See the translator.README.txt file in the tools directory 10 // for more information. 11 // 12 // $hash=0f367fb3849adf120197cf9dc38f91ea1d050abd$ 13 // 14 15 #include "libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.h" 16 #include "libcef_dll/ctocpp/x509certificate_ctocpp.h" 17 #include "libcef_dll/shutdown_checker.h" 18 19 // VIRTUAL METHODS - Body may be edited by hand. 20 21 NO_SANITIZE("cfi-icall") Select(CefRefPtr<CefX509Certificate> cert)22void CefSelectClientCertificateCallbackCToCpp::Select( 23 CefRefPtr<CefX509Certificate> cert) { 24 shutdown_checker::AssertNotShutdown(); 25 26 cef_select_client_certificate_callback_t* _struct = GetStruct(); 27 if (CEF_MEMBER_MISSING(_struct, select)) 28 return; 29 30 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 31 32 // Unverified params: cert 33 34 // Execute 35 _struct->select(_struct, CefX509CertificateCToCpp::Unwrap(cert)); 36 } 37 38 // CONSTRUCTOR - Do not edit by hand. 39 40 CefSelectClientCertificateCallbackCToCpp:: CefSelectClientCertificateCallbackCToCpp()41 CefSelectClientCertificateCallbackCToCpp() {} 42 43 // DESTRUCTOR - Do not edit by hand. 44 45 CefSelectClientCertificateCallbackCToCpp:: ~CefSelectClientCertificateCallbackCToCpp()46 ~CefSelectClientCertificateCallbackCToCpp() { 47 shutdown_checker::AssertNotShutdown(); 48 } 49 50 template <> 51 cef_select_client_certificate_callback_t* 52 CefCToCppRefCounted<CefSelectClientCertificateCallbackCToCpp, 53 CefSelectClientCertificateCallback, 54 cef_select_client_certificate_callback_t>:: UnwrapDerived(CefWrapperType type,CefSelectClientCertificateCallback * c)55 UnwrapDerived(CefWrapperType type, CefSelectClientCertificateCallback* c) { 56 NOTREACHED() << "Unexpected class type: " << type; 57 return nullptr; 58 } 59 60 template <> 61 CefWrapperType CefCToCppRefCounted< 62 CefSelectClientCertificateCallbackCToCpp, 63 CefSelectClientCertificateCallback, 64 cef_select_client_certificate_callback_t>::kWrapperType = 65 WT_SELECT_CLIENT_CERTIFICATE_CALLBACK; 66