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

Side by Side Diff: net/tools/dump_cache/dump_files.h

Issue 15203004: Disk cache: Reference CL for the implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: IndexTable review Created 7 years 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/dump_cache.cc ('k') | net/tools/dump_cache/dump_files.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 #ifndef NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_ 5 #ifndef NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_
6 #define NET_TOOLS_DUMP_CACHE_DUMP_FILE_H_ 6 #define NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_
7 7
8 // Performs basic inspection of the disk cache files with minimal disruption 8 // Performs basic inspection of the disk cache files with minimal disruption
9 // to the actual files (they still may change if an error is detected on the 9 // to the actual files (they still may change if an error is detected on the
10 // files). 10 // files).
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 13
14 // Returns the major version of the specified cache. 14 // Returns the major version of the specified cache.
15 int GetMajorVersion(const base::FilePath& input_path); 15 int GetMajorVersion(const base::FilePath& input_path);
16 16
17 // Dumps all entries from the cache. 17 // Dumps all entries from the cache, for version 2.
18 int DumpContents(const base::FilePath& input_path); 18 int DumpContentsV2(const base::FilePath& input_path);
19
20 // Dumps all entries from the cache, for version 3.
21 int DumpContentsV3(const base::FilePath& input_path);
19 22
20 // Dumps the headers of all files. 23 // Dumps the headers of all files.
21 int DumpHeaders(const base::FilePath& input_path); 24 int DumpHeaders(const base::FilePath& input_path);
22 25
26 // Dumps extra fields from the V3 index header.
27 void DumpIndexHeaderPart2(void* raw_header);
28
23 #endif // NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_ 29 #endif // NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_
OLDNEW
« no previous file with comments | « net/tools/dump_cache/dump_cache.cc ('k') | net/tools/dump_cache/dump_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698