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=4d5ddec8ccdc06aae8af94c7c3656148e5782d03$
// $hash=b2bfbc295ed265014feea4c49f2cf663f7bf5bc2$
//
#include "libcef_dll/cpptoc/write_handler_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -22,6 +23,8 @@ size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self,
const void* ptr,
size_t size,
size_t n) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -42,6 +45,8 @@ size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self,
int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self,
int64 offset,
int whence) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -56,6 +61,8 @@ int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self,
}
int64 CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -70,6 +77,8 @@ int64 CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self) {
}
int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -84,6 +93,8 @@ int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self) {
}
int CEF_CALLBACK write_handler_may_block(struct _cef_write_handler_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -109,6 +120,12 @@ CefWriteHandlerCppToC::CefWriteHandlerCppToC() {
GetStruct()->may_block = write_handler_may_block;
}
// DESTRUCTOR - Do not edit by hand.
CefWriteHandlerCppToC::~CefWriteHandlerCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefWriteHandler> CefCppToCRefCounted<
CefWriteHandlerCppToC,