1 // Copyright (c) 2022 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=78b529fc88b9701f7cf8d40097576704b0ef35fc$ 13 // 14 15 #include "libcef_dll/cpptoc/sslinfo_cpptoc.h" 16 #include "libcef_dll/cpptoc/x509certificate_cpptoc.h" 17 #include "libcef_dll/shutdown_checker.h" 18 19 namespace { 20 21 // MEMBER FUNCTIONS - Body may be edited by hand. 22 23 cef_cert_status_t CEF_CALLBACK sslinfo_get_cert_status(struct _cef_sslinfo_t * self)24sslinfo_get_cert_status(struct _cef_sslinfo_t* self) { 25 shutdown_checker::AssertNotShutdown(); 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 DCHECK(self); 30 if (!self) 31 return CERT_STATUS_NONE; 32 33 // Execute 34 cef_cert_status_t _retval = CefSSLInfoCppToC::Get(self)->GetCertStatus(); 35 36 // Return type: simple 37 return _retval; 38 } 39 40 struct _cef_x509certificate_t* CEF_CALLBACK sslinfo_get_x509certificate(struct _cef_sslinfo_t * self)41sslinfo_get_x509certificate(struct _cef_sslinfo_t* self) { 42 shutdown_checker::AssertNotShutdown(); 43 44 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 45 46 DCHECK(self); 47 if (!self) 48 return NULL; 49 50 // Execute 51 CefRefPtr<CefX509Certificate> _retval = 52 CefSSLInfoCppToC::Get(self)->GetX509Certificate(); 53 54 // Return type: refptr_same 55 return CefX509CertificateCppToC::Wrap(_retval); 56 } 57 58 } // namespace 59 60 // CONSTRUCTOR - Do not edit by hand. 61 CefSSLInfoCppToC()62CefSSLInfoCppToC::CefSSLInfoCppToC() { 63 GetStruct()->get_cert_status = sslinfo_get_cert_status; 64 GetStruct()->get_x509certificate = sslinfo_get_x509certificate; 65 } 66 67 // DESTRUCTOR - Do not edit by hand. 68 ~CefSSLInfoCppToC()69CefSSLInfoCppToC::~CefSSLInfoCppToC() { 70 shutdown_checker::AssertNotShutdown(); 71 } 72 73 template <> 74 CefRefPtr<CefSSLInfo> UnwrapDerived(CefWrapperType type,cef_sslinfo_t * s)75CefCppToCRefCounted<CefSSLInfoCppToC, CefSSLInfo, cef_sslinfo_t>::UnwrapDerived( 76 CefWrapperType type, 77 cef_sslinfo_t* s) { 78 NOTREACHED() << "Unexpected class type: " << type; 79 return nullptr; 80 } 81 82 template <> 83 CefWrapperType CefCppToCRefCounted<CefSSLInfoCppToC, 84 CefSSLInfo, 85 cef_sslinfo_t>::kWrapperType = WT_SSLINFO; 86