| 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/chromeos/drive/file_system/touch_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/touch_operation.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "chrome/browser/chromeos/drive/file_change.h" | |
| 12 #include "chrome/browser/chromeos/drive/file_errors.h" | |
| 13 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 11 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
| 14 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 12 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 15 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 13 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 14 #include "components/drive/file_change.h" |
| 15 #include "components/drive/file_errors.h" |
| 16 | 16 |
| 17 namespace drive { | 17 namespace drive { |
| 18 namespace file_system { | 18 namespace file_system { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Updates the timestamps of the entry specified by |file_path|. | 22 // Updates the timestamps of the entry specified by |file_path|. |
| 23 FileError UpdateLocalState(internal::ResourceMetadata* metadata, | 23 FileError UpdateLocalState(internal::ResourceMetadata* metadata, |
| 24 const base::FilePath& file_path, | 24 const base::FilePath& file_path, |
| 25 const base::Time& last_access_time, | 25 const base::Time& last_access_time, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 if (error == FILE_ERROR_OK) { | 87 if (error == FILE_ERROR_OK) { |
| 88 delegate_->OnFileChangedByOperation(changed_files); | 88 delegate_->OnFileChangedByOperation(changed_files); |
| 89 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), | 89 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), |
| 90 entry->local_id()); | 90 entry->local_id()); |
| 91 } | 91 } |
| 92 callback.Run(error); | 92 callback.Run(error); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace file_system | 95 } // namespace file_system |
| 96 } // namespace drive | 96 } // namespace drive |
| OLD | NEW |