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=df7b14a723e4f2b9dd7946fddfbe8dc9652ccb75$ 13 // 14 15 #include "libcef_dll/ctocpp/resource_skip_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(int64 bytes_skipped)21void CefResourceSkipCallbackCToCpp::Continue(int64 bytes_skipped) { 22 shutdown_checker::AssertNotShutdown(); 23 24 cef_resource_skip_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_skipped); 32 } 33 34 // CONSTRUCTOR - Do not edit by hand. 35 CefResourceSkipCallbackCToCpp()36CefResourceSkipCallbackCToCpp::CefResourceSkipCallbackCToCpp() {} 37 38 // DESTRUCTOR - Do not edit by hand. 39 ~CefResourceSkipCallbackCToCpp()40CefResourceSkipCallbackCToCpp::~CefResourceSkipCallbackCToCpp() { 41 shutdown_checker::AssertNotShutdown(); 42 } 43 44 template <> 45 cef_resource_skip_callback_t* CefCToCppRefCounted< 46 CefResourceSkipCallbackCToCpp, 47 CefResourceSkipCallback, UnwrapDerived(CefWrapperType type,CefResourceSkipCallback * c)48 cef_resource_skip_callback_t>::UnwrapDerived(CefWrapperType type, 49 CefResourceSkipCallback* c) { 50 NOTREACHED() << "Unexpected class type: " << type; 51 return nullptr; 52 } 53 54 template <> 55 CefWrapperType CefCToCppRefCounted<CefResourceSkipCallbackCToCpp, 56 CefResourceSkipCallback, 57 cef_resource_skip_callback_t>::kWrapperType = 58 WT_RESOURCE_SKIP_CALLBACK; 59