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

Unified Diff: base/task.h

Issue 2805091: Download code cleanup: (Closed)
Patch Set: rebased Created 10 years, 5 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/tuple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task.h
diff --git a/base/task.h b/base/task.h
index 64b10f3732ac727c2c5feaf810558d3303ba8d66..0cff5894b567d4f6f045eff8f7f96c50c7f3c28a 100644
--- a/base/task.h
+++ b/base/task.h
@@ -490,4 +490,36 @@ inline CancelableTask* NewRunnableFunction(Function function,
e));
}
+template <class Function, class A, class B, class C, class D, class E,
+ class F>
+inline CancelableTask* NewRunnableFunction(Function function,
+ const A& a, const B& b,
+ const C& c, const D& d,
+ const E& e, const F& f) {
+ return new RunnableFunction<Function, Tuple6<A, B, C, D, E, F> >(function,
+ MakeTuple(a, b, c, d, e, f));
+}
+
+template <class Function, class A, class B, class C, class D, class E,
+ class F, class G>
+inline CancelableTask* NewRunnableFunction(Function function,
+ const A& a, const B& b,
+ const C& c, const D& d,
+ const E& e, const F& f,
+ const G& g) {
+ return new RunnableFunction<Function, Tuple7<A, B, C, D, E, F, G> >(function,
+ MakeTuple(a, b, c, d, e, f, g));
+}
+
+template <class Function, class A, class B, class C, class D, class E,
+ class F, class G, class H>
+inline CancelableTask* NewRunnableFunction(Function function,
+ const A& a, const B& b,
+ const C& c, const D& d,
+ const E& e, const F& f,
+ const G& g, const H& h) {
+ return new RunnableFunction<Function, Tuple8<A, B, C, D, E, F, G, H> >(
+ function, MakeTuple(a, b, c, d, e, f, g, h));
+}
+
#endif // BASE_TASK_H_
« no previous file with comments | « no previous file | base/tuple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698