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,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b74169ee8c5e71b8694165115c8d27a309ee8cfc$
|
||||
// $hash=b8d389ef550832084c478aa5fd6844f8cd09e3ef$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/extension_handler_cpptoc.h"
|
||||
@ -17,6 +17,7 @@
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/extension_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/get_extension_resource_callback_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -25,6 +26,8 @@ namespace {
|
||||
void CEF_CALLBACK extension_handler_on_extension_load_failed(
|
||||
struct _cef_extension_handler_t* self,
|
||||
cef_errorcode_t result) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -38,6 +41,8 @@ void CEF_CALLBACK extension_handler_on_extension_load_failed(
|
||||
void CEF_CALLBACK
|
||||
extension_handler_on_extension_loaded(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,6 +61,8 @@ extension_handler_on_extension_loaded(struct _cef_extension_handler_t* self,
|
||||
void CEF_CALLBACK
|
||||
extension_handler_on_extension_unloaded(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -77,6 +84,8 @@ int CEF_CALLBACK extension_handler_on_before_background_browser(
|
||||
const cef_string_t* url,
|
||||
cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -144,6 +153,8 @@ extension_handler_on_before_browser(struct _cef_extension_handler_t* self,
|
||||
cef_window_info_t* windowInfo,
|
||||
cef_client_t** client,
|
||||
struct _cef_browser_settings_t* settings) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -224,6 +235,8 @@ extension_handler_get_active_browser(struct _cef_extension_handler_t* self,
|
||||
cef_extension_t* extension,
|
||||
cef_browser_t* browser,
|
||||
int include_incognito) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -254,6 +267,8 @@ extension_handler_can_access_browser(struct _cef_extension_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
int include_incognito,
|
||||
cef_browser_t* target_browser) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -287,6 +302,8 @@ int CEF_CALLBACK extension_handler_get_extension_resource(
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* file,
|
||||
cef_get_extension_resource_callback_t* callback) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -336,6 +353,12 @@ CefExtensionHandlerCppToC::CefExtensionHandlerCppToC() {
|
||||
extension_handler_get_extension_resource;
|
||||
}
|
||||
|
||||
// DESTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefExtensionHandlerCppToC::~CefExtensionHandlerCppToC() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
}
|
||||
|
||||
template <>
|
||||
CefRefPtr<CefExtensionHandler> CefCppToCRefCounted<
|
||||
CefExtensionHandlerCppToC,
|
||||
|
Reference in New Issue
Block a user