| 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_TEST_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 FileSystemType type, | 45 FileSystemType type, |
| 46 const FilePath& virtual_path, | 46 const FilePath& virtual_path, |
| 47 bool create) OVERRIDE; | 47 bool create) OVERRIDE; |
| 48 virtual bool IsAccessAllowed(const GURL& origin_url, | 48 virtual bool IsAccessAllowed(const GURL& origin_url, |
| 49 FileSystemType type, | 49 FileSystemType type, |
| 50 const FilePath& virtual_path) OVERRIDE; | 50 const FilePath& virtual_path) OVERRIDE; |
| 51 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; | 51 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; |
| 52 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 52 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
| 53 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) | 53 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) |
| 54 const OVERRIDE; | 54 const OVERRIDE; |
| 55 virtual FileSystemOperationInterface* CreateFileSystemOperation( | 55 virtual FileSystemOperation* CreateFileSystemOperation( |
| 56 const FileSystemURL& url, | 56 const FileSystemURL& url, |
| 57 FileSystemContext* context) const OVERRIDE; | 57 FileSystemContext* context) const OVERRIDE; |
| 58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( | 58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( |
| 59 const FileSystemURL& url, | 59 const FileSystemURL& url, |
| 60 int64 offset, | 60 int64 offset, |
| 61 FileSystemContext* context) const OVERRIDE; | 61 FileSystemContext* context) const OVERRIDE; |
| 62 virtual FileStreamWriter* CreateFileStreamWriter( | 62 virtual FileStreamWriter* CreateFileStreamWriter( |
| 63 const FileSystemURL& url, | 63 const FileSystemURL& url, |
| 64 int64 offset, | 64 int64 offset, |
| 65 FileSystemContext* context) const OVERRIDE; | 65 FileSystemContext* context) const OVERRIDE; |
| 66 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 66 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 67 virtual void DeleteFileSystem( | 67 virtual void DeleteFileSystem( |
| 68 const GURL& origin_url, | 68 const GURL& origin_url, |
| 69 FileSystemType type, | 69 FileSystemType type, |
| 70 FileSystemContext* context, | 70 FileSystemContext* context, |
| 71 const DeleteFileSystemCallback& callback) OVERRIDE; | 71 const DeleteFileSystemCallback& callback) OVERRIDE; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 FilePath base_path_; | 74 FilePath base_path_; |
| 75 scoped_ptr<LocalFileUtil> local_file_util_; | 75 scoped_ptr<LocalFileUtil> local_file_util_; |
| 76 scoped_ptr<FileSystemQuotaUtil> quota_util_; | 76 scoped_ptr<FileSystemQuotaUtil> quota_util_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace fileapi | 79 } // namespace fileapi |
| 80 | 80 |
| 81 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 81 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |