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,16 +9,19 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=cb1e9c4a5e0eb746ae681adea1c2a88e603f56a2$
// $hash=9f4094e7dc406dcf2be2c4b5f5968ad5362b377b$
//
#include "libcef_dll/ctocpp/process_message_ctocpp.h"
#include "libcef_dll/ctocpp/list_value_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
// STATIC METHODS - Body may be edited by hand.
NO_SANITIZE("cfi-icall")
CefRefPtr<CefProcessMessage> CefProcessMessage::Create(const CefString& name) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: name; type: string_byref_const
@@ -36,6 +39,8 @@ CefRefPtr<CefProcessMessage> CefProcessMessage::Create(const CefString& name) {
// VIRTUAL METHODS - Body may be edited by hand.
NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsValid() {
shutdown_checker::AssertNotShutdown();
cef_process_message_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_valid))
return false;
@@ -50,6 +55,8 @@ NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsValid() {
}
NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsReadOnly() {
shutdown_checker::AssertNotShutdown();
cef_process_message_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_read_only))
return false;
@@ -65,6 +72,8 @@ NO_SANITIZE("cfi-icall") bool CefProcessMessageCToCpp::IsReadOnly() {
NO_SANITIZE("cfi-icall")
CefRefPtr<CefProcessMessage> CefProcessMessageCToCpp::Copy() {
shutdown_checker::AssertNotShutdown();
cef_process_message_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, copy))
return NULL;
@@ -79,6 +88,8 @@ CefRefPtr<CefProcessMessage> CefProcessMessageCToCpp::Copy() {
}
NO_SANITIZE("cfi-icall") CefString CefProcessMessageCToCpp::GetName() {
shutdown_checker::AssertNotShutdown();
cef_process_message_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_name))
return CefString();
@@ -96,6 +107,8 @@ NO_SANITIZE("cfi-icall") CefString CefProcessMessageCToCpp::GetName() {
NO_SANITIZE("cfi-icall")
CefRefPtr<CefListValue> CefProcessMessageCToCpp::GetArgumentList() {
shutdown_checker::AssertNotShutdown();
cef_process_message_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, get_argument_list))
return NULL;
@@ -113,6 +126,12 @@ CefRefPtr<CefListValue> CefProcessMessageCToCpp::GetArgumentList() {
CefProcessMessageCToCpp::CefProcessMessageCToCpp() {}
// DESTRUCTOR - Do not edit by hand.
CefProcessMessageCToCpp::~CefProcessMessageCToCpp() {
shutdown_checker::AssertNotShutdown();
}
template <>
cef_process_message_t* CefCToCppRefCounted<
CefProcessMessageCToCpp,