OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void GrantFileAccessToExtension( | 133 virtual void GrantFileAccessToExtension( |
134 const std::string& extension_id, | 134 const std::string& extension_id, |
135 const FilePath& virtual_path) = 0; | 135 const FilePath& virtual_path) = 0; |
136 // Revokes file access from extension identified with |extension_id|. | 136 // Revokes file access from extension identified with |extension_id|. |
137 virtual void RevokeAccessForExtension( | 137 virtual void RevokeAccessForExtension( |
138 const std::string& extension_id) = 0; | 138 const std::string& extension_id) = 0; |
139 // Checks if a given |mount_point| already exists. | 139 // Checks if a given |mount_point| already exists. |
140 virtual bool HasMountPoint(const FilePath& mount_point) = 0; | 140 virtual bool HasMountPoint(const FilePath& mount_point) = 0; |
141 // Adds a new local mount point. | 141 // Adds a new local mount point. |
142 virtual void AddLocalMountPoint(const FilePath& mount_point) = 0; | 142 virtual void AddLocalMountPoint(const FilePath& mount_point) = 0; |
| 143 // Adds a new local mount point that will be accessible only by extensions |
| 144 // that have been granted full acess for all external file systems. |
| 145 virtual void AddRestrictedLocalMountPoint(const FilePath& mount_point) = 0; |
143 // Adds a new remote mount point. | 146 // Adds a new remote mount point. |
144 virtual void AddRemoteMountPoint( | 147 virtual void AddRemoteMountPoint( |
145 const FilePath& mount_point, | 148 const FilePath& mount_point, |
146 RemoteFileSystemProxyInterface* remote_proxy) = 0; | 149 RemoteFileSystemProxyInterface* remote_proxy) = 0; |
147 // Removes a mount point. | 150 // Removes a mount point. |
148 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; | 151 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; |
149 // Gets virtual path by known filesystem path. Returns false when filesystem | 152 // Gets virtual path by known filesystem path. Returns false when filesystem |
150 // path is not exposed by this provider. | 153 // path is not exposed by this provider. |
151 virtual bool GetVirtualPath(const FilePath& file_system_path, | 154 virtual bool GetVirtualPath(const FilePath& file_system_path, |
152 FilePath* virtual_path) = 0; | 155 FilePath* virtual_path) = 0; |
153 }; | 156 }; |
154 | 157 |
155 } // namespace fileapi | 158 } // namespace fileapi |
156 | 159 |
157 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ | 160 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |