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,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,
|
||||
|
Reference in New Issue
Block a user