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/files/file_path.h" | 8 #include "base/files/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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void InitializeCopyOrMoveFileValidatorFactory( | 50 virtual void InitializeCopyOrMoveFileValidatorFactory( |
51 FileSystemType type, | 51 FileSystemType type, |
52 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE; | 52 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE; |
53 virtual FilePermissionPolicy GetPermissionPolicy( | 53 virtual FilePermissionPolicy GetPermissionPolicy( |
54 const FileSystemURL& url, | 54 const FileSystemURL& url, |
55 int permissions) const OVERRIDE; | 55 int permissions) const OVERRIDE; |
56 virtual FileSystemOperation* CreateFileSystemOperation( | 56 virtual FileSystemOperation* CreateFileSystemOperation( |
57 const FileSystemURL& url, | 57 const FileSystemURL& url, |
58 FileSystemContext* context, | 58 FileSystemContext* context, |
59 base::PlatformFileError* error_code) const OVERRIDE; | 59 base::PlatformFileError* error_code) const OVERRIDE; |
60 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( | 60 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
61 const FileSystemURL& url, | 61 const FileSystemURL& url, |
62 int64 offset, | 62 int64 offset, |
63 const base::Time& expected_modification_time, | 63 const base::Time& expected_modification_time, |
64 FileSystemContext* context) const OVERRIDE; | 64 FileSystemContext* context) const OVERRIDE; |
65 virtual FileStreamWriter* CreateFileStreamWriter( | 65 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
66 const FileSystemURL& url, | 66 const FileSystemURL& url, |
67 int64 offset, | 67 int64 offset, |
68 FileSystemContext* context) const OVERRIDE; | 68 FileSystemContext* context) const OVERRIDE; |
69 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 69 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
70 virtual void DeleteFileSystem( | 70 virtual void DeleteFileSystem( |
71 const GURL& origin_url, | 71 const GURL& origin_url, |
72 FileSystemType type, | 72 FileSystemType type, |
73 FileSystemContext* context, | 73 FileSystemContext* context, |
74 const DeleteFileSystemCallback& callback) OVERRIDE; | 74 const DeleteFileSystemCallback& callback) OVERRIDE; |
75 | 75 |
76 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; | 76 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; |
77 | 77 |
78 private: | 78 private: |
79 class QuotaUtil; | 79 class QuotaUtil; |
80 | 80 |
81 base::FilePath base_path_; | 81 base::FilePath base_path_; |
82 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 82 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
83 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; | 83 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; |
84 scoped_ptr<QuotaUtil> quota_util_; | 84 scoped_ptr<QuotaUtil> quota_util_; |
85 UpdateObserverList observers_; | 85 UpdateObserverList observers_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace fileapi | 88 } // namespace fileapi |
89 | 89 |
90 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 90 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |