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=5ae62286e325193f309f0c7faef103cc3ff31ff1$
|
||||
// $hash=e3c8147d25d629b82d638becfcb0fd4dcbd82bba$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/run_file_dialog_callback_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
@@ -21,6 +22,8 @@ NO_SANITIZE("cfi-icall")
|
||||
void CefRunFileDialogCallbackCToCpp::OnFileDialogDismissed(
|
||||
int selected_accept_filter,
|
||||
const std::vector<CefString>& file_paths) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_run_file_dialog_callback_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, on_file_dialog_dismissed))
|
||||
return;
|
||||
@@ -52,6 +55,12 @@ void CefRunFileDialogCallbackCToCpp::OnFileDialogDismissed(
|
||||
|
||||
CefRunFileDialogCallbackCToCpp::CefRunFileDialogCallbackCToCpp() {}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefRunFileDialogCallbackCToCpp::~CefRunFileDialogCallbackCToCpp() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
cef_run_file_dialog_callback_t* CefCToCppRefCounted<
|
||||
CefRunFileDialogCallbackCToCpp,
|
||||
|
Reference in New Issue
Block a user