Index: base/task.h |
=================================================================== |
--- base/task.h (revision 86971) |
+++ base/task.h (working copy) |
@@ -546,24 +546,4 @@ |
function, MakeTuple(a, b, c, d, e, f, g, h)); |
} |
-namespace base { |
- |
-// ScopedTaskRunner is akin to scoped_ptr for Tasks. It ensures that the Task |
-// is executed and deleted no matter how the current scope exits. |
-class ScopedTaskRunner { |
- public: |
- // Takes ownership of the task. |
- explicit ScopedTaskRunner(Task* task); |
- ~ScopedTaskRunner(); |
- |
- Task* Release(); |
- |
- private: |
- Task* task_; |
- |
- DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedTaskRunner); |
-}; |
- |
-} // namespace base |
- |
#endif // BASE_TASK_H_ |