Lines Matching refs:VisitedLinkMaster
33 const int32 VisitedLinkMaster::kFileHeaderSignatureOffset = 0;
34 const int32 VisitedLinkMaster::kFileHeaderVersionOffset = 4;
35 const int32 VisitedLinkMaster::kFileHeaderLengthOffset = 8;
36 const int32 VisitedLinkMaster::kFileHeaderUsedOffset = 12;
37 const int32 VisitedLinkMaster::kFileHeaderSaltOffset = 16;
39 const int32 VisitedLinkMaster::kFileCurrentVersion = 2;
42 const int32 VisitedLinkMaster::kFileSignature = 0x6b6e4c56;
43 const size_t VisitedLinkMaster::kFileHeaderSize =
48 const unsigned VisitedLinkMaster::kDefaultTableSize = 16381;
50 const size_t VisitedLinkMaster::kBigDeleteThreshold = 64;
165 class VisitedLinkMaster::TableBuilder
169 TableBuilder(VisitedLinkMaster* master,
192 VisitedLinkMaster* master_;
206 VisitedLinkMaster::VisitedLinkMaster(Listener* listener, in VisitedLinkMaster() function in VisitedLinkMaster
211 VisitedLinkMaster::VisitedLinkMaster(Listener* listener, in VisitedLinkMaster() function in VisitedLinkMaster
224 VisitedLinkMaster::~VisitedLinkMaster() { in ~VisitedLinkMaster()
235 void VisitedLinkMaster::InitMembers(Listener* listener, Profile* profile) { in InitMembers()
253 bool VisitedLinkMaster::Init() { in Init()
263 VisitedLinkMaster::Hash VisitedLinkMaster::TryToAddURL(const GURL& url) { in TryToAddURL()
298 void VisitedLinkMaster::AddURL(const GURL& url) { in AddURL()
308 void VisitedLinkMaster::AddURLs(const std::vector<GURL>& url) { in AddURLs()
321 void VisitedLinkMaster::DeleteAllURLs() { in DeleteAllURLs()
338 void VisitedLinkMaster::DeleteURLs(const std::set<GURL>& urls) { in DeleteURLs()
383 VisitedLinkMaster::Hash VisitedLinkMaster::AddFingerprint( in AddFingerprint()
420 void VisitedLinkMaster::DeleteFingerprintsFromCurrentTable( in DeleteFingerprintsFromCurrentTable()
438 bool VisitedLinkMaster::DeleteFingerprint(Fingerprint fingerprint, in DeleteFingerprint()
499 bool VisitedLinkMaster::WriteFullTable() { in WriteFullTable()
541 bool VisitedLinkMaster::InitFromFile() { in InitFromFile()
572 bool VisitedLinkMaster::InitFromScratch(bool suppress_rebuild) { in InitFromScratch()
601 bool VisitedLinkMaster::ReadFileHeader(FILE* file, in ReadFileHeader()
651 bool VisitedLinkMaster::GetDatabaseFileName(FilePath* filename) { in GetDatabaseFileName()
668 bool VisitedLinkMaster::CreateURLTable(int32 num_entries, bool init_to_empty) { in CreateURLTable()
701 bool VisitedLinkMaster::BeginReplaceURLTable(int32 num_entries) { in BeginReplaceURLTable()
720 void VisitedLinkMaster::FreeURLTable() { in FreeURLTable()
732 bool VisitedLinkMaster::ResizeTableIfNecessary() { in ResizeTableIfNecessary()
756 void VisitedLinkMaster::ResizeTable(int32 new_size) { in ResizeTable()
794 uint32 VisitedLinkMaster::NewTableSizeForCount(int32 item_count) const { in NewTableSizeForCount()
827 bool VisitedLinkMaster::RebuildTableFromHistory() { in RebuildTableFromHistory()
854 void VisitedLinkMaster::OnTableRebuildComplete( in OnTableRebuildComplete()
904 void VisitedLinkMaster::WriteToFile(FILE* file, in WriteToFile()
917 void VisitedLinkMaster::WriteUsedItemCountToFile() { in WriteUsedItemCountToFile()
923 void VisitedLinkMaster::WriteHashRangeToFile(Hash first_hash, Hash last_hash) { in WriteHashRangeToFile()
943 bool VisitedLinkMaster::ReadFromFile(FILE* file, in ReadFromFile()
962 VisitedLinkMaster::TableBuilder::TableBuilder( in TableBuilder()
963 VisitedLinkMaster* master, in TableBuilder()
973 void VisitedLinkMaster::TableBuilder::DisownMaster() { in DisownMaster()
977 void VisitedLinkMaster::TableBuilder::OnURL(const GURL& url) { in OnURL()
979 fingerprints_.push_back(VisitedLinkMaster::ComputeURLFingerprint( in OnURL()
984 void VisitedLinkMaster::TableBuilder::OnComplete(bool success) { in OnComplete()
995 void VisitedLinkMaster::TableBuilder::OnCompleteMainThread() { in OnCompleteMainThread()