2021-01-27 19:36:54 +01:00
|
|
|
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
|
2016-10-14 17:56:41 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2021-01-27 19:36:54 +01:00
|
|
|
// $hash=5f7db6dda8ac868e8ec94b93e3ae7d2dd7d0cf64$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-10-14 17:56:41 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/register_cdm_callback_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2016-10-14 17:56:41 +02:00
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
void CEF_CALLBACK register_cdm_callback_on_cdm_registration_complete(
|
|
|
|
struct _cef_register_cdm_callback_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_cdm_registration_error_t result,
|
|
|
|
const cef_string_t* error_message) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-10-14 17:56:41 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Unverified params: error_message
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRegisterCdmCallbackCppToC::Get(self)->OnCdmRegistrationComplete(
|
2017-05-17 11:29:28 +02:00
|
|
|
result, CefString(error_message));
|
2016-10-14 17:56:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefRegisterCdmCallbackCppToC::CefRegisterCdmCallbackCppToC() {
|
|
|
|
GetStruct()->on_cdm_registration_complete =
|
|
|
|
register_cdm_callback_on_cdm_registration_complete;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefRegisterCdmCallbackCppToC::~CefRegisterCdmCallbackCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefRegisterCdmCallback> CefCppToCRefCounted<
|
|
|
|
CefRegisterCdmCallbackCppToC,
|
|
|
|
CefRegisterCdmCallback,
|
|
|
|
cef_register_cdm_callback_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_register_cdm_callback_t*
|
|
|
|
s) {
|
2016-10-14 17:56:41 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2016-10-14 17:56:41 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefRegisterCdmCallbackCppToC,
|
|
|
|
CefRegisterCdmCallback,
|
|
|
|
cef_register_cdm_callback_t>::kWrapperType =
|
2016-10-14 17:56:41 +02:00
|
|
|
WT_REGISTER_CDM_CALLBACK;
|