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,12 +9,13 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=2ea9fcfc1d97de23b310d45db666b9ee973ac837$
// $hash=81b96c346a7a258ed32d0a0d07ab4d021cb819f3$
//
#include "libcef_dll/ctocpp/dialog_handler_ctocpp.h"
#include "libcef_dll/cpptoc/browser_cpptoc.h"
#include "libcef_dll/cpptoc/file_dialog_callback_cpptoc.h"
#include "libcef_dll/shutdown_checker.h"
#include "libcef_dll/transfer_util.h"
// VIRTUAL METHODS - Body may be edited by hand.
@@ -28,6 +29,8 @@ bool CefDialogHandlerCToCpp::OnFileDialog(
const std::vector<CefString>& accept_filters,
int selected_accept_filter,
CefRefPtr<CefFileDialogCallback> callback) {
shutdown_checker::AssertNotShutdown();
cef_dialog_handler_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, on_file_dialog))
return false;
@@ -72,6 +75,12 @@ bool CefDialogHandlerCToCpp::OnFileDialog(
CefDialogHandlerCToCpp::CefDialogHandlerCToCpp() {}
// DESTRUCTOR - Do not edit by hand.
CefDialogHandlerCToCpp::~CefDialogHandlerCToCpp() {
shutdown_checker::AssertNotShutdown();
}
template <>
cef_dialog_handler_t*
CefCToCppRefCounted<CefDialogHandlerCToCpp,