• 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=7497a44116b3cfc86eb309dc940c91c7cca78353$
13 //
14 
15 #include "libcef_dll/cpptoc/auth_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
auth_callback_cont(struct _cef_auth_callback_t * self,const cef_string_t * username,const cef_string_t * password)22 void CEF_CALLBACK auth_callback_cont(struct _cef_auth_callback_t* self,
23                                      const cef_string_t* username,
24                                      const cef_string_t* password) {
25   shutdown_checker::AssertNotShutdown();
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   DCHECK(self);
30   if (!self)
31     return;
32   // Unverified params: username, password
33 
34   // Execute
35   CefAuthCallbackCppToC::Get(self)->Continue(CefString(username),
36                                              CefString(password));
37 }
38 
auth_callback_cancel(struct _cef_auth_callback_t * self)39 void CEF_CALLBACK auth_callback_cancel(struct _cef_auth_callback_t* self) {
40   shutdown_checker::AssertNotShutdown();
41 
42   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
43 
44   DCHECK(self);
45   if (!self)
46     return;
47 
48   // Execute
49   CefAuthCallbackCppToC::Get(self)->Cancel();
50 }
51 
52 }  // namespace
53 
54 // CONSTRUCTOR - Do not edit by hand.
55 
CefAuthCallbackCppToC()56 CefAuthCallbackCppToC::CefAuthCallbackCppToC() {
57   GetStruct()->cont = auth_callback_cont;
58   GetStruct()->cancel = auth_callback_cancel;
59 }
60 
61 // DESTRUCTOR - Do not edit by hand.
62 
~CefAuthCallbackCppToC()63 CefAuthCallbackCppToC::~CefAuthCallbackCppToC() {
64   shutdown_checker::AssertNotShutdown();
65 }
66 
67 template <>
68 CefRefPtr<CefAuthCallback> CefCppToCRefCounted<
69     CefAuthCallbackCppToC,
70     CefAuthCallback,
UnwrapDerived(CefWrapperType type,cef_auth_callback_t * s)71     cef_auth_callback_t>::UnwrapDerived(CefWrapperType type,
72                                         cef_auth_callback_t* s) {
73   NOTREACHED() << "Unexpected class type: " << type;
74   return nullptr;
75 }
76 
77 template <>
78 CefWrapperType CefCppToCRefCounted<CefAuthCallbackCppToC,
79                                    CefAuthCallback,
80                                    cef_auth_callback_t>::kWrapperType =
81     WT_AUTH_CALLBACK;
82