| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tools/dump_cache/cache_dumper.h" | 5 #include "net/tools/dump_cache/cache_dumper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" |
| 7 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 8 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 9 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 10 #include "net/disk_cache/entry_impl.h" | 11 #include "net/disk_cache/entry_impl.h" |
| 11 #include "net/http/http_cache.h" | 12 #include "net/http/http_cache.h" |
| 12 #include "net/http/http_response_headers.h" | 13 #include "net/http/http_response_headers.h" |
| 13 #include "net/http/http_response_info.h" | 14 #include "net/http/http_response_info.h" |
| 14 #include "net/tools/dump_cache/url_to_filename_encoder.h" | 15 #include "net/tools/dump_cache/url_to_filename_encoder.h" |
| 15 | 16 |
| 16 CacheDumper::CacheDumper(disk_cache::Backend* cache) | 17 CacheDumper::CacheDumper(disk_cache::Backend* cache) |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 214 } |
| 214 | 215 |
| 215 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, | 216 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, |
| 216 base::Time last_modified) { | 217 base::Time last_modified) { |
| 217 #ifdef WIN32_LARGE_FILENAME_SUPPORT | 218 #ifdef WIN32_LARGE_FILENAME_SUPPORT |
| 218 CloseHandle(entry_); | 219 CloseHandle(entry_); |
| 219 #else | 220 #else |
| 220 file_util::CloseFile(entry_); | 221 file_util::CloseFile(entry_); |
| 221 #endif | 222 #endif |
| 222 } | 223 } |
| OLD | NEW |