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/file_system.h" | 5 #include "chrome/browser/chromeos/drive/file_system.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 scheduler_, | 292 scheduler_, |
293 resource_metadata_, | 293 resource_metadata_, |
294 cache_, | 294 cache_, |
295 temporary_file_directory_)); | 295 temporary_file_directory_)); |
296 remove_operation_.reset( | 296 remove_operation_.reset( |
297 new file_system::RemoveOperation(blocking_task_runner_.get(), | 297 new file_system::RemoveOperation(blocking_task_runner_.get(), |
298 observer, | 298 observer, |
299 resource_metadata_, | 299 resource_metadata_, |
300 cache_)); | 300 cache_)); |
301 touch_operation_.reset(new file_system::TouchOperation( | 301 touch_operation_.reset(new file_system::TouchOperation( |
302 blocking_task_runner_.get(), observer, scheduler_, resource_metadata_)); | 302 blocking_task_runner_.get(), observer, resource_metadata_)); |
303 truncate_operation_.reset( | 303 truncate_operation_.reset( |
304 new file_system::TruncateOperation(blocking_task_runner_.get(), | 304 new file_system::TruncateOperation(blocking_task_runner_.get(), |
305 observer, | 305 observer, |
306 scheduler_, | 306 scheduler_, |
307 resource_metadata_, | 307 resource_metadata_, |
308 cache_, | 308 cache_, |
309 temporary_file_directory_)); | 309 temporary_file_directory_)); |
310 download_operation_.reset( | 310 download_operation_.reset( |
311 new file_system::DownloadOperation(blocking_task_runner_.get(), | 311 new file_system::DownloadOperation(blocking_task_runner_.get(), |
312 observer, | 312 observer, |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 OpenMode open_mode, | 994 OpenMode open_mode, |
995 const std::string& mime_type, | 995 const std::string& mime_type, |
996 const OpenFileCallback& callback) { | 996 const OpenFileCallback& callback) { |
997 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 997 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
998 DCHECK(!callback.is_null()); | 998 DCHECK(!callback.is_null()); |
999 | 999 |
1000 open_file_operation_->OpenFile(file_path, open_mode, mime_type, callback); | 1000 open_file_operation_->OpenFile(file_path, open_mode, mime_type, callback); |
1001 } | 1001 } |
1002 | 1002 |
1003 } // namespace drive | 1003 } // namespace drive |
OLD | NEW |