• 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=c16d5dc361785c620c9066fc473a443651afa7ab$
13 //
14 
15 #include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
22 void CEF_CALLBACK
completion_callback_on_complete(struct _cef_completion_callback_t * self)23 completion_callback_on_complete(struct _cef_completion_callback_t* self) {
24   shutdown_checker::AssertNotShutdown();
25 
26   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
27 
28   DCHECK(self);
29   if (!self)
30     return;
31 
32   // Execute
33   CefCompletionCallbackCppToC::Get(self)->OnComplete();
34 }
35 
36 }  // namespace
37 
38 // CONSTRUCTOR - Do not edit by hand.
39 
CefCompletionCallbackCppToC()40 CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
41   GetStruct()->on_complete = completion_callback_on_complete;
42 }
43 
44 // DESTRUCTOR - Do not edit by hand.
45 
~CefCompletionCallbackCppToC()46 CefCompletionCallbackCppToC::~CefCompletionCallbackCppToC() {
47   shutdown_checker::AssertNotShutdown();
48 }
49 
50 template <>
51 CefRefPtr<CefCompletionCallback> CefCppToCRefCounted<
52     CefCompletionCallbackCppToC,
53     CefCompletionCallback,
UnwrapDerived(CefWrapperType type,cef_completion_callback_t * s)54     cef_completion_callback_t>::UnwrapDerived(CefWrapperType type,
55                                               cef_completion_callback_t* s) {
56   NOTREACHED() << "Unexpected class type: " << type;
57   return nullptr;
58 }
59 
60 template <>
61 CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
62                                    CefCompletionCallback,
63                                    cef_completion_callback_t>::kWrapperType =
64     WT_COMPLETION_CALLBACK;
65