OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/task.h" | 5 #include "base/task.h" |
6 | 6 |
7 Task::Task() { | 7 Task::Task() { |
8 } | 8 } |
9 | 9 |
10 Task::~Task() { | 10 Task::~Task() { |
(...skipping 16 matching lines...) Expand all Loading... | |
27 delete task_; | 27 delete task_; |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 Task* ScopedTaskRunner::Release() { | 31 Task* ScopedTaskRunner::Release() { |
32 Task* tmp = task_; | 32 Task* tmp = task_; |
33 task_ = NULL; | 33 task_ = NULL; |
34 return tmp; | 34 return tmp; |
35 } | 35 } |
36 | 36 |
37 namespace subtle { | |
darin (slow to review)
2011/07/07 21:54:01
nit: we usually have a new line of padding at the
awong
2011/07/08 00:38:40
Done.
| |
38 // Don't leak tasks by default. | |
39 bool TaskClosureAdapter::kTaskLeakingDefault = false; | |
40 } // namespace subtle | |
41 | |
37 } // namespace base | 42 } // namespace base |
OLD | NEW |