| 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/browser/dom_storage/dom_storage_task_runner.h" | 5 #include "webkit/browser/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/message_loop_proxy.h" |
| 10 #include "base/tracked_objects.h" | 10 #include "base/tracked_objects.h" |
| 11 | 11 |
| 12 namespace dom_storage { | 12 namespace dom_storage { |
| 13 | 13 |
| 14 // DomStorageTaskRunner | 14 // DomStorageTaskRunner |
| 15 | 15 |
| 16 bool DomStorageTaskRunner::RunsTasksOnCurrentThread() const { | 16 bool DomStorageTaskRunner::RunsTasksOnCurrentThread() const { |
| 17 return IsRunningOnSequence(PRIMARY_SEQUENCE); | 17 return IsRunningOnSequence(PRIMARY_SEQUENCE); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 SequenceID sequence_id, | 98 SequenceID sequence_id, |
| 99 const base::Closure& task) { | 99 const base::Closure& task) { |
| 100 return message_loop_->PostTask(from_here, task); | 100 return message_loop_->PostTask(from_here, task); |
| 101 } | 101 } |
| 102 | 102 |
| 103 bool MockDomStorageTaskRunner::IsRunningOnSequence(SequenceID) const { | 103 bool MockDomStorageTaskRunner::IsRunningOnSequence(SequenceID) const { |
| 104 return message_loop_->RunsTasksOnCurrentThread(); | 104 return message_loop_->RunsTasksOnCurrentThread(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace dom_storage | 107 } // namespace dom_storage |
| OLD | NEW |