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

Side by Side Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 11648027: Extract external file systems handling from isolated context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 #include "webkit/fileapi/isolated_mount_point_provider.h" 5 #include "webkit/fileapi/isolated_mount_point_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool IsolatedMountPointProvider::IsRestrictedFileName( 76 bool IsolatedMountPointProvider::IsRestrictedFileName(
77 const FilePath& filename) const { 77 const FilePath& filename) const {
78 // TODO(kinuko): We need to check platform-specific restricted file names 78 // TODO(kinuko): We need to check platform-specific restricted file names
79 // before we actually start allowing file creation in isolated file systems. 79 // before we actually start allowing file creation in isolated file systems.
80 return false; 80 return false;
81 } 81 }
82 82
83 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil( 83 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil(
84 FileSystemType type) { 84 FileSystemType type) {
85 switch (type) { 85 switch (type) {
86 case kFileSystemTypeNativeLocal: 86 case kFileSystemTypeIsolatedNativeLocal:
87 return isolated_file_util_.get(); 87 return isolated_file_util_.get();
88 case kFileSystemTypeDragged: 88 case kFileSystemTypeDragged:
89 return dragged_file_util_.get(); 89 return dragged_file_util_.get();
90 case kFileSystemTypeNativeMedia: 90 case kFileSystemTypeNativeMedia:
91 return native_media_file_util_.get(); 91 return native_media_file_util_.get();
92 case kFileSystemTypeDeviceMedia: 92 case kFileSystemTypeDeviceMedia:
93 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) 93 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
94 return device_media_file_util_.get(); 94 return device_media_file_util_.get();
95 #endif 95 #endif
96 96
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void IsolatedMountPointProvider::DeleteFileSystem( 153 void IsolatedMountPointProvider::DeleteFileSystem(
154 const GURL& origin_url, 154 const GURL& origin_url,
155 FileSystemType type, 155 FileSystemType type,
156 FileSystemContext* context, 156 FileSystemContext* context,
157 const DeleteFileSystemCallback& callback) { 157 const DeleteFileSystemCallback& callback) {
158 NOTREACHED(); 158 NOTREACHED();
159 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 159 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
160 } 160 }
161 161
162 } // namespace fileapi 162 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698