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=3f24789c79862889b5a0454c743bf70f71a98faf$ 13 // 14 15 #include "libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.h" 16 #include "libcef_dll/cpptoc/stream_reader_cpptoc.h" 17 #include "libcef_dll/shutdown_checker.h" 18 19 namespace { 20 21 // MEMBER FUNCTIONS - Body may be edited by hand. 22 get_extension_resource_callback_cont(struct _cef_get_extension_resource_callback_t * self,struct _cef_stream_reader_t * stream)23void CEF_CALLBACK get_extension_resource_callback_cont( 24 struct _cef_get_extension_resource_callback_t* self, 25 struct _cef_stream_reader_t* stream) { 26 shutdown_checker::AssertNotShutdown(); 27 28 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 29 30 DCHECK(self); 31 if (!self) 32 return; 33 // Unverified params: stream 34 35 // Execute 36 CefGetExtensionResourceCallbackCppToC::Get(self)->Continue( 37 CefStreamReaderCppToC::Unwrap(stream)); 38 } 39 get_extension_resource_callback_cancel(struct _cef_get_extension_resource_callback_t * self)40void CEF_CALLBACK get_extension_resource_callback_cancel( 41 struct _cef_get_extension_resource_callback_t* self) { 42 shutdown_checker::AssertNotShutdown(); 43 44 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 45 46 DCHECK(self); 47 if (!self) 48 return; 49 50 // Execute 51 CefGetExtensionResourceCallbackCppToC::Get(self)->Cancel(); 52 } 53 54 } // namespace 55 56 // CONSTRUCTOR - Do not edit by hand. 57 CefGetExtensionResourceCallbackCppToC()58CefGetExtensionResourceCallbackCppToC::CefGetExtensionResourceCallbackCppToC() { 59 GetStruct()->cont = get_extension_resource_callback_cont; 60 GetStruct()->cancel = get_extension_resource_callback_cancel; 61 } 62 63 // DESTRUCTOR - Do not edit by hand. 64 65 CefGetExtensionResourceCallbackCppToC:: ~CefGetExtensionResourceCallbackCppToC()66 ~CefGetExtensionResourceCallbackCppToC() { 67 shutdown_checker::AssertNotShutdown(); 68 } 69 70 template <> 71 CefRefPtr<CefGetExtensionResourceCallback> 72 CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC, 73 CefGetExtensionResourceCallback, 74 cef_get_extension_resource_callback_t>:: UnwrapDerived(CefWrapperType type,cef_get_extension_resource_callback_t * s)75 UnwrapDerived(CefWrapperType type, 76 cef_get_extension_resource_callback_t* s) { 77 NOTREACHED() << "Unexpected class type: " << type; 78 return nullptr; 79 } 80 81 template <> 82 CefWrapperType 83 CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC, 84 CefGetExtensionResourceCallback, 85 cef_get_extension_resource_callback_t>::kWrapperType = 86 WT_GET_EXTENSION_RESOURCE_CALLBACK; 87