• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=67037943cdfae2a56924694d302a4b5697dc9a22$
13 //
14 
15 #include "libcef_dll/ctocpp/sslinfo_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 
GetCertStatus()21 NO_SANITIZE("cfi-icall") cef_cert_status_t CefSSLInfoCToCpp::GetCertStatus() {
22   shutdown_checker::AssertNotShutdown();
23 
24   cef_sslinfo_t* _struct = GetStruct();
25   if (CEF_MEMBER_MISSING(_struct, get_cert_status))
26     return CERT_STATUS_NONE;
27 
28   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 
30   // Execute
31   cef_cert_status_t _retval = _struct->get_cert_status(_struct);
32 
33   // Return type: simple
34   return _retval;
35 }
36 
37 NO_SANITIZE("cfi-icall")
GetX509Certificate()38 CefRefPtr<CefX509Certificate> CefSSLInfoCToCpp::GetX509Certificate() {
39   shutdown_checker::AssertNotShutdown();
40 
41   cef_sslinfo_t* _struct = GetStruct();
42   if (CEF_MEMBER_MISSING(_struct, get_x509certificate))
43     return nullptr;
44 
45   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
46 
47   // Execute
48   cef_x509certificate_t* _retval = _struct->get_x509certificate(_struct);
49 
50   // Return type: refptr_same
51   return CefX509CertificateCToCpp::Wrap(_retval);
52 }
53 
54 // CONSTRUCTOR - Do not edit by hand.
55 
CefSSLInfoCToCpp()56 CefSSLInfoCToCpp::CefSSLInfoCToCpp() {}
57 
58 // DESTRUCTOR - Do not edit by hand.
59 
~CefSSLInfoCToCpp()60 CefSSLInfoCToCpp::~CefSSLInfoCToCpp() {
61   shutdown_checker::AssertNotShutdown();
62 }
63 
64 template <>
65 cef_sslinfo_t*
UnwrapDerived(CefWrapperType type,CefSSLInfo * c)66 CefCToCppRefCounted<CefSSLInfoCToCpp, CefSSLInfo, cef_sslinfo_t>::UnwrapDerived(
67     CefWrapperType type,
68     CefSSLInfo* c) {
69   NOTREACHED() << "Unexpected class type: " << type;
70   return nullptr;
71 }
72 
73 template <>
74 CefWrapperType CefCToCppRefCounted<CefSSLInfoCToCpp,
75                                    CefSSLInfo,
76                                    cef_sslinfo_t>::kWrapperType = WT_SSLINFO;
77