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=42a6d8df317712c8365e14536639f6df2012c6a4$
|
||||
// $hash=b3574eb0dc0a5e5debb7428d24b799dac3a5bf9f$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domnode_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -21,6 +22,8 @@ namespace {
|
||||
|
||||
cef_dom_document_type_t CEF_CALLBACK
|
||||
domdocument_get_type(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -36,6 +39,8 @@ domdocument_get_type(struct _cef_domdocument_t* self) {
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_document(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -52,6 +57,8 @@ domdocument_get_document(struct _cef_domdocument_t* self) {
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_body(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -67,6 +74,8 @@ domdocument_get_body(struct _cef_domdocument_t* self) {
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_head(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -82,6 +91,8 @@ domdocument_get_head(struct _cef_domdocument_t* self) {
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_title(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,6 +109,8 @@ domdocument_get_title(struct _cef_domdocument_t* self) {
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_element_by_id(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* id) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -118,6 +131,8 @@ domdocument_get_element_by_id(struct _cef_domdocument_t* self,
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK
|
||||
domdocument_get_focused_node(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -133,6 +148,8 @@ domdocument_get_focused_node(struct _cef_domdocument_t* self) {
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -148,6 +165,8 @@ int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
|
||||
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -163,6 +182,8 @@ domdocument_get_selection_start_offset(struct _cef_domdocument_t* self) {
|
||||
|
||||
int CEF_CALLBACK
|
||||
domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -178,6 +199,8 @@ domdocument_get_selection_end_offset(struct _cef_domdocument_t* self) {
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -193,6 +216,8 @@ domdocument_get_selection_as_markup(struct _cef_domdocument_t* self) {
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_selection_as_text(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -208,6 +233,8 @@ domdocument_get_selection_as_text(struct _cef_domdocument_t* self) {
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_base_url(struct _cef_domdocument_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -224,6 +251,8 @@ domdocument_get_base_url(struct _cef_domdocument_t* self) {
|
||||
cef_string_userfree_t CEF_CALLBACK
|
||||
domdocument_get_complete_url(struct _cef_domdocument_t* self,
|
||||
const cef_string_t* partialURL) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -264,6 +293,12 @@ CefDOMDocumentCppToC::CefDOMDocumentCppToC() {
|
||||
GetStruct()->get_complete_url = domdocument_get_complete_url;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMDocumentCppToC::~CefDOMDocumentCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefDOMDocument>
|
||||
CefCppToCRefCounted<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>::
|
||||
|
Reference in New Issue
Block a user