| Index: webkit/fileapi/file_system_usage_cache.h
|
| diff --git a/webkit/fileapi/file_system_usage_cache.h b/webkit/fileapi/file_system_usage_cache.h
|
| index 3d25120d9fbe28e003d26056b3fbbbd6f5efd5cd..428aa4b3dd747e437d30d6128f3a8ad142ee8178 100644
|
| --- a/webkit/fileapi/file_system_usage_cache.h
|
| +++ b/webkit/fileapi/file_system_usage_cache.h
|
| @@ -16,34 +16,34 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemUsageCache {
|
| // Gets the size described in the .usage file even if dirty > 0 or
|
| // is_valid == false. Returns less than zero if the .usage file is not
|
| // available.
|
| - static int64 GetUsage(const FilePath& usage_file_path);
|
| + static int64 GetUsage(const base::FilePath& usage_file_path);
|
|
|
| // Gets the dirty count in the .usage file.
|
| // Returns less than zero if the .usage file is not available.
|
| - static int32 GetDirty(const FilePath& usage_file_path);
|
| + static int32 GetDirty(const base::FilePath& usage_file_path);
|
|
|
| // Increments or decrements the "dirty" entry in the .usage file.
|
| // Returns false if no .usage is available.
|
| - static bool IncrementDirty(const FilePath& usage_file_path);
|
| - static bool DecrementDirty(const FilePath& usage_file_path);
|
| + static bool IncrementDirty(const base::FilePath& usage_file_path);
|
| + static bool DecrementDirty(const base::FilePath& usage_file_path);
|
|
|
| // Notifies quota system that it needs to recalculate the usage cache of the
|
| // origin. Returns false if no .usage is available.
|
| - static bool Invalidate(const FilePath& usage_file_path);
|
| - static bool IsValid(const FilePath& usage_file_path);
|
| + static bool Invalidate(const base::FilePath& usage_file_path);
|
| + static bool IsValid(const base::FilePath& usage_file_path);
|
|
|
| // Updates the size described in the .usage file.
|
| - static int UpdateUsage(const FilePath& usage_file_path, int64 fs_usage);
|
| + static int UpdateUsage(const base::FilePath& usage_file_path, int64 fs_usage);
|
|
|
| // Updates the size described in the .usage file by delta with keeping dirty
|
| // even if dirty > 0.
|
| static int AtomicUpdateUsageByDelta(
|
| - const FilePath& usage_file_path, int64 delta);
|
| + const base::FilePath& usage_file_path, int64 delta);
|
|
|
| - static bool Exists(const FilePath& usage_file_path);
|
| - static bool Delete(const FilePath& usage_file_path);
|
| + static bool Exists(const base::FilePath& usage_file_path);
|
| + static bool Delete(const base::FilePath& usage_file_path);
|
|
|
| - static const FilePath::CharType kUsageFileName[];
|
| + static const base::FilePath::CharType kUsageFileName[];
|
| static const char kUsageFileHeader[];
|
| static const int kUsageFileSize;
|
| static const int kUsageFileHeaderSize;
|
| @@ -51,11 +51,11 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemUsageCache {
|
| private:
|
| // Read the size, validity and the "dirty" entry described in the .usage file.
|
| // Returns less than zero if no .usage file is available.
|
| - static int64 Read(const FilePath& usage_file_path,
|
| + static int64 Read(const base::FilePath& usage_file_path,
|
| bool* is_valid,
|
| uint32* dirty);
|
|
|
| - static int Write(const FilePath& usage_file_path,
|
| + static int Write(const base::FilePath& usage_file_path,
|
| bool is_valid,
|
| uint32 dirty,
|
| int64 fs_usage);
|
|
|