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

Unified Diff: base/task.h

Issue 3012001: Move implementation from header to source. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: blank line Created 10 years, 5 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 142554601365c4509021b1129f268c981ae86a8e..660b4a44efb2a511236273f84a1d1a6fb1ecc7af 100644
--- a/base/task.h
+++ b/base/task.h
@@ -18,8 +18,8 @@
class Task : public tracked_objects::Tracked {
public:
- Task() {}
- virtual ~Task() {}
+ Task();
+ virtual ~Task();
// Tasks are automatically deleted after Run is called.
virtual void Run() = 0;
@@ -27,6 +27,9 @@ class Task : public tracked_objects::Tracked {
class CancelableTask : public Task {
public:
+ CancelableTask();
+ ~CancelableTask();
Evan Martin 2010/07/15 17:37:33 Why are these needed? Should this be virtual?
Elliot Glaysher 2010/07/15 18:08:10 Because a copy of the synthesized constructor/dest
+
// Not all tasks support cancellation.
virtual void Cancel() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698