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=a9234f6868fedd9fa4b18da5966c40d9f5957ac1$
// $hash=984145166664059fa54299c0693e555210b0f867$
//
#include "libcef_dll/ctocpp/run_context_menu_callback_ctocpp.h"
#include "libcef_dll/shutdown_checker.h"
// VIRTUAL METHODS - Body may be edited by hand.
NO_SANITIZE("cfi-icall")
void CefRunContextMenuCallbackCToCpp::Continue(int command_id,
EventFlags event_flags) {
shutdown_checker::AssertNotShutdown();
cef_run_context_menu_callback_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, cont))
return;
@@ -30,6 +33,8 @@ void CefRunContextMenuCallbackCToCpp::Continue(int command_id,
}
NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Cancel() {
shutdown_checker::AssertNotShutdown();
cef_run_context_menu_callback_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, cancel))
return;
@@ -44,6 +49,12 @@ NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Cancel() {
CefRunContextMenuCallbackCToCpp::CefRunContextMenuCallbackCToCpp() {}
// DESTRUCTOR - Do not edit by hand.
CefRunContextMenuCallbackCToCpp::~CefRunContextMenuCallbackCToCpp() {
shutdown_checker::AssertNotShutdown();
}
template <>
cef_run_context_menu_callback_t* CefCToCppRefCounted<
CefRunContextMenuCallbackCToCpp,