• 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=3ae38c17cba153dbca73496eae905202ac09bfeb$
13 //
14 
15 #include "libcef_dll/ctocpp/auth_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")
Continue(const CefString & username,const CefString & password)21 void CefAuthCallbackCToCpp::Continue(const CefString& username,
22                                      const CefString& password) {
23   shutdown_checker::AssertNotShutdown();
24 
25   cef_auth_callback_t* _struct = GetStruct();
26   if (CEF_MEMBER_MISSING(_struct, cont))
27     return;
28 
29   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30 
31   // Unverified params: username, password
32 
33   // Execute
34   _struct->cont(_struct, username.GetStruct(), password.GetStruct());
35 }
36 
Cancel()37 NO_SANITIZE("cfi-icall") void CefAuthCallbackCToCpp::Cancel() {
38   shutdown_checker::AssertNotShutdown();
39 
40   cef_auth_callback_t* _struct = GetStruct();
41   if (CEF_MEMBER_MISSING(_struct, cancel))
42     return;
43 
44   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
45 
46   // Execute
47   _struct->cancel(_struct);
48 }
49 
50 // CONSTRUCTOR - Do not edit by hand.
51 
CefAuthCallbackCToCpp()52 CefAuthCallbackCToCpp::CefAuthCallbackCToCpp() {}
53 
54 // DESTRUCTOR - Do not edit by hand.
55 
~CefAuthCallbackCToCpp()56 CefAuthCallbackCToCpp::~CefAuthCallbackCToCpp() {
57   shutdown_checker::AssertNotShutdown();
58 }
59 
60 template <>
61 cef_auth_callback_t*
62 CefCToCppRefCounted<CefAuthCallbackCToCpp,
63                     CefAuthCallback,
UnwrapDerived(CefWrapperType type,CefAuthCallback * c)64                     cef_auth_callback_t>::UnwrapDerived(CefWrapperType type,
65                                                         CefAuthCallback* c) {
66   NOTREACHED() << "Unexpected class type: " << type;
67   return nullptr;
68 }
69 
70 template <>
71 CefWrapperType CefCToCppRefCounted<CefAuthCallbackCToCpp,
72                                    CefAuthCallback,
73                                    cef_auth_callback_t>::kWrapperType =
74     WT_AUTH_CALLBACK;
75