diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 00:33:48 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 00:33:48 +0000 |
commit | 86efbf154dedc6abf3ed6596d9180ce459054d11 (patch) | |
tree | e2d2c803d5d6e9d8b30c226cd087b56f98a557b2 /base | |
parent | 4c0af8d464192a005e2e592d54bad73927763ce2 (diff) | |
download | chromium_src-86efbf154dedc6abf3ed6596d9180ce459054d11.zip chromium_src-86efbf154dedc6abf3ed6596d9180ce459054d11.tar.gz chromium_src-86efbf154dedc6abf3ed6596d9180ce459054d11.tar.bz2 |
Various style fixes (indenting, captitalization, adding some comments).
Also removed a function that is no longer called.
BUG=None
TEST=Build works.
Review URL: http://codereview.chromium.org/3453006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/task.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/base/task.h b/base/task.h index 34b3009..e6ac33c 100644 --- a/base/task.h +++ b/base/task.h @@ -107,30 +107,30 @@ class ScopedRunnableMethodFactory { template <class Method, class A, class B, class C> inline CancelableTask* NewRunnableMethod(Method method, - const A& a, - const B& b, - const C& c) { + const A& a, + const B& b, + const C& c) { return new RunnableMethod<Method, Tuple3<A, B, C> >( weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c)); } template <class Method, class A, class B, class C, class D> inline CancelableTask* NewRunnableMethod(Method method, - const A& a, - const B& b, - const C& c, - const D& d) { + const A& a, + const B& b, + const C& c, + const D& d) { return new RunnableMethod<Method, Tuple4<A, B, C, D> >( weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d)); } template <class Method, class A, class B, class C, class D, class E> inline CancelableTask* NewRunnableMethod(Method method, - const A& a, - const B& b, - const C& c, - const D& d, - const E& e) { + const A& a, + const B& b, + const C& c, + const D& d, + const E& e) { return new RunnableMethod<Method, Tuple5<A, B, C, D, E> >( weak_factory_.GetWeakPtr(), method, MakeTuple(a, b, c, d, e)); } @@ -143,7 +143,8 @@ class ScopedRunnableMethodFactory { template <class Method, class Params> class RunnableMethod : public CancelableTask { public: - RunnableMethod(const base::WeakPtr<T>& obj, Method meth, + RunnableMethod(const base::WeakPtr<T>& obj, + Method meth, const Params& params) : obj_(obj), meth_(meth), @@ -187,6 +188,7 @@ class DeleteTask : public CancelableTask { virtual void Cancel() { obj_ = NULL; } + private: T* obj_; }; @@ -204,6 +206,7 @@ class ReleaseTask : public CancelableTask { virtual void Cancel() { obj_ = NULL; } + private: T* obj_; }; |