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_worker.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_worker.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "chrome/browser/drive/drive_service_interface.h" | |
11 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 13 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
15 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
" | 15 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
" |
17 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
18 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
19 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_
on_worker.h" | 18 #include "chrome/browser/sync_file_system/drive_backend/remote_change_processor_
on_worker.h" |
20 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" | 19 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" |
21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 20 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
22 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" | 21 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.
h" |
23 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 22 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
24 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h" | 23 #include "chrome/browser/sync_file_system/drive_backend/uninstall_app_task.h" |
25 #include "chrome/browser/sync_file_system/logger.h" | 24 #include "chrome/browser/sync_file_system/logger.h" |
26 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 25 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 26 #include "components/drive/service/drive_service_interface.h" |
27 #include "storage/common/fileapi/file_system_util.h" | 27 #include "storage/common/fileapi/file_system_util.h" |
28 | 28 |
29 namespace sync_file_system { | 29 namespace sync_file_system { |
30 | 30 |
31 class RemoteChangeProcessor; | 31 class RemoteChangeProcessor; |
32 | 32 |
33 namespace drive_backend { | 33 namespace drive_backend { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 return context_->GetDriveUploader(); | 715 return context_->GetDriveUploader(); |
716 } | 716 } |
717 | 717 |
718 MetadataDatabase* SyncWorker::GetMetadataDatabase() { | 718 MetadataDatabase* SyncWorker::GetMetadataDatabase() { |
719 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); | 719 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); |
720 return context_->GetMetadataDatabase(); | 720 return context_->GetMetadataDatabase(); |
721 } | 721 } |
722 | 722 |
723 } // namespace drive_backend | 723 } // namespace drive_backend |
724 } // namespace sync_file_system | 724 } // namespace sync_file_system |
OLD | NEW |