#ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_HISTORY_H_
#define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_FORMAT_HISTORY_H_
#include "base/basictypes.h"
#include "base/port.h"
#include "net/base/net_export.h"
namespace disk_cache {
namespace simplecache_v5 {
const uint64 kSimpleInitialMagicNumber = GG_UINT64_C(0xfcfb6d1ba7725c30);
const uint64 kSimpleFinalMagicNumber = GG_UINT64_C(0xf4fa6f45970d41d8);
static const int kSimpleEntryFileCount = 2;
static const int kSimpleEntryStreamCount = 3;
struct NET_EXPORT_PRIVATE SimpleFileHeader {
SimpleFileHeader();
uint64 initial_magic_number;
uint32 version;
uint32 key_length;
uint32 key_hash;
};
struct NET_EXPORT_PRIVATE SimpleFileEOF {
enum Flags {
FLAG_HAS_CRC32 = (1U << 0),
};
SimpleFileEOF();
uint64 final_magic_number;
uint32 flags;
uint32 data_crc32;
uint32 stream_size;
};
}
}
#endif