Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: webkit/fileapi/file_system_mount_point_provider.h

Issue 11648027: Extract external file systems handling from isolated context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_url.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // |extension_id|. 134 // |extension_id|.
135 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0; 135 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0;
136 // Grants access to |virtual_path| from |origin_url|. 136 // Grants access to |virtual_path| from |origin_url|.
137 virtual void GrantFileAccessToExtension( 137 virtual void GrantFileAccessToExtension(
138 const std::string& extension_id, 138 const std::string& extension_id,
139 const FilePath& virtual_path) = 0; 139 const FilePath& virtual_path) = 0;
140 // Revokes file access from extension identified with |extension_id|. 140 // Revokes file access from extension identified with |extension_id|.
141 virtual void RevokeAccessForExtension( 141 virtual void RevokeAccessForExtension(
142 const std::string& extension_id) = 0; 142 const std::string& extension_id) = 0;
143 // Checks if a given |mount_point| already exists. 143 // Checks if a given |mount_point| already exists.
144 virtual bool HasMountPoint(const FilePath& mount_point) = 0; 144 virtual bool HasMountPoint(const FilePath& mount_point) const = 0;
145 // Adds a new local mount point. 145 // Adds a new local mount point.
146 virtual void AddLocalMountPoint(const FilePath& mount_point) = 0; 146 virtual bool AddLocalMountPoint(const FilePath& mount_point) = 0;
147 // Adds a new local mount point that will be accessible only by extensions 147 // Adds a new local mount point that will be accessible only by extensions
148 // that have been granted full acess for all external file systems. 148 // that have been granted full acess for all external file systems.
149 virtual void AddRestrictedLocalMountPoint(const FilePath& mount_point) = 0; 149 virtual bool AddRestrictedLocalMountPoint(const FilePath& mount_point) = 0;
150 // Adds a new remote mount point. 150 // Adds a new remote mount point.
151 virtual void AddRemoteMountPoint( 151 virtual bool AddRemoteMountPoint(
152 const FilePath& mount_point, 152 const FilePath& mount_point,
153 RemoteFileSystemProxyInterface* remote_proxy) = 0; 153 RemoteFileSystemProxyInterface* remote_proxy) = 0;
154 // Removes a mount point. 154 // Removes a mount point.
155 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; 155 virtual void RemoveMountPoint(const FilePath& mount_point) = 0;
156 // Gets virtual path by known filesystem path. Returns false when filesystem 156 // Gets virtual path by known filesystem path. Returns false when filesystem
157 // path is not exposed by this provider. 157 // path is not exposed by this provider.
158 virtual bool GetVirtualPath(const FilePath& file_system_path, 158 virtual bool GetVirtualPath(const FilePath& file_system_path,
159 FilePath* virtual_path) = 0; 159 FilePath* virtual_path) = 0;
160 }; 160 };
161 161
162 } // namespace fileapi 162 } // namespace fileapi
163 163
164 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 164 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698