| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fileapi/fileapi_worker.h" | 5 #include "chrome/browser/chromeos/drive/fileapi/fileapi_worker.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 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" | |
| 14 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 16 #include "components/drive/chromeos/file_system_interface.h" | 16 #include "components/drive/chromeos/file_system_interface.h" |
| 17 #include "components/drive/drive.pb.h" | 17 #include "components/drive/drive.pb.h" |
| 18 #include "components/drive/file_errors.h" | 18 #include "components/drive/file_errors.h" |
| 19 #include "components/drive/resource_entry_conversion.h" | 19 #include "components/drive/resource_entry_conversion.h" |
| 20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 21 #include "storage/browser/fileapi/file_system_url.h" | 21 #include "storage/browser/fileapi/file_system_url.h" |
| 22 #include "storage/common/fileapi/directory_entry.h" | 22 #include "storage/common/fileapi/directory_entry.h" |
| 23 | 23 |
| 24 using content::BrowserThread; | 24 using content::BrowserThread; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 const StatusCallback& callback, | 361 const StatusCallback& callback, |
| 362 FileSystemInterface* file_system) { | 362 FileSystemInterface* file_system) { |
| 363 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 363 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 364 file_system->TouchFile(file_path, last_access_time, last_modified_time, | 364 file_system->TouchFile(file_path, last_access_time, last_modified_time, |
| 365 base::Bind(&RunStatusCallbackByFileError, callback)); | 365 base::Bind(&RunStatusCallbackByFileError, callback)); |
| 366 | 366 |
| 367 } | 367 } |
| 368 | 368 |
| 369 } // namespace fileapi_internal | 369 } // namespace fileapi_internal |
| 370 } // namespace drive | 370 } // namespace drive |
| OLD | NEW |