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=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,
|
||||
|
Reference in New Issue
Block a user