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

Unified Diff: base/callback_internal.h

Issue 2042223002: Introduce OnceClosure and BindOnce (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 4 years, 4 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
Index: base/callback_internal.h
diff --git a/base/callback_internal.h b/base/callback_internal.h
index 0fe0b2d9e198716690365dc8d6a4c82508a79188..e3745097eb68dc1c1a8f7c053aca5c1a71491855 100644
--- a/base/callback_internal.h
+++ b/base/callback_internal.h
@@ -62,6 +62,9 @@ class BASE_EXPORT CallbackBase<CopyMode::MoveOnly> {
CallbackBase(CallbackBase&& c);
CallbackBase& operator=(CallbackBase&& c);
+ explicit CallbackBase(const CallbackBase<CopyMode::Copyable>& c);
+ CallbackBase& operator=(const CallbackBase<CopyMode::Copyable>& c);
+
// Returns true if Callback is null (doesn't refer to anything).
bool is_null() const { return bind_state_.get() == NULL; }
explicit operator bool() const { return !is_null(); }

Powered by Google App Engine
This is Rietveld 408576698