Chromium Code Reviews| Index: chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h |
| diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3ca8e9f324460e38bcb526ae202dd5f4fd5392a5 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ |
| +#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ |
| + |
| +#include "components/arc/common/file_system.mojom.h" |
| +#include "url/gurl.h" |
|
Yusuke Sato
2016/11/18 19:21:05
nit: class GURL;
Shuhei Takahashi
2016/11/21 11:06:43
Done.
|
| + |
| +namespace arc { |
| +namespace file_system_instance_util { |
| + |
| +// Utility which posts a task to run FileSystemInstance::GetFileSize. |
| +// This function must be called on the IO thread. |
| +void GetFileSizeOnIOThread( |
| + const GURL& arc_url, |
| + const mojom::FileSystemInstance::GetFileSizeCallback& callback); |
| + |
| +// Utility which posts a task to run FileSystemInstance::OpenFileToRead. |
| +// This function must be called on the IO thread. |
| +void OpenFileToReadOnIOThread( |
| + const GURL& arc_url, |
| + const mojom::FileSystemInstance::OpenFileToReadCallback& callback); |
| + |
| +} // namespace file_system_instance_util |
| +} // namespace arc |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_ |