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/remove_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/remove_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" | 8 #include "chrome/browser/chromeos/drive/drive.pb.h" |
9 #include "chrome/browser/chromeos/drive/file_cache.h" | 9 #include "chrome/browser/chromeos/drive/file_cache.h" |
10 #include "chrome/browser/chromeos/drive/file_change.h" | 10 #include "chrome/browser/chromeos/drive/file_change.h" |
11 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 11 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
12 #include "chrome/browser/chromeos/drive/file_system_util.h" | 12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
13 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 13 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
14 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 14 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
15 | 15 |
16 namespace drive { | 16 namespace drive { |
17 namespace file_system { | 17 namespace file_system { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Removes cache file and moves the metadata entry to the trash. | 21 // Removes cache file and moves the metadata entry to the trash. |
22 FileError UpdateLocalState(internal::ResourceMetadata* metadata, | 22 FileError UpdateLocalState(internal::ResourceMetadata* metadata, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), | 118 delegate_->OnEntryUpdatedByOperation(ClientContext(USER_INITIATED), |
119 *local_id); | 119 *local_id); |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 callback.Run(error); | 123 callback.Run(error); |
124 } | 124 } |
125 | 125 |
126 } // namespace file_system | 126 } // namespace file_system |
127 } // namespace drive | 127 } // namespace drive |
OLD | NEW |