• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=f9a94b45084ce5da324706dcc36605d478e200b3$
13 //
14 
15 #include "libcef_dll/ctocpp/string_visitor_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 // VIRTUAL METHODS - Body may be edited by hand.
19 
20 NO_SANITIZE("cfi-icall")
Visit(const CefString & string)21 void CefStringVisitorCToCpp::Visit(const CefString& string) {
22   shutdown_checker::AssertNotShutdown();
23 
24   cef_string_visitor_t* _struct = GetStruct();
25   if (CEF_MEMBER_MISSING(_struct, visit))
26     return;
27 
28   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 
30   // Unverified params: string
31 
32   // Execute
33   _struct->visit(_struct, string.GetStruct());
34 }
35 
36 // CONSTRUCTOR - Do not edit by hand.
37 
CefStringVisitorCToCpp()38 CefStringVisitorCToCpp::CefStringVisitorCToCpp() {}
39 
40 // DESTRUCTOR - Do not edit by hand.
41 
~CefStringVisitorCToCpp()42 CefStringVisitorCToCpp::~CefStringVisitorCToCpp() {
43   shutdown_checker::AssertNotShutdown();
44 }
45 
46 template <>
47 cef_string_visitor_t*
48 CefCToCppRefCounted<CefStringVisitorCToCpp,
49                     CefStringVisitor,
UnwrapDerived(CefWrapperType type,CefStringVisitor * c)50                     cef_string_visitor_t>::UnwrapDerived(CefWrapperType type,
51                                                          CefStringVisitor* c) {
52   NOTREACHED() << "Unexpected class type: " << type;
53   return nullptr;
54 }
55 
56 template <>
57 CefWrapperType CefCToCppRefCounted<CefStringVisitorCToCpp,
58                                    CefStringVisitor,
59                                    cef_string_visitor_t>::kWrapperType =
60     WT_STRING_VISITOR;
61