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

Unified Diff: base/task.h

Issue 7672009: Lazy creating of background pages --enable-lazy-background-pages) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix broken test Created 9 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/task.h
diff --git a/base/task.h b/base/task.h
index 3ff06402e40b4bcf72cc72f47a2e602b7a1a2ec6..942f554df64a730445fd98569999c0aaa5b9a6e0 100644
--- a/base/task.h
+++ b/base/task.h
@@ -140,6 +140,20 @@ class ScopedRunnableMethodFactory {
weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d, e));
}
+ template <class Method, class A, class B, class C, class D, class E,
+ class F, class G>
+ inline CancelableTask* NewRunnableMethod(Method method,
+ const A& a,
+ const B& b,
+ const C& c,
+ const D& d,
+ const E& e,
+ const F& f,
+ const G& g) {
+ return new RunnableMethod<Method, Tuple7<A, B, C, D, E, F, G> >(
+ weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d, e, f, g));
+ }
+
void RevokeAll() { weak_factory_.InvalidateWeakPtrs(); }
bool empty() const { return !weak_factory_.HasWeakPtrs(); }
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | chrome/browser/extensions/extension_event_router.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698