• 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=5767c600167159c0ad3f5d10461f1bf107c668cc$
13 //
14 
15 #include "libcef_dll/ctocpp/set_cookie_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")
OnComplete(bool success)21 void CefSetCookieCallbackCToCpp::OnComplete(bool success) {
22   shutdown_checker::AssertNotShutdown();
23 
24   cef_set_cookie_callback_t* _struct = GetStruct();
25   if (CEF_MEMBER_MISSING(_struct, on_complete))
26     return;
27 
28   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 
30   // Execute
31   _struct->on_complete(_struct, success);
32 }
33 
34 // CONSTRUCTOR - Do not edit by hand.
35 
CefSetCookieCallbackCToCpp()36 CefSetCookieCallbackCToCpp::CefSetCookieCallbackCToCpp() {}
37 
38 // DESTRUCTOR - Do not edit by hand.
39 
~CefSetCookieCallbackCToCpp()40 CefSetCookieCallbackCToCpp::~CefSetCookieCallbackCToCpp() {
41   shutdown_checker::AssertNotShutdown();
42 }
43 
44 template <>
45 cef_set_cookie_callback_t* CefCToCppRefCounted<
46     CefSetCookieCallbackCToCpp,
47     CefSetCookieCallback,
UnwrapDerived(CefWrapperType type,CefSetCookieCallback * c)48     cef_set_cookie_callback_t>::UnwrapDerived(CefWrapperType type,
49                                               CefSetCookieCallback* c) {
50   NOTREACHED() << "Unexpected class type: " << type;
51   return nullptr;
52 }
53 
54 template <>
55 CefWrapperType CefCToCppRefCounted<CefSetCookieCallbackCToCpp,
56                                    CefSetCookieCallback,
57                                    cef_set_cookie_callback_t>::kWrapperType =
58     WT_SET_COOKIE_CALLBACK;
59