• 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=f65d432f0ca5891aa466010183e437ba5e2007be$
13 //
14 
15 #include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 // VIRTUAL METHODS - Body may be edited by hand.
19 
OnComplete()20 NO_SANITIZE("cfi-icall") void CefCompletionCallbackCToCpp::OnComplete() {
21   shutdown_checker::AssertNotShutdown();
22 
23   cef_completion_callback_t* _struct = GetStruct();
24   if (CEF_MEMBER_MISSING(_struct, on_complete))
25     return;
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   // Execute
30   _struct->on_complete(_struct);
31 }
32 
33 // CONSTRUCTOR - Do not edit by hand.
34 
CefCompletionCallbackCToCpp()35 CefCompletionCallbackCToCpp::CefCompletionCallbackCToCpp() {}
36 
37 // DESTRUCTOR - Do not edit by hand.
38 
~CefCompletionCallbackCToCpp()39 CefCompletionCallbackCToCpp::~CefCompletionCallbackCToCpp() {
40   shutdown_checker::AssertNotShutdown();
41 }
42 
43 template <>
44 cef_completion_callback_t* CefCToCppRefCounted<
45     CefCompletionCallbackCToCpp,
46     CefCompletionCallback,
UnwrapDerived(CefWrapperType type,CefCompletionCallback * c)47     cef_completion_callback_t>::UnwrapDerived(CefWrapperType type,
48                                               CefCompletionCallback* c) {
49   NOTREACHED() << "Unexpected class type: " << type;
50   return nullptr;
51 }
52 
53 template <>
54 CefWrapperType CefCToCppRefCounted<CefCompletionCallbackCToCpp,
55                                    CefCompletionCallback,
56                                    cef_completion_callback_t>::kWrapperType =
57     WT_COMPLETION_CALLBACK;
58