Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2395)

Unified Diff: base/callback_internal.h

Issue 2723423002: Start BindStateBase ref count from 1 instead of 0 (Closed)
Patch Set: +comment. +DCHECK. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/callback_internal.cc » ('j') | base/memory/ref_counted.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_internal.h
diff --git a/base/callback_internal.h b/base/callback_internal.h
index f7501f96c5d737f0a0be70590743c45e6b05329a..2a873d9bedc55bb1b68cdfbd7e61e34bafb46e2c 100644
--- a/base/callback_internal.h
+++ b/base/callback_internal.h
@@ -33,6 +33,7 @@ class CallbackBase;
class BASE_EXPORT BindStateBase {
public:
using InvokeFuncStorage = void(*)();
+ bool HasOneRef() const;
protected:
BindStateBase(InvokeFuncStorage polymorphic_invoke,
« no previous file with comments | « no previous file | base/callback_internal.cc » ('j') | base/memory/ref_counted.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698