| 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 // Performs basic inspection of the disk cache files with minimal disruption | 5 // Performs basic inspection of the disk cache files with minimal disruption |
| 6 // to the actual files (they still may change if an error is detected on the | 6 // to the actual files (they still may change if an error is detected on the |
| 7 // files). | 7 // files). |
| 8 | 8 |
| 9 #include "net/tools/dump_cache/dump_files.h" | 9 #include "net/tools/dump_cache/dump_files.h" |
| 10 | 10 |
| 11 #include <stdio.h> | 11 #include <stdio.h> |
| 12 | 12 |
| 13 #include <set> | 13 #include <set> |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/file_util.h" | |
| 17 #include "base/files/file.h" | 16 #include "base/files/file.h" |
| 18 #include "base/files/file_enumerator.h" | 17 #include "base/files/file_enumerator.h" |
| 18 #include "base/files/file_util.h" |
| 19 #include "base/format_macros.h" | 19 #include "base/format_macros.h" |
| 20 #include "base/message_loop/message_loop.h" | 20 #include "base/message_loop/message_loop.h" |
| 21 #include "net/disk_cache/blockfile/block_files.h" | 21 #include "net/disk_cache/blockfile/block_files.h" |
| 22 #include "net/disk_cache/blockfile/disk_format.h" | 22 #include "net/disk_cache/blockfile/disk_format.h" |
| 23 #include "net/disk_cache/blockfile/mapped_file.h" | 23 #include "net/disk_cache/blockfile/mapped_file.h" |
| 24 #include "net/disk_cache/blockfile/stats.h" | 24 #include "net/disk_cache/blockfile/stats.h" |
| 25 #include "net/disk_cache/blockfile/storage_block-inl.h" | 25 #include "net/disk_cache/blockfile/storage_block-inl.h" |
| 26 #include "net/disk_cache/blockfile/storage_block.h" | 26 #include "net/disk_cache/blockfile/storage_block.h" |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 DumpEntry(entry); | 364 DumpEntry(entry); |
| 365 disk_cache::RankingsNode rankings; | 365 disk_cache::RankingsNode rankings; |
| 366 if (dumper.LoadRankings(entry.rankings_node, &rankings)) | 366 if (dumper.LoadRankings(entry.rankings_node, &rankings)) |
| 367 DumpRankings(rankings); | 367 DumpRankings(rankings); |
| 368 } | 368 } |
| 369 | 369 |
| 370 printf("Done.\n"); | 370 printf("Done.\n"); |
| 371 | 371 |
| 372 return 0; | 372 return 0; |
| 373 } | 373 } |
| OLD | NEW |