| 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 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "webkit/fileapi/file_system_mount_point_provider.h" | 11 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 12 | 12 |
| 13 namespace fileapi { | 13 namespace fileapi { |
| 14 | 14 |
| 15 class IsolatedContext; | 15 class IsolatedContext; |
| 16 class IsolatedFileUtil; |
| 16 | 17 |
| 17 class IsolatedMountPointProvider : public FileSystemMountPointProvider { | 18 class IsolatedMountPointProvider : public FileSystemMountPointProvider { |
| 18 public: | 19 public: |
| 19 typedef FileSystemMountPointProvider::ValidateFileSystemCallback | 20 typedef FileSystemMountPointProvider::ValidateFileSystemCallback |
| 20 ValidateFileSystemCallback; | 21 ValidateFileSystemCallback; |
| 21 | 22 |
| 22 IsolatedMountPointProvider(); | 23 IsolatedMountPointProvider(); |
| 23 virtual ~IsolatedMountPointProvider(); | 24 virtual ~IsolatedMountPointProvider(); |
| 24 | 25 |
| 25 // FileSystemMountPointProvider implementation. | 26 // FileSystemMountPointProvider implementation. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 virtual FileStreamWriter* CreateFileStreamWriter( | 54 virtual FileStreamWriter* CreateFileStreamWriter( |
| 54 const GURL& url, | 55 const GURL& url, |
| 55 int64 offset, | 56 int64 offset, |
| 56 FileSystemContext* context) const OVERRIDE; | 57 FileSystemContext* context) const OVERRIDE; |
| 57 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 58 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 IsolatedContext* isolated_context() const; | 61 IsolatedContext* isolated_context() const; |
| 61 FilePath GetPathFromURL(const GURL& url) const; | 62 FilePath GetPathFromURL(const GURL& url) const; |
| 62 | 63 |
| 63 scoped_ptr<FileSystemFileUtil> isolated_file_util_; | 64 scoped_ptr<IsolatedFileUtil> isolated_file_util_; |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace fileapi | 67 } // namespace fileapi |
| 67 | 68 |
| 68 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ | 69 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |