2021-01-27 19:36:54 +01:00
|
|
|
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
|
2017-08-04 00:55:19 +02:00
|
|
|
// 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.
|
|
|
|
//
|
2021-01-27 19:36:54 +01:00
|
|
|
// $hash=63092d32e63d924b5988159ff2bc522c9f260628$
|
2017-08-04 00:55:19 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2017-08-04 00:55:19 +02:00
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-08-04 00:55:19 +02:00
|
|
|
void CefGetExtensionResourceCallbackCToCpp::Continue(
|
|
|
|
CefRefPtr<CefStreamReader> stream) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
cef_get_extension_resource_callback_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, cont))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: stream
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->cont(_struct, CefStreamReaderCToCpp::Unwrap(stream));
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefGetExtensionResourceCallbackCToCpp::Cancel() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
cef_get_extension_resource_callback_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, cancel))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->cancel(_struct);
|
|
|
|
}
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefGetExtensionResourceCallbackCToCpp::CefGetExtensionResourceCallbackCToCpp() {
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefGetExtensionResourceCallbackCToCpp::
|
|
|
|
~CefGetExtensionResourceCallbackCToCpp() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
template <>
|
|
|
|
cef_get_extension_resource_callback_t*
|
|
|
|
CefCToCppRefCounted<CefGetExtensionResourceCallbackCToCpp,
|
|
|
|
CefGetExtensionResourceCallback,
|
|
|
|
cef_get_extension_resource_callback_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, CefGetExtensionResourceCallback* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2017-08-04 00:55:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
CefWrapperType
|
|
|
|
CefCToCppRefCounted<CefGetExtensionResourceCallbackCToCpp,
|
|
|
|
CefGetExtensionResourceCallback,
|
|
|
|
cef_get_extension_resource_callback_t>::kWrapperType =
|
|
|
|
WT_GET_EXTENSION_RESOURCE_CALLBACK;
|