• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2021 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=5f7db6dda8ac868e8ec94b93e3ae7d2dd7d0cf64$
13 //
14 
15 #include "libcef_dll/cpptoc/register_cdm_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
register_cdm_callback_on_cdm_registration_complete(struct _cef_register_cdm_callback_t * self,cef_cdm_registration_error_t result,const cef_string_t * error_message)22 void CEF_CALLBACK register_cdm_callback_on_cdm_registration_complete(
23     struct _cef_register_cdm_callback_t* self,
24     cef_cdm_registration_error_t result,
25     const cef_string_t* error_message) {
26   shutdown_checker::AssertNotShutdown();
27 
28   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 
30   DCHECK(self);
31   if (!self)
32     return;
33   // Unverified params: error_message
34 
35   // Execute
36   CefRegisterCdmCallbackCppToC::Get(self)->OnCdmRegistrationComplete(
37       result, CefString(error_message));
38 }
39 
40 }  // namespace
41 
42 // CONSTRUCTOR - Do not edit by hand.
43 
CefRegisterCdmCallbackCppToC()44 CefRegisterCdmCallbackCppToC::CefRegisterCdmCallbackCppToC() {
45   GetStruct()->on_cdm_registration_complete =
46       register_cdm_callback_on_cdm_registration_complete;
47 }
48 
49 // DESTRUCTOR - Do not edit by hand.
50 
~CefRegisterCdmCallbackCppToC()51 CefRegisterCdmCallbackCppToC::~CefRegisterCdmCallbackCppToC() {
52   shutdown_checker::AssertNotShutdown();
53 }
54 
55 template <>
56 CefRefPtr<CefRegisterCdmCallback> CefCppToCRefCounted<
57     CefRegisterCdmCallbackCppToC,
58     CefRegisterCdmCallback,
UnwrapDerived(CefWrapperType type,cef_register_cdm_callback_t * s)59     cef_register_cdm_callback_t>::UnwrapDerived(CefWrapperType type,
60                                                 cef_register_cdm_callback_t*
61                                                     s) {
62   NOTREACHED() << "Unexpected class type: " << type;
63   return nullptr;
64 }
65 
66 template <>
67 CefWrapperType CefCppToCRefCounted<CefRegisterCdmCallbackCppToC,
68                                    CefRegisterCdmCallback,
69                                    cef_register_cdm_callback_t>::kWrapperType =
70     WT_REGISTER_CDM_CALLBACK;
71