| 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/sync_client.h" | 5 #include "chrome/browser/chromeos/drive/sync_client.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "chrome/browser/chromeos/drive/drive.pb.h" | |
| 12 #include "chrome/browser/chromeos/drive/file_cache.h" | 11 #include "chrome/browser/chromeos/drive/file_cache.h" |
| 13 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" | 12 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" |
| 14 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 13 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 14 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
| 16 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 15 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 17 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" | 16 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
| 17 #include "components/drive/drive.pb.h" |
| 18 #include "google_apis/drive/task_util.h" | 18 #include "google_apis/drive/task_util.h" |
| 19 | 19 |
| 20 namespace drive { | 20 namespace drive { |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 // The delay constant is used to delay processing a sync task. We should not | 25 // The delay constant is used to delay processing a sync task. We should not |
| 26 // process SyncTasks immediately for the following reasons: | 26 // process SyncTasks immediately for the following reasons: |
| 27 // | 27 // |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 base::PostTaskAndReplyWithResult( | 482 base::PostTaskAndReplyWithResult( |
| 483 blocking_task_runner_.get(), | 483 blocking_task_runner_.get(), |
| 484 FROM_HERE, | 484 FROM_HERE, |
| 485 base::Bind(&FileCache::Unpin, base::Unretained(cache_), local_id), | 485 base::Bind(&FileCache::Unpin, base::Unretained(cache_), local_id), |
| 486 base::Bind(&util::EmptyFileOperationCallback)); | 486 base::Bind(&util::EmptyFileOperationCallback)); |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 | 489 |
| 490 } // namespace internal | 490 } // namespace internal |
| 491 } // namespace drive | 491 } // namespace drive |
| OLD | NEW |