diff options
Diffstat (limited to 'net/disk_cache/simple/simple_util.h')
-rw-r--r-- | net/disk_cache/simple/simple_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/disk_cache/simple/simple_util.h b/net/disk_cache/simple/simple_util.h index cb869f8..505501e 100644 --- a/net/disk_cache/simple/simple_util.h +++ b/net/disk_cache/simple/simple_util.h @@ -10,6 +10,11 @@ #include "base/basictypes.h" #include "net/base/net_export.h" +namespace base { +class FilePath; +class Time; +} + namespace disk_cache { namespace simple_util { @@ -57,6 +62,10 @@ NET_EXPORT_PRIVATE int64 GetFileOffsetFromKeyAndDataOffset( const std::string& key, int data_offset); +// Fills |out_time| with the time the file last modified time. Unlike the +// functions in platform_file.h, the time resolution is milliseconds. +NET_EXPORT_PRIVATE bool GetMTime(const base::FilePath& path, + base::Time* out_mtime); } // namespace simple_backend } // namespace disk_cache |