// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_HISTORY_H_ #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_HISTORY_H_ #include <stdint.h> #include "net/base/net_export.h" namespace disk_cache::simplecache_v5 { const uint64_t kSimpleInitialMagicNumber = …0xfcfb6d1ba7725c30); const uint64_t kSimpleFinalMagicNumber = …0xf4fa6f45970d41d8); // A file containing stream 0 and stream 1 in the Simple cache consists of: // - a SimpleFileHeader. // - the key. // - the data from stream 1. // - a SimpleFileEOF record for stream 1. // - the data from stream 0. // - a SimpleFileEOF record for stream 0. // A file containing stream 2 in the Simple cache consists of: // - a SimpleFileHeader. // - the key. // - the data. // - at the end, a SimpleFileEOF record. static const int kSimpleEntryFileCount = …; static const int kSimpleEntryStreamCount = …; struct NET_EXPORT_PRIVATE SimpleFileHeader { … }; struct NET_EXPORT_PRIVATE SimpleFileEOF { … }; } // namespace disk_cache::simplecache_v5 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_HISTORY_H_