| 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/move_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/move_operation.h" |
| 6 | 6 |
| 7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
| 8 #include "chrome/browser/chromeos/drive/drive.pb.h" | |
| 9 #include "chrome/browser/chromeos/drive/file_change.h" | 8 #include "chrome/browser/chromeos/drive/file_change.h" |
| 10 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 9 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
| 11 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 10 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 12 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 11 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 12 #include "components/drive/drive.pb.h" |
| 13 | 13 |
| 14 namespace drive { | 14 namespace drive { |
| 15 namespace file_system { | 15 namespace file_system { |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Looks up ResourceEntry for source entry and the destination directory. | 18 // Looks up ResourceEntry for source entry and the destination directory. |
| 19 FileError UpdateLocalState(internal::ResourceMetadata* metadata, | 19 FileError UpdateLocalState(internal::ResourceMetadata* metadata, |
| 20 const base::FilePath& src_path, | 20 const base::FilePath& src_path, |
| 21 const base::FilePath& dest_path, | 21 const base::FilePath& dest_path, |
| 22 FileChange* changed_files, | 22 FileChange* changed_files, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Notify the change of directory. | 112 // Notify the change of directory. |
| 113 delegate_->OnFileChangedByOperation(*changed_files); | 113 delegate_->OnFileChangedByOperation(*changed_files); |
| 114 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), | 114 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), |
| 115 *local_id); | 115 *local_id); |
| 116 } | 116 } |
| 117 callback.Run(error); | 117 callback.Run(error); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace file_system | 120 } // namespace file_system |
| 121 } // namespace drive | 121 } // namespace drive |
| OLD | NEW |