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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 base::SequencedTaskRunner* blocking_task_runner, | 29 base::SequencedTaskRunner* blocking_task_runner, |
30 OperationObserver* observer, | 30 OperationObserver* observer, |
31 JobScheduler* scheduler, | 31 JobScheduler* scheduler, |
32 internal::ResourceMetadata* metadata, | 32 internal::ResourceMetadata* metadata, |
33 internal::FileCache* cache, | 33 internal::FileCache* cache, |
34 const base::FilePath& temporary_file_directory) | 34 const base::FilePath& temporary_file_directory) |
35 : blocking_task_runner_(blocking_task_runner), | 35 : blocking_task_runner_(blocking_task_runner), |
36 observer_(observer), | 36 observer_(observer), |
37 cache_(cache), | 37 cache_(cache), |
38 create_file_operation_(new CreateFileOperation( | 38 create_file_operation_(new CreateFileOperation( |
39 blocking_task_runner, observer, scheduler, metadata, cache)), | 39 blocking_task_runner, observer, metadata)), |
40 download_operation_(new DownloadOperation( | 40 download_operation_(new DownloadOperation( |
41 blocking_task_runner, observer, scheduler, | 41 blocking_task_runner, observer, scheduler, |
42 metadata, cache, temporary_file_directory)), | 42 metadata, cache, temporary_file_directory)), |
43 weak_ptr_factory_(this) { | 43 weak_ptr_factory_(this) { |
44 } | 44 } |
45 | 45 |
46 OpenFileOperation::~OpenFileOperation() { | 46 OpenFileOperation::~OpenFileOperation() { |
47 } | 47 } |
48 | 48 |
49 void OpenFileOperation::OpenFile(const base::FilePath& file_path, | 49 void OpenFileOperation::OpenFile(const base::FilePath& file_path, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 FROM_HERE, | 178 FROM_HERE, |
179 base::Bind(base::IgnoreResult( | 179 base::Bind(base::IgnoreResult( |
180 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, | 180 base::Bind(&internal::FileCache::FreeDiskSpaceIfNeededFor, |
181 base::Unretained(cache_), | 181 base::Unretained(cache_), |
182 0)))); | 182 0)))); |
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 } // namespace file_system | 186 } // namespace file_system |
187 } // namespace drive | 187 } // namespace drive |
OLD | NEW |