OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/utf_string_conversions.h" |
7 #include "net/base/io_buffer.h" | 8 #include "net/base/io_buffer.h" |
8 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
9 #include "net/disk_cache/entry_impl.h" | 10 #include "net/disk_cache/entry_impl.h" |
10 #include "net/http/http_cache.h" | 11 #include "net/http/http_cache.h" |
11 #include "net/http/http_response_headers.h" | 12 #include "net/http/http_response_headers.h" |
12 #include "net/http/http_response_info.h" | 13 #include "net/http/http_response_info.h" |
13 #include "net/tools/dump_cache/url_to_filename_encoder.h" | 14 #include "net/tools/dump_cache/url_to_filename_encoder.h" |
14 | 15 |
15 int CacheDumper::CreateEntry(const std::string& key, | 16 int CacheDumper::CreateEntry(const std::string& key, |
16 disk_cache::Entry** entry, | 17 disk_cache::Entry** entry, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 204 |
204 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, | 205 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, |
205 base::Time last_modified) { | 206 base::Time last_modified) { |
206 #ifdef WIN32_LARGE_FILENAME_SUPPORT | 207 #ifdef WIN32_LARGE_FILENAME_SUPPORT |
207 CloseHandle(entry_); | 208 CloseHandle(entry_); |
208 #else | 209 #else |
209 file_util::CloseFile(entry_); | 210 file_util::CloseFile(entry_); |
210 #endif | 211 #endif |
211 } | 212 } |
212 | 213 |
OLD | NEW |