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=67836a9b2dfec98cab93231cb7e07ca2b9696123$ 13 // 14 15 #include "libcef_dll/cpptoc/end_tracing_callback_cpptoc.h" 16 #include "libcef_dll/shutdown_checker.h" 17 18 namespace { 19 20 // MEMBER FUNCTIONS - Body may be edited by hand. 21 end_tracing_callback_on_end_tracing_complete(struct _cef_end_tracing_callback_t * self,const cef_string_t * tracing_file)22void CEF_CALLBACK end_tracing_callback_on_end_tracing_complete( 23 struct _cef_end_tracing_callback_t* self, 24 const cef_string_t* tracing_file) { 25 shutdown_checker::AssertNotShutdown(); 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 DCHECK(self); 30 if (!self) 31 return; 32 // Verify param: tracing_file; type: string_byref_const 33 DCHECK(tracing_file); 34 if (!tracing_file) 35 return; 36 37 // Execute 38 CefEndTracingCallbackCppToC::Get(self)->OnEndTracingComplete( 39 CefString(tracing_file)); 40 } 41 42 } // namespace 43 44 // CONSTRUCTOR - Do not edit by hand. 45 CefEndTracingCallbackCppToC()46CefEndTracingCallbackCppToC::CefEndTracingCallbackCppToC() { 47 GetStruct()->on_end_tracing_complete = 48 end_tracing_callback_on_end_tracing_complete; 49 } 50 51 // DESTRUCTOR - Do not edit by hand. 52 ~CefEndTracingCallbackCppToC()53CefEndTracingCallbackCppToC::~CefEndTracingCallbackCppToC() { 54 shutdown_checker::AssertNotShutdown(); 55 } 56 57 template <> 58 CefRefPtr<CefEndTracingCallback> CefCppToCRefCounted< 59 CefEndTracingCallbackCppToC, 60 CefEndTracingCallback, UnwrapDerived(CefWrapperType type,cef_end_tracing_callback_t * s)61 cef_end_tracing_callback_t>::UnwrapDerived(CefWrapperType type, 62 cef_end_tracing_callback_t* s) { 63 NOTREACHED() << "Unexpected class type: " << type; 64 return nullptr; 65 } 66 67 template <> 68 CefWrapperType CefCppToCRefCounted<CefEndTracingCallbackCppToC, 69 CefEndTracingCallback, 70 cef_end_tracing_callback_t>::kWrapperType = 71 WT_END_TRACING_CALLBACK; 72