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/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/sha1.h" | 12 #include "base/sha1.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "net/disk_cache/simple/simple_entry_format.h" | 17 #include "net/disk_cache/simple/simple_entry_format.h" |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 base::File::Info file_info; | 130 base::File::Info file_info; |
131 if (!base::GetFileInfo(path, &file_info)) | 131 if (!base::GetFileInfo(path, &file_info)) |
132 return false; | 132 return false; |
133 *out_mtime = file_info.last_modified; | 133 *out_mtime = file_info.last_modified; |
134 return true; | 134 return true; |
135 } | 135 } |
136 | 136 |
137 } // namespace simple_backend | 137 } // namespace simple_backend |
138 | 138 |
139 } // namespace disk_cache | 139 } // namespace disk_cache |
OLD | NEW |