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

Unified Diff: base/callback_internal.h

Issue 22877038: Add a CallbackRegistry class to base/ to manage callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Much clean up and removal of unneeded bits Created 7 years, 3 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 | « base/base.gypi ('k') | base/callback_list.h » ('j') | base/callback_list.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 5993824a5a2a28d1d7ccb643ed60fdf24d54c8be..cd00d74c89269e6aa78ac2124275f20a369eb88e 100644
--- a/base/callback_internal.h
+++ b/base/callback_internal.h
@@ -20,6 +20,8 @@ class ScopedVector;
namespace base {
namespace internal {
+class CallbackListImpl;
+
// BindStateBase is used to provide an opaque handle that the Callback
// class can use to represent a function object with bound arguments. It
// behaves as an existential type that is used by a corresponding
@@ -65,6 +67,9 @@ class BASE_EXPORT CallbackBase {
scoped_refptr<BindStateBase> bind_state_;
InvokeFuncStorage polymorphic_invoke_;
+
+ private:
+ friend class CallbackListImpl;
};
// This is a typetraits object that's used to take an argument type, and
« no previous file with comments | « base/base.gypi ('k') | base/callback_list.h » ('j') | base/callback_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698