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

Unified Diff: base/bind.h

Issue 2386653002: Replace base::Callback with base::OnceCallback in base::PendingTask (Closed)
Patch Set: revert most of task_scheduler changes Created 4 years, 2 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/BUILD.gn ('k') | base/bind.cc » ('j') | base/debug/task_annotator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind.h
diff --git a/base/bind.h b/base/bind.h
index ec707a0618f288431e373ffe56b3813c409754a3..b4037351966bfc56320fcba45e67b5f1b5203cb5 100644
--- a/base/bind.h
+++ b/base/bind.h
@@ -81,6 +81,11 @@ Bind(Functor&& functor, Args&&... args) {
std::forward<Args>(args)...);
}
+// Converts a OnceClosure to a RepeatingClosure. It hits CHECK failure to run
+// the resulting RepeatingClosure more than once.
+BASE_EXPORT internal::RepeatingClosure UnsafeConvertOnceClosureToRepeating(
fdoray 2016/10/06 17:37:22 Do you plan to use OnceClosure instead of Closure
tzik 2016/10/13 05:58:04 Yes, here is a CL to do that, though it's a bit st
+ internal::OnceClosure cb);
+
} // namespace base
#endif // BASE_BIND_H_
« no previous file with comments | « base/BUILD.gn ('k') | base/bind.cc » ('j') | base/debug/task_annotator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698