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=c2ac1661c8a054728e4c3d5eacb8b8d23b6f7213$
// $hash=54ed76ef41fc992a52da607a24b07d9469ca81e0$
//
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -21,6 +22,8 @@ namespace {
cef_box_layout_t* CEF_CALLBACK
fill_layout_as_box_layout(struct _cef_layout_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -38,6 +41,8 @@ fill_layout_as_box_layout(struct _cef_layout_t* self) {
cef_fill_layout_t* CEF_CALLBACK
fill_layout_as_fill_layout(struct _cef_layout_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -54,6 +59,8 @@ fill_layout_as_fill_layout(struct _cef_layout_t* self) {
}
int CEF_CALLBACK fill_layout_is_valid(struct _cef_layout_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -79,6 +86,12 @@ CefFillLayoutCppToC::CefFillLayoutCppToC() {
GetStruct()->base.is_valid = fill_layout_is_valid;
}
// DESTRUCTOR - Do not edit by hand.
CefFillLayoutCppToC::~CefFillLayoutCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefFillLayout>
CefCppToCRefCounted<CefFillLayoutCppToC, CefFillLayout, cef_fill_layout_t>::