OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/drive/file_system/copy_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
10 #include "chrome/browser/chromeos/drive/drive.pb.h" | 10 #include "chrome/browser/chromeos/drive/drive.pb.h" |
11 #include "chrome/browser/chromeos/drive/file_cache.h" | 11 #include "chrome/browser/chromeos/drive/file_cache.h" |
12 #include "chrome/browser/chromeos/drive/file_change.h" | 12 #include "chrome/browser/chromeos/drive/file_change.h" |
13 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" | 13 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" |
14 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 14 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
16 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 16 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
18 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 18 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
19 #include "chrome/browser/drive/drive_api_util.h" | 19 #include "components/drive/drive_api_util.h" |
20 #include "google_apis/drive/drive_api_parser.h" | 20 #include "google_apis/drive/drive_api_parser.h" |
21 | 21 |
22 namespace drive { | 22 namespace drive { |
23 namespace file_system { | 23 namespace file_system { |
24 | 24 |
25 struct CopyOperation::CopyParams { | 25 struct CopyOperation::CopyParams { |
26 base::FilePath src_file_path; | 26 base::FilePath src_file_path; |
27 base::FilePath dest_file_path; | 27 base::FilePath dest_file_path; |
28 bool preserve_last_modified; | 28 bool preserve_last_modified; |
29 FileOperationCallback callback; | 29 FileOperationCallback callback; |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 delegate_->OnFileChangedByOperation(changed_file); | 662 delegate_->OnFileChangedByOperation(changed_file); |
663 // Syncing for copy should be done in background, so pass the BACKGROUND | 663 // Syncing for copy should be done in background, so pass the BACKGROUND |
664 // context. See: crbug.com/420278. | 664 // context. See: crbug.com/420278. |
665 delegate_->OnEntryUpdatedByOperation(ClientContext(BACKGROUND), *local_id); | 665 delegate_->OnEntryUpdatedByOperation(ClientContext(BACKGROUND), *local_id); |
666 } | 666 } |
667 callback.Run(error); | 667 callback.Run(error); |
668 } | 668 } |
669 | 669 |
670 } // namespace file_system | 670 } // namespace file_system |
671 } // namespace drive | 671 } // namespace drive |
OLD | NEW |