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=feef390ffa570224c4ff5ef11ecce9cb87b32f65$
13 //
14
15 #include "libcef_dll/ctocpp/web_plugin_unstable_callback_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17
18 // VIRTUAL METHODS - Body may be edited by hand.
19
20 NO_SANITIZE("cfi-icall")
IsUnstable(const CefString & path,bool unstable)21 void CefWebPluginUnstableCallbackCToCpp::IsUnstable(const CefString& path,
22 bool unstable) {
23 shutdown_checker::AssertNotShutdown();
24
25 cef_web_plugin_unstable_callback_t* _struct = GetStruct();
26 if (CEF_MEMBER_MISSING(_struct, is_unstable))
27 return;
28
29 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30
31 // Verify param: path; type: string_byref_const
32 DCHECK(!path.empty());
33 if (path.empty())
34 return;
35
36 // Execute
37 _struct->is_unstable(_struct, path.GetStruct(), unstable);
38 }
39
40 // CONSTRUCTOR - Do not edit by hand.
41
CefWebPluginUnstableCallbackCToCpp()42 CefWebPluginUnstableCallbackCToCpp::CefWebPluginUnstableCallbackCToCpp() {}
43
44 // DESTRUCTOR - Do not edit by hand.
45
~CefWebPluginUnstableCallbackCToCpp()46 CefWebPluginUnstableCallbackCToCpp::~CefWebPluginUnstableCallbackCToCpp() {
47 shutdown_checker::AssertNotShutdown();
48 }
49
50 template <>
51 cef_web_plugin_unstable_callback_t*
52 CefCToCppRefCounted<CefWebPluginUnstableCallbackCToCpp,
53 CefWebPluginUnstableCallback,
54 cef_web_plugin_unstable_callback_t>::
UnwrapDerived(CefWrapperType type,CefWebPluginUnstableCallback * c)55 UnwrapDerived(CefWrapperType type, CefWebPluginUnstableCallback* c) {
56 NOTREACHED() << "Unexpected class type: " << type;
57 return nullptr;
58 }
59
60 template <>
61 CefWrapperType
62 CefCToCppRefCounted<CefWebPluginUnstableCallbackCToCpp,
63 CefWebPluginUnstableCallback,
64 cef_web_plugin_unstable_callback_t>::kWrapperType =
65 WT_WEB_PLUGIN_UNSTABLE_CALLBACK;
66