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=72a7304568cf07d548571c6dd008b4fed0cdd77e$
// $hash=ee8e0b077363331416ad3a2cad554bd853d5bf1b$
//
#include "libcef_dll/cpptoc/string_visitor_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -20,6 +21,8 @@ namespace {
void CEF_CALLBACK string_visitor_visit(struct _cef_string_visitor_t* self,
const cef_string_t* string) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -39,6 +42,12 @@ CefStringVisitorCppToC::CefStringVisitorCppToC() {
GetStruct()->visit = string_visitor_visit;
}
// DESTRUCTOR - Do not edit by hand.
CefStringVisitorCppToC::~CefStringVisitorCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefStringVisitor> CefCppToCRefCounted<
CefStringVisitorCppToC,