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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 56 FileSystemContext* context, |
57 base::PlatformFileError* error_code) const OVERRIDE; | 57 base::PlatformFileError* error_code) 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 const base::Time& expected_modification_time, |
61 FileSystemContext* context) const OVERRIDE; | 62 FileSystemContext* context) const OVERRIDE; |
62 virtual FileStreamWriter* CreateFileStreamWriter( | 63 virtual FileStreamWriter* CreateFileStreamWriter( |
63 const FileSystemURL& url, | 64 const FileSystemURL& url, |
64 int64 offset, | 65 int64 offset, |
65 FileSystemContext* context) const OVERRIDE; | 66 FileSystemContext* context) const OVERRIDE; |
66 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 67 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
67 virtual void DeleteFileSystem( | 68 virtual void DeleteFileSystem( |
68 const GURL& origin_url, | 69 const GURL& origin_url, |
69 FileSystemType type, | 70 FileSystemType type, |
70 FileSystemContext* context, | 71 FileSystemContext* context, |
71 const DeleteFileSystemCallback& callback) OVERRIDE; | 72 const DeleteFileSystemCallback& callback) OVERRIDE; |
72 | 73 |
73 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; | 74 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; |
74 | 75 |
75 private: | 76 private: |
76 class QuotaUtil; | 77 class QuotaUtil; |
77 | 78 |
78 FilePath base_path_; | 79 FilePath base_path_; |
79 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 80 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
80 scoped_ptr<LocalFileUtil> local_file_util_; | 81 scoped_ptr<LocalFileUtil> local_file_util_; |
81 scoped_ptr<QuotaUtil> quota_util_; | 82 scoped_ptr<QuotaUtil> quota_util_; |
82 UpdateObserverList observers_; | 83 UpdateObserverList observers_; |
83 }; | 84 }; |
84 | 85 |
85 } // namespace fileapi | 86 } // namespace fileapi |
86 | 87 |
87 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 88 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |