• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=2747a6d847a7abbc8adcde347308ff7826918884$
13 //
14 
15 #include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h"
16 #include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
Continue(CefRefPtr<CefStreamReader> stream)22 void CefGetExtensionResourceCallbackCToCpp::Continue(
23     CefRefPtr<CefStreamReader> stream) {
24   shutdown_checker::AssertNotShutdown();
25 
26   cef_get_extension_resource_callback_t* _struct = GetStruct();
27   if (CEF_MEMBER_MISSING(_struct, cont))
28     return;
29 
30   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
31 
32   // Unverified params: stream
33 
34   // Execute
35   _struct->cont(_struct, CefStreamReaderCToCpp::Unwrap(stream));
36 }
37 
Cancel()38 NO_SANITIZE("cfi-icall") void CefGetExtensionResourceCallbackCToCpp::Cancel() {
39   shutdown_checker::AssertNotShutdown();
40 
41   cef_get_extension_resource_callback_t* _struct = GetStruct();
42   if (CEF_MEMBER_MISSING(_struct, cancel))
43     return;
44 
45   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
46 
47   // Execute
48   _struct->cancel(_struct);
49 }
50 
51 // CONSTRUCTOR - Do not edit by hand.
52 
CefGetExtensionResourceCallbackCToCpp()53 CefGetExtensionResourceCallbackCToCpp::CefGetExtensionResourceCallbackCToCpp() {
54 }
55 
56 // DESTRUCTOR - Do not edit by hand.
57 
58 CefGetExtensionResourceCallbackCToCpp::
~CefGetExtensionResourceCallbackCToCpp()59     ~CefGetExtensionResourceCallbackCToCpp() {
60   shutdown_checker::AssertNotShutdown();
61 }
62 
63 template <>
64 cef_get_extension_resource_callback_t*
65 CefCToCppRefCounted<CefGetExtensionResourceCallbackCToCpp,
66                     CefGetExtensionResourceCallback,
67                     cef_get_extension_resource_callback_t>::
UnwrapDerived(CefWrapperType type,CefGetExtensionResourceCallback * c)68     UnwrapDerived(CefWrapperType type, CefGetExtensionResourceCallback* c) {
69   NOTREACHED() << "Unexpected class type: " << type;
70   return nullptr;
71 }
72 
73 template <>
74 CefWrapperType
75     CefCToCppRefCounted<CefGetExtensionResourceCallbackCToCpp,
76                         CefGetExtensionResourceCallback,
77                         cef_get_extension_resource_callback_t>::kWrapperType =
78         WT_GET_EXTENSION_RESOURCE_CALLBACK;
79