| 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 "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 9 #include "chrome/browser/chromeos/drive/change_list_loader.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/operation_observer.h" | 13 #include "chrome/browser/chromeos/drive/file_system/operation_observer.h" |
| 14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 14 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 15 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 15 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 16 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 16 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 17 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" | 17 #include "chrome/browser/chromeos/drive/sync/entry_revert_performer.h" |
| 18 #include "chrome/browser/chromeos/drive/sync/remove_performer.h" | 18 #include "chrome/browser/chromeos/drive/sync/remove_performer.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "google_apis/drive/drive_api_parser.h" | 20 #include "google_apis/drive/drive_api_parser.h" |
| 21 #include "google_apis/drive/gdata_wapi_parser.h" | |
| 22 | 21 |
| 23 using content::BrowserThread; | 22 using content::BrowserThread; |
| 24 | 23 |
| 25 namespace drive { | 24 namespace drive { |
| 26 namespace internal { | 25 namespace internal { |
| 27 | 26 |
| 28 struct EntryUpdatePerformer::LocalState { | 27 struct EntryUpdatePerformer::LocalState { |
| 29 LocalState() : should_content_update(false) { | 28 LocalState() : should_content_update(false) { |
| 30 } | 29 } |
| 31 | 30 |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 FileError error) { | 397 FileError error) { |
| 399 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 398 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 400 DCHECK(!callback.is_null()); | 399 DCHECK(!callback.is_null()); |
| 401 | 400 |
| 402 observer_->OnFileChangedByOperation(*changed_files); | 401 observer_->OnFileChangedByOperation(*changed_files); |
| 403 callback.Run(error); | 402 callback.Run(error); |
| 404 } | 403 } |
| 405 | 404 |
| 406 } // namespace internal | 405 } // namespace internal |
| 407 } // namespace drive | 406 } // namespace drive |
| OLD | NEW |