| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_UTIL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_UTIL_H_ |
| 7 |
| 8 #include "components/arc/common/file_system.mojom.h" |
| 9 #include "url/gurl.h" |
| 10 |
| 11 namespace arc { |
| 12 namespace file_system_util { |
| 13 |
| 14 // Utility which posts a task to run FileSystemInstance::GetFileSize. |
| 15 // This function must be called on the IO thread. |
| 16 void GetFileSizeOnIOThread( |
| 17 const GURL& arc_url, |
| 18 const mojom::FileSystemInstance::GetFileSizeCallback& callback); |
| 19 |
| 20 // Utility which posts a task to run FileSystemInstance::OpenFileToRead. |
| 21 // This function must be called on the IO thread. |
| 22 void OpenFileToReadOnIOThread( |
| 23 const GURL& arc_url, |
| 24 const mojom::FileSystemInstance::OpenFileToReadCallback& callback); |
| 25 |
| 26 } // namespace file_system_util |
| 27 } // namespace arc |
| 28 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_UTIL_H_ |
| OLD | NEW |