Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 1 | // Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 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 | // |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 12 | // $hash=961058ad701237a60c8ccbe6ce98c3654c1ae51e$ |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 13 | // |
| 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 | |
| 19 | namespace { |
| 20 | |
| 21 | // MEMBER FUNCTIONS - Body may be edited by hand. |
| 22 | |
| 23 | void 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); |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 31 | if (!self) { |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 32 | return; |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 33 | } |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 34 | // Unverified params: stream |
| 35 | |
| 36 | // Execute |
| 37 | CefGetExtensionResourceCallbackCppToC::Get(self)->Continue( |
| 38 | CefStreamReaderCppToC::Unwrap(stream)); |
| 39 | } |
| 40 | |
| 41 | void 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); |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 48 | if (!self) { |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 49 | return; |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 50 | } |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 51 | |
| 52 | // Execute |
| 53 | CefGetExtensionResourceCallbackCppToC::Get(self)->Cancel(); |
| 54 | } |
| 55 | |
| 56 | } // namespace |
| 57 | |
| 58 | // CONSTRUCTOR - Do not edit by hand. |
| 59 | |
| 60 | CefGetExtensionResourceCallbackCppToC::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 | |
| 67 | CefGetExtensionResourceCallbackCppToC:: |
| 68 | ~CefGetExtensionResourceCallbackCppToC() { |
| 69 | shutdown_checker::AssertNotShutdown(); |
| 70 | } |
| 71 | |
| 72 | template <> |
| 73 | CefRefPtr<CefGetExtensionResourceCallback> |
| 74 | CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC, |
| 75 | CefGetExtensionResourceCallback, |
| 76 | cef_get_extension_resource_callback_t>:: |
| 77 | UnwrapDerived(CefWrapperType type, |
| 78 | cef_get_extension_resource_callback_t* s) { |
Googler | 39a9757 | 2023-12-13 22:53:26 +0000 | [diff] [blame^] | 79 | DCHECK(false) << "Unexpected class type: " << type; |
Googler | 1187115 | 2020-10-01 14:59:09 -0400 | [diff] [blame] | 80 | return nullptr; |
| 81 | } |
| 82 | |
| 83 | template <> |
| 84 | CefWrapperType |
| 85 | CefCppToCRefCounted<CefGetExtensionResourceCallbackCppToC, |
| 86 | CefGetExtensionResourceCallback, |
| 87 | cef_get_extension_resource_callback_t>::kWrapperType = |
| 88 | WT_GET_EXTENSION_RESOURCE_CALLBACK; |