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