12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file. 42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#ifndef NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_ 67d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#define NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_ 72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Performs basic inspection of the disk cache files with minimal disruption 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// to the actual files (they still may change if an error is detected on the 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// files). 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "base/files/file_path.h" 132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Returns the major version of the specified cache. 152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int GetMajorVersion(const base::FilePath& input_path); 162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Dumps all entries from the cache. 182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DumpContents(const base::FilePath& input_path); 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Dumps the headers of all files. 212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)int DumpHeaders(const base::FilePath& input_path); 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif // NET_TOOLS_DUMP_CACHE_DUMP_FILES_H_ 24