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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/tuple.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TASK_H_ 5 #ifndef BASE_TASK_H_
6 #define BASE_TASK_H_ 6 #define BASE_TASK_H_
7 7
8 #include "base/non_thread_safe.h" 8 #include "base/non_thread_safe.h"
9 #include "base/raw_scoped_refptr_mismatch_checker.h" 9 #include "base/raw_scoped_refptr_mismatch_checker.h"
10 #include "base/tracked.h" 10 #include "base/tracked.h"
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 inline CancelableTask* NewRunnableFunction(Function function, 483 inline CancelableTask* NewRunnableFunction(Function function,
484 const A& a, const B& b, 484 const A& a, const B& b,
485 const C& c, const D& d, 485 const C& c, const D& d,
486 const E& e) { 486 const E& e) {
487 return new RunnableFunction<Function, Tuple5<A, B, C, D, E> >(function, 487 return new RunnableFunction<Function, Tuple5<A, B, C, D, E> >(function,
488 MakeTuple(a, b, 488 MakeTuple(a, b,
489 c, d, 489 c, d,
490 e)); 490 e));
491 } 491 }
492 492
493 template <class Function, class A, class B, class C, class D, class E,
494 class F>
495 inline CancelableTask* NewRunnableFunction(Function function,
496 const A& a, const B& b,
497 const C& c, const D& d,
498 const E& e, const F& f) {
499 return new RunnableFunction<Function, Tuple6<A, B, C, D, E, F> >(function,
500 MakeTuple(a, b, c, d, e, f));
501 }
502
503 template <class Function, class A, class B, class C, class D, class E,
504 class F, class G>
505 inline CancelableTask* NewRunnableFunction(Function function,
506 const A& a, const B& b,
507 const C& c, const D& d,
508 const E& e, const F& f,
509 const G& g) {
510 return new RunnableFunction<Function, Tuple7<A, B, C, D, E, F, G> >(function,
511 MakeTuple(a, b, c, d, e, f, g));
512 }
513
514 template <class Function, class A, class B, class C, class D, class E,
515 class F, class G, class H>
516 inline CancelableTask* NewRunnableFunction(Function function,
517 const A& a, const B& b,
518 const C& c, const D& d,
519 const E& e, const F& f,
520 const G& g, const H& h) {
521 return new RunnableFunction<Function, Tuple8<A, B, C, D, E, F, G, H> >(
522 function, MakeTuple(a, b, c, d, e, f, g, h));
523 }
524
493 #endif // BASE_TASK_H_ 525 #endif // BASE_TASK_H_
OLDNEW
« 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