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=092e50c318b7d1c933ffb293ff062df17bfbb736$ 13 // 14 15 #include "libcef_dll/ctocpp/download_item_callback_ctocpp.h" 16 #include "libcef_dll/shutdown_checker.h" 17 18 // VIRTUAL METHODS - Body may be edited by hand. 19 Cancel()20NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Cancel() { 21 shutdown_checker::AssertNotShutdown(); 22 23 cef_download_item_callback_t* _struct = GetStruct(); 24 if (CEF_MEMBER_MISSING(_struct, cancel)) 25 return; 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 // Execute 30 _struct->cancel(_struct); 31 } 32 Pause()33NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Pause() { 34 shutdown_checker::AssertNotShutdown(); 35 36 cef_download_item_callback_t* _struct = GetStruct(); 37 if (CEF_MEMBER_MISSING(_struct, pause)) 38 return; 39 40 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 41 42 // Execute 43 _struct->pause(_struct); 44 } 45 Resume()46NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Resume() { 47 shutdown_checker::AssertNotShutdown(); 48 49 cef_download_item_callback_t* _struct = GetStruct(); 50 if (CEF_MEMBER_MISSING(_struct, resume)) 51 return; 52 53 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 54 55 // Execute 56 _struct->resume(_struct); 57 } 58 59 // CONSTRUCTOR - Do not edit by hand. 60 CefDownloadItemCallbackCToCpp()61CefDownloadItemCallbackCToCpp::CefDownloadItemCallbackCToCpp() {} 62 63 // DESTRUCTOR - Do not edit by hand. 64 ~CefDownloadItemCallbackCToCpp()65CefDownloadItemCallbackCToCpp::~CefDownloadItemCallbackCToCpp() { 66 shutdown_checker::AssertNotShutdown(); 67 } 68 69 template <> 70 cef_download_item_callback_t* CefCToCppRefCounted< 71 CefDownloadItemCallbackCToCpp, 72 CefDownloadItemCallback, UnwrapDerived(CefWrapperType type,CefDownloadItemCallback * c)73 cef_download_item_callback_t>::UnwrapDerived(CefWrapperType type, 74 CefDownloadItemCallback* c) { 75 NOTREACHED() << "Unexpected class type: " << type; 76 return nullptr; 77 } 78 79 template <> 80 CefWrapperType CefCToCppRefCounted<CefDownloadItemCallbackCToCpp, 81 CefDownloadItemCallback, 82 cef_download_item_callback_t>::kWrapperType = 83 WT_DOWNLOAD_ITEM_CALLBACK; 84