Chromium Code Reviews| Index: content/browser/fileapi/browser_file_system_helper.h |
| diff --git a/content/browser/fileapi/browser_file_system_helper.h b/content/browser/fileapi/browser_file_system_helper.h |
| index fe2fcfebea391503703eb9d8a5addd6a528468b0..83691394fdf7fbffe6436c15acb63461ae652b59 100644 |
| --- a/content/browser/fileapi/browser_file_system_helper.h |
| +++ b/content/browser/fileapi/browser_file_system_helper.h |
| @@ -11,6 +11,8 @@ |
| namespace fileapi { |
| class ExternalMountPoints; |
| +class FileSystemContext; |
| +class FileSystemURL; |
| } |
| namespace quota { |
| @@ -29,6 +31,20 @@ CreateFileSystemContext( |
| quota::SpecialStoragePolicy* special_storage_policy, |
| quota::QuotaManagerProxy* quota_manager_proxy); |
| +// Check whether a process has permission to access the file system URL. |
| +CONTENT_EXPORT bool CheckFilePermissionsForProcess( |
|
kinuko
2013/03/14 03:11:44
Can rename this to CheckFileSystemPermissionsForPr
qinmin
2013/03/14 19:24:03
Done.
|
| + fileapi::FileSystemContext* context, |
| + int process_id, |
| + const fileapi::FileSystemURL& url, |
| + int permissions, |
| + base::PlatformFileError* error); |
| + |
| +// Get the platform path from a file system URL. This needs to be called |
| +// on the FILE thread. |
| +CONTENT_EXPORT void SyncGetPlatformPath(fileapi::FileSystemContext* context, |
| + int process_id, |
| + const GURL& path, |
| + base::FilePath* platform_path); |
| } // namespace content |
| #endif // CONTENT_BROWSER_FILEAPI_BROWSER_FILE_SYSTEM_HELPER_H_ |