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,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=4dc38d6d0e7b6bb905b4ab003fcecd382419a0a0$
// $hash=938a2be639575661ed173ba69c265ff7be4c4a0a$
//
#include "libcef_dll/cpptoc/urlrequest_cpptoc.h"
@ -17,6 +17,7 @@
#include "libcef_dll/cpptoc/request_cpptoc.h"
#include "libcef_dll/cpptoc/response_cpptoc.h"
#include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -24,6 +25,8 @@ CEF_EXPORT cef_urlrequest_t* cef_urlrequest_create(
cef_request_t* request,
struct _cef_urlrequest_client_t* client,
cef_request_context_t* request_context) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: request; type: refptr_same
@ -52,6 +55,8 @@ namespace {
cef_request_t* CEF_CALLBACK
urlrequest_get_request(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -67,6 +72,8 @@ urlrequest_get_request(struct _cef_urlrequest_t* self) {
struct _cef_urlrequest_client_t* CEF_CALLBACK
urlrequest_get_client(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -83,6 +90,8 @@ urlrequest_get_client(struct _cef_urlrequest_t* self) {
cef_urlrequest_status_t CEF_CALLBACK
urlrequest_get_request_status(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -99,6 +108,8 @@ urlrequest_get_request_status(struct _cef_urlrequest_t* self) {
cef_errorcode_t CEF_CALLBACK
urlrequest_get_request_error(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -114,6 +125,8 @@ urlrequest_get_request_error(struct _cef_urlrequest_t* self) {
cef_response_t* CEF_CALLBACK
urlrequest_get_response(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -130,6 +143,8 @@ urlrequest_get_response(struct _cef_urlrequest_t* self) {
int CEF_CALLBACK
urlrequest_response_was_cached(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -144,6 +159,8 @@ urlrequest_response_was_cached(struct _cef_urlrequest_t* self) {
}
void CEF_CALLBACK urlrequest_cancel(struct _cef_urlrequest_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -168,6 +185,12 @@ CefURLRequestCppToC::CefURLRequestCppToC() {
GetStruct()->cancel = urlrequest_cancel;
}
// DESTRUCTOR - Do not edit by hand.
CefURLRequestCppToC::~CefURLRequestCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefURLRequest>
CefCppToCRefCounted<CefURLRequestCppToC, CefURLRequest, cef_urlrequest_t>::