blob: 3d5a0d8ed46d0c11c6f1e08062bac89529ce8563 [file] [log] [blame]
Googler39a97572023-12-13 22:53:26 +00001// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
Googler11871152020-10-01 14:59:09 -04002// 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//
Googler39a97572023-12-13 22:53:26 +000012// $hash=961058ad701237a60c8ccbe6ce98c3654c1ae51e$
Googler11871152020-10-01 14:59:09 -040013//
14
15#include "libcef_dll/cpptoc/get_extension_resource_callback_cpptoc.h"
16#include "libcef_dll/cpptoc/stream_reader_cpptoc.h"
17#include "libcef_dll/shutdown_checker.h"
18
19namespace {
20
21// MEMBER FUNCTIONS - Body may be edited by hand.
22
23void CEF_CALLBACK get_extension_resource_callback_cont(
24 struct _cef_get_extension_resource_callback_t* self,
25 struct _cef_stream_reader_t* stream) {
26 shutdown_checker::AssertNotShutdown();
27
28 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29
30 DCHECK(self);
Googler39a97572023-12-13 22:53:26 +000031 if (!self) {
Googler11871152020-10-01 14:59:09 -040032 return;
Googler39a97572023-12-13 22:53:26 +000033 }
Googler11871152020-10-01 14:59:09 -040034 // Unverified params: stream
35
36 // Execute
37 CefGetExtensionResourceCallbackCppToC::Get(self)->Continue(
38 CefStreamReaderCppToC::Unwrap(stream));
39}
40
41void CEF_CALLBACK get_extension_resource_callback_cancel(
42 struct _cef_get_extension_resource_callback_t* self) {
43 shutdown_checker::AssertNotShutdown();
44
45 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
46
47 DCHECK(self);
Googler39a97572023-12-13 22:53:26 +000048 if (!self) {
Googler11871152020-10-01 14:59:09 -040049 return;
Googler39a97572023-12-13 22:53:26 +000050 }
Googler11871152020-10-01 14:59:09 -040051
52 // Execute
53 CefGetExtensionResourceCallbackCppToC::Get(self)->Cancel();
54}
55
56} // namespace
57
58// CONSTRUCTOR - Do not edit by hand.
59
60CefGetExtensionResourceCallbackCppToC::CefGetExtensionResourceCallbackCppToC() {
61 GetStruct()->cont = get_extension_resource_callback_cont;
62 GetStruct()->cancel = get_extension_resource_callback_cancel;
63}
64
65// DESTRUCTOR - Do not edit by hand.
66
67CefGetExtensionResourceCallbackCppToC::
68 ~CefGetExtensionResourceCallbackCppToC() {
69 shutdown_checker::AssertNotShutdown();
70}
71
72template <>
73CefRefPtr<CefGetExtensionResourceCallback>
74CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC,
75 CefGetExtensionResourceCallback,
76 cef_get_extension_resource_callback_t>::
77 UnwrapDerived(CefWrapperType type,
78 cef_get_extension_resource_callback_t* s) {
Googler39a97572023-12-13 22:53:26 +000079 DCHECK(false) << "Unexpected class type: " << type;
Googler11871152020-10-01 14:59:09 -040080 return nullptr;
81}
82
83template <>
84CefWrapperType
85 CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC,
86 CefGetExtensionResourceCallback,
87 cef_get_extension_resource_callback_t>::kWrapperType =
88 WT_GET_EXTENSION_RESOURCE_CALLBACK;