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=dab6c53c94db70fbeb54b440584a5147c52fe082$
13 //
14
15 #include "libcef_dll/ctocpp/before_download_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(const CefString & download_path,bool show_dialog)21 void CefBeforeDownloadCallbackCToCpp::Continue(const CefString& download_path,
22 bool show_dialog) {
23 shutdown_checker::AssertNotShutdown();
24
25 cef_before_download_callback_t* _struct = GetStruct();
26 if (CEF_MEMBER_MISSING(_struct, cont))
27 return;
28
29 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30
31 // Unverified params: download_path
32
33 // Execute
34 _struct->cont(_struct, download_path.GetStruct(), show_dialog);
35 }
36
37 // CONSTRUCTOR - Do not edit by hand.
38
CefBeforeDownloadCallbackCToCpp()39 CefBeforeDownloadCallbackCToCpp::CefBeforeDownloadCallbackCToCpp() {}
40
41 // DESTRUCTOR - Do not edit by hand.
42
~CefBeforeDownloadCallbackCToCpp()43 CefBeforeDownloadCallbackCToCpp::~CefBeforeDownloadCallbackCToCpp() {
44 shutdown_checker::AssertNotShutdown();
45 }
46
47 template <>
48 cef_before_download_callback_t* CefCToCppRefCounted<
49 CefBeforeDownloadCallbackCToCpp,
50 CefBeforeDownloadCallback,
UnwrapDerived(CefWrapperType type,CefBeforeDownloadCallback * c)51 cef_before_download_callback_t>::UnwrapDerived(CefWrapperType type,
52 CefBeforeDownloadCallback*
53 c) {
54 NOTREACHED() << "Unexpected class type: " << type;
55 return nullptr;
56 }
57
58 template <>
59 CefWrapperType
60 CefCToCppRefCounted<CefBeforeDownloadCallbackCToCpp,
61 CefBeforeDownloadCallback,
62 cef_before_download_callback_t>::kWrapperType =
63 WT_BEFORE_DOWNLOAD_CALLBACK;
64