Chromium Code Reviews| Index: net/disk_cache/simple/simple_util.h |
| diff --git a/net/disk_cache/simple/simple_util.h b/net/disk_cache/simple/simple_util.h |
| index b6ca85bb23be044c63296202e408ee183449e2de..24bfa0b4c3d4c20892f4380d04fd3a3cfa03bbc0 100644 |
| --- a/net/disk_cache/simple/simple_util.h |
| +++ b/net/disk_cache/simple/simple_util.h |
| @@ -69,7 +69,14 @@ NET_EXPORT_PRIVATE int GetFileIndexFromStreamIndex(int stream_index); |
| // functions in file.h, the time resolution is milliseconds. |
| NET_EXPORT_PRIVATE bool GetMTime(const base::FilePath& path, |
| base::Time* out_mtime); |
| -} // namespace simple_backend |
| + |
| +// Deletes a file, insuring POSIX semantics. Provided that all open handles to |
| +// this file were opened with File::FLAG_SHARE_DELETE, it is possible to delete |
|
pasko
2014/10/29 13:01:01
I would say "Emulates deleting the file", but I'll
|
| +// an open file and continue to use that file. After deleting an open file, it |
| +// is possible to immediately create a new file with the same name. |
| +NET_EXPORT_PRIVATE bool SimpleCacheDeleteFile(const base::FilePath& path); |
| + |
| +} // namespace simple_util |
| } // namespace disk_cache |