Home | History | Annotate | Download | only in visitedlink

Lines Matching defs:fingerprint

107   // Most writes are just a single fingerprint, so we reserve that much in this
109 StackVector<char, sizeof(VisitedLinkCommon::Fingerprint)> data_;
273 Fingerprint fingerprint = ComputeURLFingerprint(url.spec().data(),
277 // If we have a pending delete for this fingerprint, cancel it.
278 std::set<Fingerprint>::iterator found =
279 deleted_since_rebuild_.find(fingerprint);
285 added_since_rebuild_.insert(fingerprint);
295 return AddFingerprint(fingerprint, true);
328 memset(hash_table_, 0, this->table_length_ * sizeof(Fingerprint));
353 Fingerprint fingerprint =
355 deleted_since_rebuild_.insert(fingerprint);
359 std::set<Fingerprint>::iterator found =
360 added_since_rebuild_.find(fingerprint);
366 DeleteFingerprint(fingerprint, false);
372 std::set<Fingerprint> deleted_fingerprints;
384 Fingerprint fingerprint,
391 Hash cur_hash = HashFingerprint(fingerprint);
394 Fingerprint cur_fingerprint = FingerprintAt(cur_hash);
395 if (cur_fingerprint == fingerprint)
396 return null_hash_; // This fingerprint is already in there, do nothing.
400 hash_table_[cur_hash] = fingerprint;
404 listener_->Add(fingerprint);
421 const std::set<Fingerprint>& fingerprints) {
425 for (std::set<Fingerprint>::const_iterator i = fingerprints.begin();
438 bool VisitedLinkMaster::DeleteFingerprint(Fingerprint fingerprint,
444 if (!IsVisited(fingerprint))
452 Hash deleted_hash = HashFingerprint(fingerprint);
455 // fingerprint. These are things that could be affected by the change in
472 StackVector<Fingerprint, 32> shuffled_fingerprints;
475 if (hash_table_[i] != fingerprint
533 hash_table_, table_length_ * sizeof(Fingerprint));
558 hash_table_, num_entries * sizeof(Fingerprint))) {
636 if (*num_entries * sizeof(Fingerprint) + kFileHeaderSize != file_size)
670 uint32 alloc_size = num_entries * sizeof(Fingerprint) + sizeof(SharedHeader);
695 hash_table_ = reinterpret_cast<Fingerprint*>(
703 Fingerprint* old_hash_table = hash_table_;
765 Fingerprint* old_hash_table = hash_table_;
773 Fingerprint cur = old_hash_table[i];
856 const std::vector<Fingerprint>& fingerprints) {
877 for (std::set<Fingerprint>::iterator i = added_since_rebuild_.begin();
928 WriteToFile(file_, first_hash * sizeof(Fingerprint) + kFileHeaderSize,
930 (table_length_ - first_hash + 1) * sizeof(Fingerprint));
934 (last_hash + 1) * sizeof(Fingerprint));
937 WriteToFile(file_, first_hash * sizeof(Fingerprint) + kFileHeaderSize,
939 (last_hash - first_hash + 1) * sizeof(Fingerprint));