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=b4bb26e2027b1b031397ecb2d76df3c789d303ac$
|
||||
// $hash=ca1390d8a0125af46f5b4ffae3359ee16ad0e5a9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -22,6 +23,8 @@ int CEF_CALLBACK resource_bundle_handler_get_localized_string(
|
||||
struct _cef_resource_bundle_handler_t* self,
|
||||
int string_id,
|
||||
cef_string_t* string) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -48,6 +51,8 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource(
|
||||
int resource_id,
|
||||
void** data,
|
||||
size_t* data_size) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -88,6 +93,8 @@ int CEF_CALLBACK resource_bundle_handler_get_data_resource_for_scale(
|
||||
cef_scale_factor_t scale_factor,
|
||||
void** data,
|
||||
size_t* data_size) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -135,6 +142,12 @@ CefResourceBundleHandlerCppToC::CefResourceBundleHandlerCppToC() {
|
||||
resource_bundle_handler_get_data_resource_for_scale;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefResourceBundleHandlerCppToC::~CefResourceBundleHandlerCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefResourceBundleHandler> CefCppToCRefCounted<
|
||||
CefResourceBundleHandlerCppToC,
|
||||
|
Reference in New Issue
Block a user