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/sync/entry_update_performer.h" | 5 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 11 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
12 #include "chrome/browser/chromeos/drive/drive.pb.h" | 12 #include "chrome/browser/chromeos/drive/drive.pb.h" |
13 #include "chrome/browser/chromeos/drive/file_cache.h" | 13 #include "chrome/browser/chromeos/drive/file_cache.h" |
14 #include "chrome/browser/chromeos/drive/file_change.h" | 14 #include "chrome/browser/chromeos/drive/file_change.h" |
15 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 15 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
16 #include "chrome/browser/chromeos/drive/file_system_util.h" | 16 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
17 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 17 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
18 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 18 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
19 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" | 19 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" |
20 #include "chrome/browser/chromeos/drive/sync/remove_performer.h" | 20 #include "chrome/browser/chromeos/drive/sync/remove_performer.h" |
21 #include "google_apis/drive/drive_api_parser.h" | 21 #include "google_apis/drive/drive_api_parser.h" |
22 | 22 |
23 namespace drive { | 23 namespace drive { |
24 namespace internal { | 24 namespace internal { |
25 | 25 |
26 struct EntryUpdatePerformer::LocalState { | 26 struct EntryUpdatePerformer::LocalState { |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 FileError error) { | 441 FileError error) { |
442 DCHECK(thread_checker_.CalledOnValidThread()); | 442 DCHECK(thread_checker_.CalledOnValidThread()); |
443 DCHECK(!callback.is_null()); | 443 DCHECK(!callback.is_null()); |
444 | 444 |
445 delegate_->OnFileChangedByOperation(*changed_files); | 445 delegate_->OnFileChangedByOperation(*changed_files); |
446 callback.Run(error); | 446 callback.Run(error); |
447 } | 447 } |
448 | 448 |
449 } // namespace internal | 449 } // namespace internal |
450 } // namespace drive | 450 } // namespace drive |
OLD | NEW |