mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 70.0.3516.0 (#581409)
This commit is contained in:
@@ -35,6 +35,7 @@ class CefCToCppRefCounted : public BaseName {
|
||||
}
|
||||
bool Release() const;
|
||||
bool HasOneRef() const { return UnderlyingHasOneRef(); }
|
||||
bool HasAtLeastOneRef() const { return UnderlyingHasAtLeastOneRef(); }
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
// Simple tracking of allocated objects.
|
||||
@@ -99,6 +100,15 @@ class CefCToCppRefCounted : public BaseName {
|
||||
return base->has_one_ref(base) ? true : false;
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool UnderlyingHasAtLeastOneRef() const {
|
||||
cef_base_ref_counted_t* base =
|
||||
reinterpret_cast<cef_base_ref_counted_t*>(GetStruct());
|
||||
if (!base->has_one_ref)
|
||||
return false;
|
||||
return base->has_at_least_one_ref(base) ? true : false;
|
||||
}
|
||||
|
||||
CefRefCount ref_count_;
|
||||
|
||||
static CefWrapperType kWrapperType;
|
||||
|
Reference in New Issue
Block a user