OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/local_to_remote_syncer.h
" | 5 #include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/task_runner_util.h" | 16 #include "base/task_runner_util.h" |
17 #include "chrome/browser/drive/drive_api_util.h" | |
18 #include "chrome/browser/drive/drive_service_interface.h" | |
19 #include "chrome/browser/drive/drive_uploader.h" | |
20 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" |
21 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 18 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
22 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" | 19 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
23 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" | 20 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" |
24 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 21 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
25 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 22 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
26 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 23 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
27 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" | 24 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" |
28 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" | 25 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" |
29 #include "chrome/browser/sync_file_system/logger.h" | 26 #include "chrome/browser/sync_file_system/logger.h" |
| 27 #include "components/drive/drive_api_util.h" |
| 28 #include "components/drive/drive_uploader.h" |
| 29 #include "components/drive/service/drive_service_interface.h" |
30 #include "google_apis/drive/drive_api_parser.h" | 30 #include "google_apis/drive/drive_api_parser.h" |
31 #include "net/base/mime_util.h" | 31 #include "net/base/mime_util.h" |
32 #include "storage/common/fileapi/file_system_util.h" | 32 #include "storage/common/fileapi/file_system_util.h" |
33 | 33 |
34 namespace sync_file_system { | 34 namespace sync_file_system { |
35 namespace drive_backend { | 35 namespace drive_backend { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 scoped_ptr<FileTracker> FindTrackerByID(MetadataDatabase* metadata_database, | 39 scoped_ptr<FileTracker> FindTrackerByID(MetadataDatabase* metadata_database, |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 set_used_network(true); | 759 set_used_network(true); |
760 return sync_context_->GetDriveUploader(); | 760 return sync_context_->GetDriveUploader(); |
761 } | 761 } |
762 | 762 |
763 MetadataDatabase* LocalToRemoteSyncer::metadata_database() { | 763 MetadataDatabase* LocalToRemoteSyncer::metadata_database() { |
764 return sync_context_->GetMetadataDatabase(); | 764 return sync_context_->GetMetadataDatabase(); |
765 } | 765 } |
766 | 766 |
767 } // namespace drive_backend | 767 } // namespace drive_backend |
768 } // namespace sync_file_system | 768 } // namespace sync_file_system |
OLD | NEW |