Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 FileSystemType type, | 26 FileSystemType type, |
| 27 const FilePath& virtual_path) = 0; | 27 const FilePath& virtual_path) = 0; |
| 28 | 28 |
| 29 // Retrieves the root path for the given |origin_url| and |type|, and | 29 // Retrieves the root path for the given |origin_url| and |type|, and |
| 30 // calls the given |callback| with the root path and name. | 30 // calls the given |callback| with the root path and name. |
| 31 // If |create| is true this also creates the directory if it doesn't exist. | 31 // If |create| is true this also creates the directory if it doesn't exist. |
| 32 virtual void GetFileSystemRootPath( | 32 virtual void GetFileSystemRootPath( |
| 33 const GURL& origin_url, | 33 const GURL& origin_url, |
| 34 FileSystemType type, | 34 FileSystemType type, |
| 35 bool create, | 35 bool create, |
| 36 bool is_file_system, | |
| 37 const FilePath& virtual_path, | |
| 36 FileSystemPathManager::GetRootPathCallback* callback) = 0; | 38 FileSystemPathManager::GetRootPathCallback* callback) = 0; |
| 37 | 39 |
| 38 // Like GetFileSystemRootPath, but synchronous, and can be called only while | 40 // Like GetFileSystemRootPath, but synchronous, and can be called only while |
| 39 // running on the file thread. | 41 // running on the file thread. |
| 40 virtual FilePath GetFileSystemRootPathOnFileThread( | 42 virtual FilePath GetFileSystemRootPathOnFileThread( |
| 41 const GURL& origin_url, | 43 const GURL& origin_url, |
| 42 FileSystemType type, | 44 FileSystemType type, |
| 43 const FilePath& virtual_path, | 45 const FilePath& virtual_path, |
| 44 bool create) = 0; | 46 bool create) = 0; |
| 45 | 47 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 60 // Grant access to all external file system from extension identified with | 62 // Grant access to all external file system from extension identified with |
| 61 // |extension_id|. | 63 // |extension_id|. |
| 62 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0; | 64 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0; |
| 63 // Grants access to |virtual_path| from |origin_url|. | 65 // Grants access to |virtual_path| from |origin_url|. |
| 64 virtual void GrantFileAccessToExtension( | 66 virtual void GrantFileAccessToExtension( |
| 65 const std::string& extension_id, | 67 const std::string& extension_id, |
| 66 const FilePath& virtual_path) = 0; | 68 const FilePath& virtual_path) = 0; |
| 67 // Revoke file access from extension identified with |extension_id|. | 69 // Revoke file access from extension identified with |extension_id|. |
| 68 virtual void RevokeAccessForExtension( | 70 virtual void RevokeAccessForExtension( |
| 69 const std::string& extension_id) = 0; | 71 const std::string& extension_id) = 0; |
| 72 // Adds a new mount point. | |
| 73 virtual void AddMountPoint(FilePath mount_point) = 0; | |
| 74 // Removed a mount point. | |
|
ericu
2011/04/18 20:35:56
s/Removed/Removes/
zel
2011/04/18 20:51:12
Done.
| |
| 75 virtual void RemoveMountPoint(FilePath mount_point) = 0; | |
| 70 }; | 76 }; |
| 71 | 77 |
| 72 } // namespace fileapi | 78 } // namespace fileapi |
| 73 | 79 |
| 74 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ | 80 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ |
| 75 | 81 |
| OLD | NEW |