| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/disk_cache/simple/simple_util.h" | 5 #include "net/disk_cache/simple/simple_util.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 bool GetMTime(const base::FilePath& path, base::Time* out_mtime) { | 96 bool GetMTime(const base::FilePath& path, base::Time* out_mtime) { |
| 97 DCHECK(out_mtime); | 97 DCHECK(out_mtime); |
| 98 base::File::Info file_info; | 98 base::File::Info file_info; |
| 99 if (!base::GetFileInfo(path, &file_info)) | 99 if (!base::GetFileInfo(path, &file_info)) |
| 100 return false; | 100 return false; |
| 101 *out_mtime = file_info.last_modified; | 101 *out_mtime = file_info.last_modified; |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace simple_backend | 105 } // namespace simple_util |
| 106 | 106 |
| 107 } // namespace disk_cache | 107 } // namespace disk_cache |
| OLD | NEW |