| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/location.h" | 6 #include "base/location.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/queue.h" | 10 #include "chrome/browser/chromeos/file_system_provider/queue.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 namespace file_system_provider { | 13 namespace file_system_provider { |
| 14 | 14 |
| 15 Queue::Task::Task() : token(0) { | 15 Queue::Task::Task() : token(0) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 Queue::Task::Task(size_t token, const AbortableCallback& callback) | 18 Queue::Task::Task(size_t token, const AbortableCallback& callback) |
| 19 : token(token), callback(callback) { | 19 : token(token), callback(callback) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 return; | 98 return; |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 // The task is already removed, marked as completed or aborted. | 102 // The task is already removed, marked as completed or aborted. |
| 103 NOTREACHED(); | 103 NOTREACHED(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace file_system_provider | 106 } // namespace file_system_provider |
| 107 } // namespace chromeos | 107 } // namespace chromeos |
| OLD | NEW |