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=b3e7dd73edf957adb75d82ef517e242561212cc7$
|
||||
// $hash=b5a14bd3df9a4712d5cb68686bac8c4dfb3bfeba$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
#include "libcef_dll/transfer_util.h"
|
||||
|
||||
namespace {
|
||||
@ -23,6 +24,8 @@ void CEF_CALLBACK
|
||||
file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self,
|
||||
int selected_accept_filter,
|
||||
cef_string_list_t file_paths) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -45,6 +48,8 @@ file_dialog_callback_cont(struct _cef_file_dialog_callback_t* self,
|
||||
|
||||
void CEF_CALLBACK
|
||||
file_dialog_callback_cancel(struct _cef_file_dialog_callback_t* self) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,6 +69,12 @@ CefFileDialogCallbackCppToC::CefFileDialogCallbackCppToC() {
|
||||
GetStruct()->cancel = file_dialog_callback_cancel;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFileDialogCallbackCppToC::~CefFileDialogCallbackCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefFileDialogCallback> CefCppToCRefCounted<
|
||||
CefFileDialogCallbackCppToC,
|
||||
|
Reference in New Issue
Block a user