| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Grants access to |virtual_path| from |origin_url|. | 63 // Grants access to |virtual_path| from |origin_url|. |
| 64 virtual void GrantFileAccessToExtension( | 64 virtual void GrantFileAccessToExtension( |
| 65 const std::string& extension_id, | 65 const std::string& extension_id, |
| 66 const FilePath& virtual_path) = 0; | 66 const FilePath& virtual_path) = 0; |
| 67 // Revoke file access from extension identified with |extension_id|. | 67 // Revoke file access from extension identified with |extension_id|. |
| 68 virtual void RevokeAccessForExtension( | 68 virtual void RevokeAccessForExtension( |
| 69 const std::string& extension_id) = 0; | 69 const std::string& extension_id) = 0; |
| 70 // Adds a new mount point. | 70 // Adds a new mount point. |
| 71 virtual void AddMountPoint(FilePath mount_point) = 0; | 71 virtual void AddMountPoint(FilePath mount_point) = 0; |
| 72 // Remove a mount point. | 72 // Remove a mount point. |
| 73 virtual void RemoveMountPoint(FilePath mount_point) = 0; | 73 virtual void RemoveMountPoint(FilePath mount_point) = 0; |
| 74 // Gets virtual path by known filesystem path. Returns false when filesystem |
| 75 // path is not exposed by this provider. |
| 76 virtual bool GetVirtualPath(const FilePath& filesystem_path, |
| 77 FilePath* virtual_path) = 0; |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 } // namespace fileapi | 80 } // namespace fileapi |
| 77 | 81 |
| 78 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ | 82 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ |
| 79 | 83 |
| OLD | NEW |