| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 FileSystemType type, | 46 FileSystemType type, |
| 47 const FilePath& virtual_path, | 47 const FilePath& virtual_path, |
| 48 bool create) OVERRIDE; | 48 bool create) OVERRIDE; |
| 49 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE; | 49 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE; |
| 50 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; | 50 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; |
| 51 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; | 51 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; |
| 52 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) | 52 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) |
| 53 const OVERRIDE; | 53 const OVERRIDE; |
| 54 virtual FileSystemOperation* CreateFileSystemOperation( | 54 virtual FileSystemOperation* CreateFileSystemOperation( |
| 55 const FileSystemURL& url, | 55 const FileSystemURL& url, |
| 56 FileSystemContext* context) const OVERRIDE; | 56 FileSystemContext* context, |
| 57 base::PlatformFileError* error_code) const OVERRIDE; |
| 57 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( | 58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( |
| 58 const FileSystemURL& url, | 59 const FileSystemURL& url, |
| 59 int64 offset, | 60 int64 offset, |
| 60 FileSystemContext* context) const OVERRIDE; | 61 FileSystemContext* context) const OVERRIDE; |
| 61 virtual FileStreamWriter* CreateFileStreamWriter( | 62 virtual FileStreamWriter* CreateFileStreamWriter( |
| 62 const FileSystemURL& url, | 63 const FileSystemURL& url, |
| 63 int64 offset, | 64 int64 offset, |
| 64 FileSystemContext* context) const OVERRIDE; | 65 FileSystemContext* context) const OVERRIDE; |
| 65 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 66 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 66 virtual void DeleteFileSystem( | 67 virtual void DeleteFileSystem( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 77 FilePath base_path_; | 78 FilePath base_path_; |
| 78 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 79 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 79 scoped_ptr<LocalFileUtil> local_file_util_; | 80 scoped_ptr<LocalFileUtil> local_file_util_; |
| 80 scoped_ptr<QuotaUtil> quota_util_; | 81 scoped_ptr<QuotaUtil> quota_util_; |
| 81 UpdateObserverList observers_; | 82 UpdateObserverList observers_; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace fileapi | 85 } // namespace fileapi |
| 85 | 86 |
| 86 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 87 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |