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=ed863426c415b3afc459808cca150e7c4b60f29b$
// $hash=393d7d0a8816b40c26ee5fd8fb4d50664d606131$
//
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -23,6 +24,8 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
int count,
int total,
int* deleteCookie) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -64,6 +67,12 @@ CefCookieVisitorCppToC::CefCookieVisitorCppToC() {
GetStruct()->visit = cookie_visitor_visit;
}
// DESTRUCTOR - Do not edit by hand.
CefCookieVisitorCppToC::~CefCookieVisitorCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefCookieVisitor> CefCppToCRefCounted<
CefCookieVisitorCppToC,