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

Side by Side Diff: base/task.cc

Issue 7062013: Move media library AutoTaskRunner to base and rename ScopedTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
scherkus (not reviewing) 2011/05/26 02:57:16 copyright year for this + other files (or use comm
Wez 2011/05/26 18:48:21 Done.
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() {
11 } 11 }
12 12
13 CancelableTask::CancelableTask() { 13 CancelableTask::CancelableTask() {
14 } 14 }
15 15
16 CancelableTask::~CancelableTask() { 16 CancelableTask::~CancelableTask() {
17 } 17 }
18
19 ScopedTaskRunner::~ScopedTaskRunner() {
20 if (task_) {
21 task_->Run();
22 delete task_;
23 }
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698