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 "components/drive/chromeos/file_system/get_file_for_saving_operation.h" | 5 #include "components/drive/chromeos/file_system/get_file_for_saving_operation.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 12 #include "base/sequenced_task_runner.h" |
12 #include "components/drive/chromeos/file_cache.h" | 13 #include "components/drive/chromeos/file_cache.h" |
13 #include "components/drive/chromeos/file_system/create_file_operation.h" | 14 #include "components/drive/chromeos/file_system/create_file_operation.h" |
14 #include "components/drive/chromeos/file_system/download_operation.h" | 15 #include "components/drive/chromeos/file_system/download_operation.h" |
15 #include "components/drive/chromeos/file_system/operation_delegate.h" | 16 #include "components/drive/chromeos/file_system/operation_delegate.h" |
16 #include "components/drive/event_logger.h" | 17 #include "components/drive/event_logger.h" |
17 #include "components/drive/file_write_watcher.h" | 18 #include "components/drive/file_write_watcher.h" |
18 #include "components/drive/job_scheduler.h" | 19 #include "components/drive/job_scheduler.h" |
19 | 20 |
20 namespace drive { | 21 namespace drive { |
21 namespace file_system { | 22 namespace file_system { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 blocking_task_runner_->PostTask( | 200 blocking_task_runner_->PostTask( |
200 FROM_HERE, | 201 FROM_HERE, |
201 base::Bind(base::IgnoreResult( | 202 base::Bind(base::IgnoreResult( |
202 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, | 203 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, |
203 base::Unretained(cache_), | 204 base::Unretained(cache_), |
204 0)))); | 205 0)))); |
205 } | 206 } |
206 | 207 |
207 } // namespace file_system | 208 } // namespace file_system |
208 } // namespace drive | 209 } // namespace drive |
OLD | NEW |