• 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=7f660f5500f6e299ef56d598c71ade363f5581b9$
13 //
14 
15 #include "libcef_dll/ctocpp/end_tracing_callback_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")
OnEndTracingComplete(const CefString & tracing_file)21 void CefEndTracingCallbackCToCpp::OnEndTracingComplete(
22     const CefString& tracing_file) {
23   shutdown_checker::AssertNotShutdown();
24 
25   cef_end_tracing_callback_t* _struct = GetStruct();
26   if (CEF_MEMBER_MISSING(_struct, on_end_tracing_complete))
27     return;
28 
29   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30 
31   // Verify param: tracing_file; type: string_byref_const
32   DCHECK(!tracing_file.empty());
33   if (tracing_file.empty())
34     return;
35 
36   // Execute
37   _struct->on_end_tracing_complete(_struct, tracing_file.GetStruct());
38 }
39 
40 // CONSTRUCTOR - Do not edit by hand.
41 
CefEndTracingCallbackCToCpp()42 CefEndTracingCallbackCToCpp::CefEndTracingCallbackCToCpp() {}
43 
44 // DESTRUCTOR - Do not edit by hand.
45 
~CefEndTracingCallbackCToCpp()46 CefEndTracingCallbackCToCpp::~CefEndTracingCallbackCToCpp() {
47   shutdown_checker::AssertNotShutdown();
48 }
49 
50 template <>
51 cef_end_tracing_callback_t* CefCToCppRefCounted<
52     CefEndTracingCallbackCToCpp,
53     CefEndTracingCallback,
UnwrapDerived(CefWrapperType type,CefEndTracingCallback * c)54     cef_end_tracing_callback_t>::UnwrapDerived(CefWrapperType type,
55                                                CefEndTracingCallback* c) {
56   NOTREACHED() << "Unexpected class type: " << type;
57   return nullptr;
58 }
59 
60 template <>
61 CefWrapperType CefCToCppRefCounted<CefEndTracingCallbackCToCpp,
62                                    CefEndTracingCallback,
63                                    cef_end_tracing_callback_t>::kWrapperType =
64     WT_END_TRACING_CALLBACK;
65