| Index: webkit/fileapi/obfuscated_file_system_file_util.h
|
| diff --git a/webkit/fileapi/obfuscated_file_system_file_util.h b/webkit/fileapi/obfuscated_file_system_file_util.h
|
| index 063fcd5a48f284637fb20a18378abf391123c16a..a3ad15e74f67a1d1af7f8de0e2974cafcc16d125 100644
|
| --- a/webkit/fileapi/obfuscated_file_system_file_util.h
|
| +++ b/webkit/fileapi/obfuscated_file_system_file_util.h
|
| @@ -185,6 +185,13 @@ class ObfuscatedFileSystemFileUtil : public FileSystemFileUtil,
|
| // and destroys the database on the disk.
|
| bool DestroyDirectoryDatabase(const GURL& origin, FileSystemType type);
|
|
|
| + // Computes a cost for storing a given file in the obfuscated FSFU.
|
| + // As the cost of a file is independent of the cost of its parent directories,
|
| + // this ignores all but the BaseName of the supplied path. In order to
|
| + // compute the cost of adding a multi-segment directory recursively, call this
|
| + // on each path segment and add the results.
|
| + static int64 ComputeFilePathCost(const FilePath& path);
|
| +
|
| private:
|
| typedef FileSystemDirectoryDatabase::FileId FileId;
|
| typedef FileSystemDirectoryDatabase::FileInfo FileInfo;
|
|
|