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=5f023a0cff19ee1e700c3149139aa9daea3d36d4$
// $hash=d73a9cabfb1e5749e422dd6584024a7c9cff89d8$
//
#include "libcef_dll/cpptoc/run_context_menu_callback_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
namespace {
@ -22,6 +23,8 @@ void CEF_CALLBACK
run_context_menu_callback_cont(struct _cef_run_context_menu_callback_t* self,
int command_id,
cef_event_flags_t event_flags) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -34,6 +37,8 @@ run_context_menu_callback_cont(struct _cef_run_context_menu_callback_t* self,
void CEF_CALLBACK run_context_menu_callback_cancel(
struct _cef_run_context_menu_callback_t* self) {
shutdown_checker::AssertNotShutdown();
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -53,6 +58,12 @@ CefRunContextMenuCallbackCppToC::CefRunContextMenuCallbackCppToC() {
GetStruct()->cancel = run_context_menu_callback_cancel;
}
// DESTRUCTOR - Do not edit by hand.
CefRunContextMenuCallbackCppToC::~CefRunContextMenuCallbackCppToC() {
shutdown_checker::AssertNotShutdown();
}
template <>
CefRefPtr<CefRunContextMenuCallback>
CefCppToCRefCounted<CefRunContextMenuCallbackCppToC,