OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "webkit/browser/fileapi/timed_task_helper.h" | 5 #include "storage/browser/fileapi/timed_task_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 | 10 |
11 namespace storage { | 11 namespace storage { |
12 | 12 |
13 struct TimedTaskHelper::Tracker { | 13 struct TimedTaskHelper::Tracker { |
14 explicit Tracker(TimedTaskHelper* timer) : timer(timer) {} | 14 explicit Tracker(TimedTaskHelper* timer) : timer(timer) {} |
15 | 15 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 void TimedTaskHelper::PostDelayedTask(scoped_ptr<Tracker> tracker, | 84 void TimedTaskHelper::PostDelayedTask(scoped_ptr<Tracker> tracker, |
85 base::TimeDelta delay) { | 85 base::TimeDelta delay) { |
86 task_runner_->PostDelayedTask( | 86 task_runner_->PostDelayedTask( |
87 posted_from_, | 87 posted_from_, |
88 base::Bind(&TimedTaskHelper::Fired, base::Passed(&tracker)), | 88 base::Bind(&TimedTaskHelper::Fired, base::Passed(&tracker)), |
89 delay); | 89 delay); |
90 } | 90 } |
91 | 91 |
92 } // namespace storage | 92 } // namespace storage |
OLD | NEW |