// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // See net/disk_cache/disk_cache.h for the public interface. #ifndef NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_ #define NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_ #include <stdint.h> #include <memory> #include <vector> #include "base/files/file_path.h" #include "base/gtest_prod_util.h" #include "base/memory/raw_ptr.h" #include "base/memory/scoped_refptr.h" #include "net/base/net_export.h" #include "net/disk_cache/blockfile/addr.h" #include "net/disk_cache/blockfile/disk_format_base.h" #include "net/disk_cache/blockfile/mapped_file.h" namespace base { class ThreadChecker; } namespace disk_cache { // An instance of this class represents the header of a block file in memory. // Note that this class doesn't perform any file operation (as in it only deals // with entities in memory). // The header of a block file (and hence, this object) is all that is needed to // perform common operations like allocating or releasing space for storage; // actual access to that storage, however, is not performed through this class. class NET_EXPORT_PRIVATE BlockHeader { … }; BlockFilesBitmaps; // This class handles the set of block-files open by the disk cache. class NET_EXPORT_PRIVATE BlockFiles { … }; } // namespace disk_cache #endif // NET_DISK_CACHE_BLOCKFILE_BLOCK_FILES_H_