Implement new approach for debugging leaked wrapper object references (issue #2593)

This commit is contained in:
Marshall Greenblatt
2019-01-23 16:42:12 +01:00
parent 176e14d451
commit 3fe062a5b6
576 changed files with 8806 additions and 733 deletions

View File

@ -9,10 +9,11 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=7314e990762cfec272aa0cb3226ad7a053c5a89d$
// $hash=dfc3c17cbe81e73f1f9fea2bde9bb863e7c7edb6$
//
#include "libcef_dll/cpptoc/pdf_print_callback_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -22,6 +23,8 @@ void CEF_CALLBACK
pdf_print_callback_on_pdf_print_finished(struct _cef_pdf_print_callback_t* self,
const cef_string_t* path,
int ok) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -45,6 +48,12 @@ CefPdfPrintCallbackCppToC::CefPdfPrintCallbackCppToC() {
GetStruct()->on_pdf_print_finished = pdf_print_callback_on_pdf_print_finished;
}
// DESTRUCTOR - Do not edit by hand.
CefPdfPrintCallbackCppToC::~CefPdfPrintCallbackCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefPdfPrintCallback> CefCppToCRefCounted<
CefPdfPrintCallbackCppToC,