Home | History | Annotate | Download | only in base

Lines Matching refs:Method

89   template <class Method>
90 inline CancelableTask* NewRunnableMethod(Method method) {
91 return new RunnableMethod<Method, Tuple0>(
92 weak_factory_.GetWeakPtr(), method, MakeTuple());
95 template <class Method, class A>
96 inline CancelableTask* NewRunnableMethod(Method method, const A& a) {
97 return new RunnableMethod<Method, Tuple1<A> >(
98 weak_factory_.GetWeakPtr(), method, MakeTuple(a));
101 template <class Method, class A, class B>
102 inline CancelableTask* NewRunnableMethod(Method method, const A& a,
104 return new RunnableMethod<Method, Tuple2<A, B> >(
105 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b));
108 template <class Method, class A, class B, class C>
109 inline CancelableTask* NewRunnableMethod(Method method,
113 return new RunnableMethod<Method, Tuple3<A, B, C> >(
114 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c));
117 template <class Method, class A, class B, class C, class D>
118 inline CancelableTask* NewRunnableMethod(Method method,
123 return new RunnableMethod<Method, Tuple4<A, B, C, D> >(
124 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d));
127 template <class Method, class A, class B, class C, class D, class E>
128 inline CancelableTask* NewRunnableMethod(Method method,
134 return new RunnableMethod<Method, Tuple5<A, B, C, D, E> >(
135 weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d, e));
143 template <class Method, class Params>
147 Method meth,
168 Method meth_;
247 // isn't safe since the method can be invoked before the constructor
299 // Method/Function - the signature of a pointer to the method or function you
301 // Param - the parameter(s) to the method, possibly packed as a Tuple
302 // A - the first parameter (if any) to the method
303 // B - the second parameter (if any) to the method
305 // Put these all together and you get an object that can call a method whose
310 // PostTask(FROM_HERE, NewRunnableMethod(object, &Object::method[, a[, b]])
315 template <class T, class Method, class Params>
318 RunnableMethod(T* obj, Method meth, const Params& params)
348 Method meth_;
353 template <class T, class Method>
354 inline CancelableTask* NewRunnableMethod(T* object, Method method) {
355 return new RunnableMethod<T, Method, Tuple0>(object, method, MakeTuple());
358 template <class T, class Method, class A>
359 inline CancelableTask* NewRunnableMethod(T* object, Method method, const A& a) {
360 return new RunnableMethod<T, Method, Tuple1<A> >(object,
361 method,
365 template <class T, class Method, class A, class B>
366 inline CancelableTask* NewRunnableMethod(T* object, Method method,
368 return new RunnableMethod<T, Method, Tuple2<A, B> >(object, method,
372 template <class T, class Method, class A, class B, class C>
373 inline CancelableTask* NewRunnableMethod(T* object, Method method,
375 return new RunnableMethod<T, Method, Tuple3<A, B, C> >(object, method,
379 template <class T, class Method, class A, class B, class C, class D>
380 inline CancelableTask* NewRunnableMethod(T* object, Method method,
383 return new RunnableMethod<T, Method, Tuple4<A, B, C, D> >(object, method,
388 template <class T, class Method, class A, class B, class C, class D, class E>
389 inline CancelableTask* NewRunnableMethod(T* object, Method method,
393 Method,
395 method,
399 template <class T, class Method, class A, class B, class C, class D, class E,
401 inline CancelableTask* NewRunnableMethod(T* object, Method method,
406 Method,
408 method,
413 template <class T, class Method, class A, class B, class C, class D, class E,
415 inline CancelableTask* NewRunnableMethod(T* object, Method method,
420 Method,
422 method,
427 template <class T, class Method, class A, class B, class C, class D, class E,
429 inline CancelableTask* NewRunnableMethod(T* object, Method method,
434 Method,
436 method,