• 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=0d2b19ca10e7a4ad389d3ce8de83addc1cad4b63$
13 //
14 
15 #include "libcef_dll/cpptoc/delete_cookies_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
22 void CEF_CALLBACK
delete_cookies_callback_on_complete(struct _cef_delete_cookies_callback_t * self,int num_deleted)23 delete_cookies_callback_on_complete(struct _cef_delete_cookies_callback_t* self,
24                                     int num_deleted) {
25   shutdown_checker::AssertNotShutdown();
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   DCHECK(self);
30   if (!self)
31     return;
32 
33   // Execute
34   CefDeleteCookiesCallbackCppToC::Get(self)->OnComplete(num_deleted);
35 }
36 
37 }  // namespace
38 
39 // CONSTRUCTOR - Do not edit by hand.
40 
CefDeleteCookiesCallbackCppToC()41 CefDeleteCookiesCallbackCppToC::CefDeleteCookiesCallbackCppToC() {
42   GetStruct()->on_complete = delete_cookies_callback_on_complete;
43 }
44 
45 // DESTRUCTOR - Do not edit by hand.
46 
~CefDeleteCookiesCallbackCppToC()47 CefDeleteCookiesCallbackCppToC::~CefDeleteCookiesCallbackCppToC() {
48   shutdown_checker::AssertNotShutdown();
49 }
50 
51 template <>
52 CefRefPtr<CefDeleteCookiesCallback> CefCppToCRefCounted<
53     CefDeleteCookiesCallbackCppToC,
54     CefDeleteCookiesCallback,
UnwrapDerived(CefWrapperType type,cef_delete_cookies_callback_t * s)55     cef_delete_cookies_callback_t>::UnwrapDerived(CefWrapperType type,
56                                                   cef_delete_cookies_callback_t*
57                                                       s) {
58   NOTREACHED() << "Unexpected class type: " << type;
59   return nullptr;
60 }
61 
62 template <>
63 CefWrapperType
64     CefCppToCRefCounted<CefDeleteCookiesCallbackCppToC,
65                         CefDeleteCookiesCallback,
66                         cef_delete_cookies_callback_t>::kWrapperType =
67         WT_DELETE_COOKIES_CALLBACK;
68