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

@@ -0,0 +1,19 @@
// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#ifndef CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_
#define CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_
#pragma once
namespace shutdown_checker {
// Check that CEF objects are not held at CefShutdown.
void AssertNotShutdown();
// Called from libcef_dll.cc and libcef_dll_wrapper.cc.
void SetIsShutdown();
} // namespace shutdown_checker
#endif // CEF_LIBCEF_DLL_SHUTDOWN_CHECKER_H_