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_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const OVERRIDE; | 92 const OVERRIDE; |
93 virtual FileSystemOperationInterface* CreateFileSystemOperation( | 93 virtual FileSystemOperationInterface* CreateFileSystemOperation( |
94 const GURL& origin_url, | 94 const GURL& origin_url, |
95 FileSystemType file_system_type, | 95 FileSystemType file_system_type, |
96 const FilePath& virtual_path, | 96 const FilePath& virtual_path, |
97 FileSystemContext* context) const OVERRIDE; | 97 FileSystemContext* context) const OVERRIDE; |
98 virtual webkit_blob::FileReader* CreateFileReader( | 98 virtual webkit_blob::FileReader* CreateFileReader( |
99 const GURL& url, | 99 const GURL& url, |
100 int64 offset, | 100 int64 offset, |
101 FileSystemContext* context) const OVERRIDE; | 101 FileSystemContext* context) const OVERRIDE; |
| 102 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE { return this; } |
102 | 103 |
103 FilePath old_base_path() const; | 104 FilePath old_base_path() const; |
104 FilePath new_base_path() const; | 105 FilePath new_base_path() const; |
105 FilePath renamed_old_base_path() const; | 106 FilePath renamed_old_base_path() const; |
106 | 107 |
107 // Returns an origin enumerator of this provider. | 108 // Returns an origin enumerator of this provider. |
108 // This method can only be called on the file thread. | 109 // This method can only be called on the file thread. |
109 OriginEnumerator* CreateOriginEnumerator() const; | 110 OriginEnumerator* CreateOriginEnumerator() const; |
110 | 111 |
111 // Gets a base directory path of the sandboxed filesystem that is | 112 // Gets a base directory path of the sandboxed filesystem that is |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 int64 delta) OVERRIDE; | 149 int64 delta) OVERRIDE; |
149 virtual void StartUpdateOriginOnFileThread( | 150 virtual void StartUpdateOriginOnFileThread( |
150 const GURL& origin_url, | 151 const GURL& origin_url, |
151 FileSystemType type) OVERRIDE; | 152 FileSystemType type) OVERRIDE; |
152 virtual void EndUpdateOriginOnFileThread( | 153 virtual void EndUpdateOriginOnFileThread( |
153 const GURL& origin_url, | 154 const GURL& origin_url, |
154 FileSystemType type) OVERRIDE; | 155 FileSystemType type) OVERRIDE; |
155 virtual void InvalidateUsageCache(const GURL& origin_url, | 156 virtual void InvalidateUsageCache(const GURL& origin_url, |
156 FileSystemType type) OVERRIDE; | 157 FileSystemType type) OVERRIDE; |
157 | 158 |
158 FileSystemQuotaUtil* quota_util() { return this; } | |
159 void CollectOpenFileSystemMetrics(base::PlatformFileError error_code); | 159 void CollectOpenFileSystemMetrics(base::PlatformFileError error_code); |
160 | 160 |
161 private: | 161 private: |
162 // Returns a path to the usage cache file. | 162 // Returns a path to the usage cache file. |
163 FilePath GetUsageCachePathForOriginAndType( | 163 FilePath GetUsageCachePathForOriginAndType( |
164 const GURL& origin_url, | 164 const GURL& origin_url, |
165 FileSystemType type) const; | 165 FileSystemType type) const; |
166 | 166 |
167 FilePath OldCreateFileSystemRootPath( | 167 FilePath OldCreateFileSystemRootPath( |
168 const GURL& origin_url, FileSystemType type); | 168 const GURL& origin_url, FileSystemType type); |
(...skipping 20 matching lines...) Expand all Loading... |
189 base::Time next_release_time_for_open_filesystem_stat_; | 189 base::Time next_release_time_for_open_filesystem_stat_; |
190 | 190 |
191 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; | 191 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; |
192 | 192 |
193 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 193 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
194 }; | 194 }; |
195 | 195 |
196 } // namespace fileapi | 196 } // namespace fileapi |
197 | 197 |
198 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 198 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |