OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 FilePath LocalPathToDataPath( | 230 FilePath LocalPathToDataPath( |
231 const GURL& origin, FileSystemType type, const FilePath& local_path); | 231 const GURL& origin, FileSystemType type, const FilePath& local_path); |
232 // This returns NULL if |create| flag is false and a filesystem does not | 232 // This returns NULL if |create| flag is false and a filesystem does not |
233 // exist for the given |origin_url| and |type|. | 233 // exist for the given |origin_url| and |type|. |
234 // For read operations |create| should be false. | 234 // For read operations |create| should be false. |
235 FileSystemDirectoryDatabase* GetDirectoryDatabase( | 235 FileSystemDirectoryDatabase* GetDirectoryDatabase( |
236 const GURL& origin_url, FileSystemType type, bool create); | 236 const GURL& origin_url, FileSystemType type, bool create); |
237 // Gets the topmost directory specific to this origin. This will | 237 // Gets the topmost directory specific to this origin. This will |
238 // contain both the filesystem type subdirectories. | 238 // contain both the filesystem type subdirectories. |
239 FilePath GetDirectoryForOrigin(const GURL& origin, bool create); | 239 FilePath GetDirectoryForOrigin(const GURL& origin, bool create); |
240 void MarkDirty(const GURL& origin, FileSystemType type); | |
ericu
2011/08/19 04:05:56
Unimplemented/Unused?
tzik
2011/08/23 04:13:13
Done.
| |
240 void MarkUsed(); | 241 void MarkUsed(); |
241 void DropDatabases(); | 242 void DropDatabases(); |
242 bool InitOriginDatabase(bool create); | 243 bool InitOriginDatabase(bool create); |
243 | 244 |
244 typedef std::map<std::string, FileSystemDirectoryDatabase*> DirectoryMap; | 245 typedef std::map<std::string, FileSystemDirectoryDatabase*> DirectoryMap; |
245 DirectoryMap directories_; | 246 DirectoryMap directories_; |
246 scoped_ptr<FileSystemOriginDatabase> origin_database_; | 247 scoped_ptr<FileSystemOriginDatabase> origin_database_; |
247 FilePath file_system_directory_; | 248 FilePath file_system_directory_; |
248 base::OneShotTimer<ObfuscatedFileSystemFileUtil> timer_; | 249 base::OneShotTimer<ObfuscatedFileSystemFileUtil> timer_; |
249 scoped_ptr<FileSystemFileUtil> underlying_file_util_; | 250 scoped_ptr<FileSystemFileUtil> underlying_file_util_; |
250 | 251 |
251 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileSystemFileUtil); | 252 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileSystemFileUtil); |
252 }; | 253 }; |
253 | 254 |
254 } // namespace fileapi | 255 } // namespace fileapi |
255 | 256 |
256 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ | 257 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_SYSTEM_FILE_UTIL_H_ |
OLD | NEW |