OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
11 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
12 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" |
13 #include "chrome/browser/sync_file_system/sync_file_metadata.h" | 13 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
14 | 14 |
15 using fileapi::FileSystemURL; | 15 using storage::FileSystemURL; |
16 | 16 |
17 namespace sync_file_system { | 17 namespace sync_file_system { |
18 namespace drive_backend { | 18 namespace drive_backend { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class SyncTaskAdapter : public ExclusiveTask { | 22 class SyncTaskAdapter : public ExclusiveTask { |
23 public: | 23 public: |
24 explicit SyncTaskAdapter(const SyncTaskManager::Task& task) : task_(task) {} | 24 explicit SyncTaskAdapter(const SyncTaskManager::Task& task) : task_(task) {} |
25 virtual ~SyncTaskAdapter() {} | 25 virtual ~SyncTaskAdapter() {} |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 closure.Run(); | 395 closure.Run(); |
396 return; | 396 return; |
397 } | 397 } |
398 | 398 |
399 if (client_) | 399 if (client_) |
400 client_->MaybeScheduleNextTask(); | 400 client_->MaybeScheduleNextTask(); |
401 } | 401 } |
402 | 402 |
403 } // namespace drive_backend | 403 } // namespace drive_backend |
404 } // namespace sync_file_system | 404 } // namespace sync_file_system |
OLD | NEW |