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