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=0736a907753bbb95634bcecf7415b5dce8a79a86$
|
||||
// $hash=9252ddf87a04506b78a438821fbed2916d769e3b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/resolve_callback_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
namespace {
|
||||
@ -23,6 +24,8 @@ void CEF_CALLBACK
|
||||
resolve_callback_on_resolve_completed(struct _cef_resolve_callback_t* self,
|
||||
cef_errorcode_t result,
|
||||
cef_string_list_t resolved_ips) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,6 +50,12 @@ CefResolveCallbackCppToC::CefResolveCallbackCppToC() {
|
||||
GetStruct()->on_resolve_completed = resolve_callback_on_resolve_completed;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefResolveCallbackCppToC::~CefResolveCallbackCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefResolveCallback> CefCppToCRefCounted<
|
||||
CefResolveCallbackCppToC,
|
||||
|
Reference in New Issue
Block a user