| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/dom_storage/dom_storage_task_runner.h" | 5 #include "webkit/dom_storage/dom_storage_task_runner.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "base/tracked_objects.h" |
| 10 | 11 |
| 11 namespace dom_storage { | 12 namespace dom_storage { |
| 12 | 13 |
| 13 // DomStorageTaskRunner | 14 // DomStorageTaskRunner |
| 14 | 15 |
| 15 DomStorageTaskRunner::DomStorageTaskRunner( | 16 DomStorageTaskRunner::DomStorageTaskRunner( |
| 16 base::MessageLoopProxy* message_loop) | 17 base::MessageLoopProxy* message_loop) |
| 17 : message_loop_(message_loop) { | 18 : message_loop_(message_loop) { |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 base::TimeDelta delay) { | 63 base::TimeDelta delay) { |
| 63 // Post a task to call this->PostTask() after the delay. | 64 // Post a task to call this->PostTask() after the delay. |
| 64 message_loop_->PostDelayedTask( | 65 message_loop_->PostDelayedTask( |
| 65 FROM_HERE, | 66 FROM_HERE, |
| 66 base::Bind(&DomStorageWorkerPoolTaskRunner::PostTask, this, | 67 base::Bind(&DomStorageWorkerPoolTaskRunner::PostTask, this, |
| 67 from_here, task), | 68 from_here, task), |
| 68 delay.InMilliseconds()); | 69 delay.InMilliseconds()); |
| 69 } | 70 } |
| 70 | 71 |
| 71 } // namespace dom_storage | 72 } // namespace dom_storage |
| OLD | NEW |