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=c251aa59688ffe5c12d2ec3c8a4a896d016e86a0$ 13 // 14 15 #include "libcef_dll/ctocpp/resource_read_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") Continue(int bytes_read)21void CefResourceReadCallbackCToCpp::Continue(int bytes_read) { 22 shutdown_checker::AssertNotShutdown(); 23 24 cef_resource_read_callback_t* _struct = GetStruct(); 25 if (CEF_MEMBER_MISSING(_struct, cont)) 26 return; 27 28 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 29 30 // Execute 31 _struct->cont(_struct, bytes_read); 32 } 33 34 // CONSTRUCTOR - Do not edit by hand. 35 CefResourceReadCallbackCToCpp()36CefResourceReadCallbackCToCpp::CefResourceReadCallbackCToCpp() {} 37 38 // DESTRUCTOR - Do not edit by hand. 39 ~CefResourceReadCallbackCToCpp()40CefResourceReadCallbackCToCpp::~CefResourceReadCallbackCToCpp() { 41 shutdown_checker::AssertNotShutdown(); 42 } 43 44 template <> 45 cef_resource_read_callback_t* CefCToCppRefCounted< 46 CefResourceReadCallbackCToCpp, 47 CefResourceReadCallback, UnwrapDerived(CefWrapperType type,CefResourceReadCallback * c)48 cef_resource_read_callback_t>::UnwrapDerived(CefWrapperType type, 49 CefResourceReadCallback* c) { 50 NOTREACHED() << "Unexpected class type: " << type; 51 return nullptr; 52 } 53 54 template <> 55 CefWrapperType CefCToCppRefCounted<CefResourceReadCallbackCToCpp, 56 CefResourceReadCallback, 57 cef_resource_read_callback_t>::kWrapperType = 58 WT_RESOURCE_READ_CALLBACK; 59