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

Unified Diff: webkit/fileapi/file_system_path_manager.h

Issue 6810037: File API changes needed for safely passing user selected file entities from the file browser comp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/fileapi/file_system_operation.cc ('k') | webkit/fileapi/file_system_path_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_path_manager.h
===================================================================
--- webkit/fileapi/file_system_path_manager.h (revision 81835)
+++ webkit/fileapi/file_system_path_manager.h (working copy)
@@ -20,7 +20,7 @@
namespace fileapi {
-class FileSystemMountPointProvider;
+class ExternalFileSystemMountPointProvider;
class SandboxMountPointProvider;
// TODO(kinuko): Probably this module must be called FileSystemPathUtil
@@ -81,13 +81,19 @@
bool IsRestrictedFileName(FileSystemType type,
const FilePath& filename);
- // Checks if an origin has access to a particular filesystem type.
- bool IsAllowedFileSystemType(GURL origin, FileSystemType type);
+ // Checks if an origin has access to a particular filesystem type and
+ // file element represented by |virtual_path|.
+ bool IsAccessAllowed(const GURL& origin, FileSystemType type,
+ const FilePath& virtual_path);
SandboxMountPointProvider* sandbox_provider() const {
return sandbox_provider_.get();
}
+ ExternalFileSystemMountPointProvider* external_provider() const {
+ return external_provider_.get();
+ }
+
bool is_incognito() const {
return is_incognito_;
}
@@ -96,7 +102,7 @@
const bool is_incognito_;
const bool allow_file_access_from_files_;
scoped_ptr<SandboxMountPointProvider> sandbox_provider_;
- scoped_ptr<FileSystemMountPointProvider> local_provider_;
+ scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_;
DISALLOW_COPY_AND_ASSIGN(FileSystemPathManager);
};
« no previous file with comments | « webkit/fileapi/file_system_operation.cc ('k') | webkit/fileapi/file_system_path_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698