Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: net/tools/dump_cache/cache_dumper.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/dump_cache/cache_dumper.h ('k') | net/tools/dump_cache/dump_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/disk_cache/entry_impl.h" 11 #include "net/disk_cache/blockfile/entry_impl.h"
12 #include "net/http/http_cache.h" 12 #include "net/http/http_cache.h"
13 #include "net/http/http_response_headers.h" 13 #include "net/http/http_response_headers.h"
14 #include "net/http/http_response_info.h" 14 #include "net/http/http_response_info.h"
15 #include "net/tools/dump_cache/url_to_filename_encoder.h" 15 #include "net/tools/dump_cache/url_to_filename_encoder.h"
16 16
17 CacheDumper::CacheDumper(disk_cache::Backend* cache) 17 CacheDumper::CacheDumper(disk_cache::Backend* cache)
18 : cache_(cache) { 18 : cache_(cache) {
19 } 19 }
20 20
21 int CacheDumper::CreateEntry(const std::string& key, 21 int CacheDumper::CreateEntry(const std::string& key,
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used, 216 void DiskDumper::CloseEntry(disk_cache::Entry* entry, base::Time last_used,
217 base::Time last_modified) { 217 base::Time last_modified) {
218 #ifdef WIN32_LARGE_FILENAME_SUPPORT 218 #ifdef WIN32_LARGE_FILENAME_SUPPORT
219 CloseHandle(entry_); 219 CloseHandle(entry_);
220 #else 220 #else
221 base::CloseFile(entry_); 221 base::CloseFile(entry_);
222 #endif 222 #endif
223 } 223 }
OLDNEW
« no previous file with comments | « net/tools/dump_cache/cache_dumper.h ('k') | net/tools/dump_cache/dump_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698