| 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/remote_to_local_syncer.h
" | 5 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 DCHECK(!dirty_tracker_->synced_details().missing()); | 645 DCHECK(!dirty_tracker_->synced_details().missing()); |
| 646 DCHECK_EQ(FILE_KIND_FOLDER, dirty_tracker_->synced_details().file_kind()); | 646 DCHECK_EQ(FILE_KIND_FOLDER, dirty_tracker_->synced_details().file_kind()); |
| 647 DCHECK(dirty_tracker_->needs_folder_listing()); | 647 DCHECK(dirty_tracker_->needs_folder_listing()); |
| 648 | 648 |
| 649 DCHECK(remote_metadata_); | 649 DCHECK(remote_metadata_); |
| 650 DCHECK(remote_metadata_->has_details()); | 650 DCHECK(remote_metadata_->has_details()); |
| 651 DCHECK(!remote_metadata_->details().missing()); | 651 DCHECK(!remote_metadata_->details().missing()); |
| 652 | 652 |
| 653 // TODO(tzik): Replace this call with ChildList version. | 653 // TODO(tzik): Replace this call with ChildList version. |
| 654 drive_service()->GetFileListInDirectory( | 654 drive_service()->GetFileListInDirectory( |
| 655 dirty_tracker_->file_id(), | 655 dirty_tracker_->file_id(), "" /* team_drive_id */, |
| 656 base::Bind(&RemoteToLocalSyncer::DidListFolderContent, | 656 base::Bind(&RemoteToLocalSyncer::DidListFolderContent, |
| 657 weak_ptr_factory_.GetWeakPtr(), base::Passed(&token), | 657 weak_ptr_factory_.GetWeakPtr(), base::Passed(&token), |
| 658 base::Passed(base::WrapUnique(new FileIDList)))); | 658 base::Passed(base::WrapUnique(new FileIDList)))); |
| 659 } | 659 } |
| 660 | 660 |
| 661 void RemoteToLocalSyncer::DidListFolderContent( | 661 void RemoteToLocalSyncer::DidListFolderContent( |
| 662 std::unique_ptr<SyncTaskToken> token, | 662 std::unique_ptr<SyncTaskToken> token, |
| 663 std::unique_ptr<FileIDList> children, | 663 std::unique_ptr<FileIDList> children, |
| 664 google_apis::DriveApiErrorCode error, | 664 google_apis::DriveApiErrorCode error, |
| 665 std::unique_ptr<google_apis::FileList> file_list) { | 665 std::unique_ptr<google_apis::FileList> file_list) { |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 860 |
| 861 SyncStatusCallback RemoteToLocalSyncer::SyncCompletedCallback( | 861 SyncStatusCallback RemoteToLocalSyncer::SyncCompletedCallback( |
| 862 std::unique_ptr<SyncTaskToken> token) { | 862 std::unique_ptr<SyncTaskToken> token) { |
| 863 return base::Bind(&RemoteToLocalSyncer::SyncCompleted, | 863 return base::Bind(&RemoteToLocalSyncer::SyncCompleted, |
| 864 weak_ptr_factory_.GetWeakPtr(), | 864 weak_ptr_factory_.GetWeakPtr(), |
| 865 base::Passed(&token)); | 865 base::Passed(&token)); |
| 866 } | 866 } |
| 867 | 867 |
| 868 } // namespace drive_backend | 868 } // namespace drive_backend |
| 869 } // namespace sync_file_system | 869 } // namespace sync_file_system |
| OLD | NEW |