| 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 17 matching lines...) Expand all Loading... |
| 28 #include "webkit/fileapi/media/native_media_file_util.h" | 28 #include "webkit/fileapi/media/native_media_file_util.h" |
| 29 #include "webkit/fileapi/native_file_util.h" | 29 #include "webkit/fileapi/native_file_util.h" |
| 30 | 30 |
| 31 #if defined(SUPPORT_MEDIA_FILESYSTEM) | 31 #if defined(SUPPORT_MEDIA_FILESYSTEM) |
| 32 #include "webkit/fileapi/media/device_media_file_util.h" | 32 #include "webkit/fileapi/media/device_media_file_util.h" |
| 33 #include "webkit/fileapi/media/media_device_map_service.h" | 33 #include "webkit/fileapi/media/media_device_map_service.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 namespace fileapi { | 36 namespace fileapi { |
| 37 | 37 |
| 38 namespace { | |
| 39 | |
| 40 IsolatedContext* isolated_context() { | |
| 41 return IsolatedContext::GetInstance(); | |
| 42 } | |
| 43 | |
| 44 } // namespace | |
| 45 | |
| 46 IsolatedMountPointProvider::IsolatedMountPointProvider( | 38 IsolatedMountPointProvider::IsolatedMountPointProvider( |
| 47 const FilePath& profile_path) | 39 const FilePath& profile_path) |
| 48 : profile_path_(profile_path), | 40 : profile_path_(profile_path), |
| 49 media_path_filter_(new MediaPathFilter()), | 41 media_path_filter_(new MediaPathFilter()), |
| 50 isolated_file_util_(new IsolatedFileUtil()), | 42 isolated_file_util_(new IsolatedFileUtil()), |
| 51 dragged_file_util_(new DraggedFileUtil()), | 43 dragged_file_util_(new DraggedFileUtil()), |
| 52 native_media_file_util_(new NativeMediaFileUtil()) { | 44 native_media_file_util_(new NativeMediaFileUtil()) { |
| 53 #if defined(SUPPORT_MEDIA_FILESYSTEM) | 45 #if defined(SUPPORT_MEDIA_FILESYSTEM) |
| 54 // TODO(kmadhusu): Initialize |device_media_file_util_| in | 46 // TODO(kmadhusu): Initialize |device_media_file_util_| in |
| 55 // initialization list. | 47 // initialization list. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void IsolatedMountPointProvider::DeleteFileSystem( | 166 void IsolatedMountPointProvider::DeleteFileSystem( |
| 175 const GURL& origin_url, | 167 const GURL& origin_url, |
| 176 FileSystemType type, | 168 FileSystemType type, |
| 177 FileSystemContext* context, | 169 FileSystemContext* context, |
| 178 const DeleteFileSystemCallback& callback) { | 170 const DeleteFileSystemCallback& callback) { |
| 179 NOTREACHED(); | 171 NOTREACHED(); |
| 180 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); | 172 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); |
| 181 } | 173 } |
| 182 | 174 |
| 183 } // namespace fileapi | 175 } // namespace fileapi |
| OLD | NEW |