| 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/open_file_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/open_file_operation.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 14 #include "chrome/browser/chromeos/drive/drive.pb.h" | |
| 15 #include "chrome/browser/chromeos/drive/file_cache.h" | 14 #include "chrome/browser/chromeos/drive/file_cache.h" |
| 16 #include "chrome/browser/chromeos/drive/file_errors.h" | 15 #include "chrome/browser/chromeos/drive/file_errors.h" |
| 17 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" | 16 #include "chrome/browser/chromeos/drive/file_system/create_file_operation.h" |
| 18 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" | 17 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" |
| 19 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 18 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
| 20 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 19 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
| 20 #include "components/drive/drive.pb.h" |
| 21 | 21 |
| 22 namespace drive { | 22 namespace drive { |
| 23 namespace file_system { | 23 namespace file_system { |
| 24 | 24 |
| 25 OpenFileOperation::OpenFileOperation( | 25 OpenFileOperation::OpenFileOperation( |
| 26 base::SequencedTaskRunner* blocking_task_runner, | 26 base::SequencedTaskRunner* blocking_task_runner, |
| 27 OperationDelegate* delegate, | 27 OperationDelegate* delegate, |
| 28 JobScheduler* scheduler, | 28 JobScheduler* scheduler, |
| 29 internal::ResourceMetadata* metadata, | 29 internal::ResourceMetadata* metadata, |
| 30 internal::FileCache* cache, | 30 internal::FileCache* cache, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 FROM_HERE, | 176 FROM_HERE, |
| 177 base::Bind(base::IgnoreResult( | 177 base::Bind(base::IgnoreResult( |
| 178 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, | 178 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, |
| 179 base::Unretained(cache_), | 179 base::Unretained(cache_), |
| 180 0)))); | 180 0)))); |
| 181 } | 181 } |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace file_system | 184 } // namespace file_system |
| 185 } // namespace drive | 185 } // namespace drive |
| OLD | NEW |