| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 return NULL; | 120 return NULL; |
| 121 } | 121 } |
| 122 | 122 |
| 123 FilePath IsolatedMountPointProvider::GetPathForPermissionsCheck( | 123 FilePath IsolatedMountPointProvider::GetPathForPermissionsCheck( |
| 124 const FilePath& virtual_path) const { | 124 const FilePath& virtual_path) const { |
| 125 // For isolated filesystems we only check per-filesystem permissions. | 125 // For isolated filesystems we only check per-filesystem permissions. |
| 126 return FilePath(); | 126 return FilePath(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 FileSystemOperationInterface* | 129 FileSystemOperation* IsolatedMountPointProvider::CreateFileSystemOperation( |
| 130 IsolatedMountPointProvider::CreateFileSystemOperation( | |
| 131 const FileSystemURL& url, | 130 const FileSystemURL& url, |
| 132 FileSystemContext* context) const { | 131 FileSystemContext* context) const { |
| 133 scoped_ptr<FileSystemOperationContext> operation_context( | 132 scoped_ptr<FileSystemOperationContext> operation_context( |
| 134 new FileSystemOperationContext(context)); | 133 new FileSystemOperationContext(context)); |
| 135 if (url.type() == kFileSystemTypeNativeMedia || | 134 if (url.type() == kFileSystemTypeNativeMedia || |
| 136 url.type() == kFileSystemTypeDeviceMedia) { | 135 url.type() == kFileSystemTypeDeviceMedia) { |
| 137 operation_context->set_media_path_filter(media_path_filter_.get()); | 136 operation_context->set_media_path_filter(media_path_filter_.get()); |
| 138 operation_context->set_task_runner( | 137 operation_context->set_task_runner( |
| 139 context->task_runners()->media_task_runner()); | 138 context->task_runners()->media_task_runner()); |
| 140 } | 139 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void IsolatedMountPointProvider::DeleteFileSystem( | 173 void IsolatedMountPointProvider::DeleteFileSystem( |
| 175 const GURL& origin_url, | 174 const GURL& origin_url, |
| 176 FileSystemType type, | 175 FileSystemType type, |
| 177 FileSystemContext* context, | 176 FileSystemContext* context, |
| 178 const DeleteFileSystemCallback& callback) { | 177 const DeleteFileSystemCallback& callback) { |
| 179 NOTREACHED(); | 178 NOTREACHED(); |
| 180 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 179 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
| 181 } | 180 } |
| 182 | 181 |
| 183 } // namespace fileapi | 182 } // namespace fileapi |
| OLD | NEW |