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,11 +9,12 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ec3c7ec133dc954dc3f61081f6a765b375fcc9bf$
|
||||
// $hash=64deb213617efb32c6c092dc6cca900f67322b68$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/navigation_entry_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -25,6 +26,8 @@ navigation_entry_visitor_visit(struct _cef_navigation_entry_visitor_t* self,
|
||||
int current,
|
||||
int index,
|
||||
int total) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -52,6 +55,12 @@ CefNavigationEntryVisitorCppToC::CefNavigationEntryVisitorCppToC() {
|
||||
GetStruct()->visit = navigation_entry_visitor_visit;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefNavigationEntryVisitorCppToC::~CefNavigationEntryVisitorCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefNavigationEntryVisitor>
|
||||
CefCppToCRefCounted<CefNavigationEntryVisitorCppToC,
|
||||
|
Reference in New Issue
Block a user