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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 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
Index: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index 3dc57acb17c260a128d7ba93c41d40578ee82450..ddbff29ac1a65239f2d61ce81fa91bae9c16f829 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -55,6 +55,23 @@ IsolatedMountPointProvider::IsolatedMountPointProvider(
IsolatedMountPointProvider::~IsolatedMountPointProvider() {
}
+bool IsolatedMountPointProvider::CanHandleType(FileSystemType type) const {
+ switch (type) {
+ case kFileSystemTypeIsolated:
+ case kFileSystemTypeDragged:
+ case kFileSystemTypeNativeMedia:
+ case kFileSystemTypeDeviceMedia:
+ return true;
+#if !defined(OS_CHROMEOS)
+ case kFileSystemTypeNativeLocal:
+ case kFileSystemTypeNativeForPlatformApp:
+ return true;
+#endif
+ default:
+ return false;
+ }
+}
+
void IsolatedMountPointProvider::ValidateFileSystemRoot(
const GURL& origin_url,
FileSystemType type,
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.h ('k') | webkit/fileapi/local_file_system_cross_operation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698