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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/chromeos/drive/file_errors.h" | |
13 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 12 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 13 #include "chrome/browser/chromeos/drive/file_system_util.h" |
15 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 14 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
16 #include "components/drive/drive.pb.h" | 15 #include "components/drive/drive.pb.h" |
| 16 #include "components/drive/file_errors.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "storage/browser/fileapi/file_system_url.h" | 18 #include "storage/browser/fileapi/file_system_url.h" |
19 #include "storage/common/fileapi/directory_entry.h" | 19 #include "storage/common/fileapi/directory_entry.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace drive { | 23 namespace drive { |
24 namespace fileapi_internal { | 24 namespace fileapi_internal { |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 334 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 |