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,11 +9,12 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=dad73b1e53163b971788f9f7c9a79fa1159218e8$
// $hash=6851cc688ae36e0355eb16cc6ef73c8273bed44e$
//
#include "libcef_dll/cpptoc/download_image_callback_cpptoc.h"
#include "libcef_dll/ctocpp/image_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -24,6 +25,8 @@ void CEF_CALLBACK download_image_callback_on_download_image_finished(
const cef_string_t* image_url,
int http_status_code,
struct _cef_image_t* image) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -49,6 +52,12 @@ CefDownloadImageCallbackCppToC::CefDownloadImageCallbackCppToC() {
download_image_callback_on_download_image_finished;
}
// DESTRUCTOR - Do not edit by hand.
CefDownloadImageCallbackCppToC::~CefDownloadImageCallbackCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefDownloadImageCallback> CefCppToCRefCounted<
CefDownloadImageCallbackCppToC,