| 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 #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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool IsolatedMountPointProvider::IsRestrictedFileName( | 94 bool IsolatedMountPointProvider::IsRestrictedFileName( |
| 95 const FilePath& filename) const { | 95 const FilePath& filename) const { |
| 96 // TODO(kinuko): We need to check platform-specific restricted file names | 96 // TODO(kinuko): We need to check platform-specific restricted file names |
| 97 // before we actually start allowing file creation in isolated file systems. | 97 // before we actually start allowing file creation in isolated file systems. |
| 98 return false; | 98 return false; |
| 99 } | 99 } |
| 100 | 100 |
| 101 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil( | 101 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil( |
| 102 FileSystemType type) { | 102 FileSystemType type) { |
| 103 switch (type) { | 103 switch (type) { |
| 104 case kFileSystemTypeIsolated: | |
| 105 case kFileSystemTypeNativeLocal: | 104 case kFileSystemTypeNativeLocal: |
| 106 return isolated_file_util_.get(); | 105 return isolated_file_util_.get(); |
| 107 case kFileSystemTypeDragged: | 106 case kFileSystemTypeDragged: |
| 108 return dragged_file_util_.get(); | 107 return dragged_file_util_.get(); |
| 109 case kFileSystemTypeNativeMedia: | 108 case kFileSystemTypeNativeMedia: |
| 110 return native_media_file_util_.get(); | 109 return native_media_file_util_.get(); |
| 111 case kFileSystemTypeDeviceMedia: | 110 case kFileSystemTypeDeviceMedia: |
| 112 #if defined(SUPPORT_MEDIA_FILESYSTEM) | 111 #if defined(SUPPORT_MEDIA_FILESYSTEM) |
| 113 return device_media_file_util_.get(); | 112 return device_media_file_util_.get(); |
| 114 #endif | 113 #endif |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void IsolatedMountPointProvider::DeleteFileSystem( | 171 void IsolatedMountPointProvider::DeleteFileSystem( |
| 173 const GURL& origin_url, | 172 const GURL& origin_url, |
| 174 FileSystemType type, | 173 FileSystemType type, |
| 175 FileSystemContext* context, | 174 FileSystemContext* context, |
| 176 const DeleteFileSystemCallback& callback) { | 175 const DeleteFileSystemCallback& callback) { |
| 177 NOTREACHED(); | 176 NOTREACHED(); |
| 178 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 177 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
| 179 } | 178 } |
| 180 | 179 |
| 181 } // namespace fileapi | 180 } // namespace fileapi |
| OLD | NEW |