diff options
author | Inna Palant <ipalant@google.com> | 2023-12-12 19:56:22 -0800 |
---|---|---|
committer | Inna Palant <ipalant@google.com> | 2023-12-12 19:56:22 -0800 |
commit | 1ee1f36e3b492d7a6a0bf2367fe509365853aeaa (patch) | |
tree | a5790e155ff0d998639beb6172dfa0feb294aac9 /libcef_dll/ctocpp/download_item_callback_ctocpp.cc | |
parent | 1e76199e6f0ded437fca14eb9e512e0c6bd0fc1e (diff) | |
parent | c33b736614ef77e4048cee551999a656a5ef465f (diff) | |
download | cef-1ee1f36e3b492d7a6a0bf2367fe509365853aeaa.tar.gz |
Merge remote-tracking branch 'origin/upstream'main
Import b/312293934
Diffstat (limited to 'libcef_dll/ctocpp/download_item_callback_ctocpp.cc')
-rw-r--r-- | libcef_dll/ctocpp/download_item_callback_ctocpp.cc | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/libcef_dll/ctocpp/download_item_callback_ctocpp.cc b/libcef_dll/ctocpp/download_item_callback_ctocpp.cc new file mode 100644 index 00000000..f306fbb5 --- /dev/null +++ b/libcef_dll/ctocpp/download_item_callback_ctocpp.cc @@ -0,0 +1,86 @@ +// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights +// reserved. Use of this source code is governed by a BSD-style license that +// can be found in the LICENSE file. +// +// --------------------------------------------------------------------------- +// +// This file was generated by the CEF translator tool. If making changes by +// hand only do so within the body of existing method and function +// implementations. See the translator.README.txt file in the tools directory +// for more information. +// +// $hash=464ef9eb17442065860808d28cd96a5736ac118c$ +// + +#include "libcef_dll/ctocpp/download_item_callback_ctocpp.h" +#include "libcef_dll/shutdown_checker.h" + +// VIRTUAL METHODS - Body may be edited by hand. + +NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Cancel() { + shutdown_checker::AssertNotShutdown(); + + cef_download_item_callback_t* _struct = GetStruct(); + if (CEF_MEMBER_MISSING(_struct, cancel)) { + return; + } + + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING + + // Execute + _struct->cancel(_struct); +} + +NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Pause() { + shutdown_checker::AssertNotShutdown(); + + cef_download_item_callback_t* _struct = GetStruct(); + if (CEF_MEMBER_MISSING(_struct, pause)) { + return; + } + + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING + + // Execute + _struct->pause(_struct); +} + +NO_SANITIZE("cfi-icall") void CefDownloadItemCallbackCToCpp::Resume() { + shutdown_checker::AssertNotShutdown(); + + cef_download_item_callback_t* _struct = GetStruct(); + if (CEF_MEMBER_MISSING(_struct, resume)) { + return; + } + + // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING + + // Execute + _struct->resume(_struct); +} + +// CONSTRUCTOR - Do not edit by hand. + +CefDownloadItemCallbackCToCpp::CefDownloadItemCallbackCToCpp() {} + +// DESTRUCTOR - Do not edit by hand. + +CefDownloadItemCallbackCToCpp::~CefDownloadItemCallbackCToCpp() { + shutdown_checker::AssertNotShutdown(); +} + +template <> +cef_download_item_callback_t* CefCToCppRefCounted< + CefDownloadItemCallbackCToCpp, + CefDownloadItemCallback, + cef_download_item_callback_t>::UnwrapDerived(CefWrapperType type, + CefDownloadItemCallback* c) { + NOTREACHED() << "Unexpected class type: " << type; + return nullptr; +} + +template <> +CefWrapperType CefCToCppRefCounted<CefDownloadItemCallbackCToCpp, + CefDownloadItemCallback, + cef_download_item_callback_t>::kWrapperType = + WT_DOWNLOAD_ITEM_CALLBACK; |