mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Implement new approach for debugging leaked wrapper object references (issue #2593)
This commit is contained in:
@ -9,10 +9,11 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9e3155c80cd3a5d97432d328650896af3c93a896$
|
||||
// $hash=f37a0feaf54c6943ef0e397982f9d047ac40574d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/register_cdm_callback_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -22,6 +23,8 @@ void CEF_CALLBACK 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) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -43,6 +46,12 @@ CefRegisterCdmCallbackCppToC::CefRegisterCdmCallbackCppToC() {
|
||||
register_cdm_callback_on_cdm_registration_complete;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefRegisterCdmCallbackCppToC::~CefRegisterCdmCallbackCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefRegisterCdmCallback> CefCppToCRefCounted<
|
||||
CefRegisterCdmCallbackCppToC,
|
||||
|
Reference in New Issue
Block a user