| Index: base/platform_file_win.cc
|
| diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc
|
| index 11434874e479105c98746ff14d751cd4e1d49648..ccaee1ec8157c61cacf71349677ce9cceb55984d 100644
|
| --- a/base/platform_file_win.cc
|
| +++ b/base/platform_file_win.cc
|
| @@ -75,4 +75,12 @@ bool ClosePlatformFile(PlatformFile file) {
|
| return (CloseHandle(file) == 0);
|
| }
|
|
|
| +bool GetPlatformFileSize(PlatformFile file, uint64* out_size) {
|
| + LARGE_INTEGER size;
|
| + if (!GetFileSizeEx(file, &size))
|
| + return false;
|
| + *out_size = size.QuadPart;
|
| + return true;
|
| +}
|
| +
|
| } // namespace disk_cache
|
|
|