Searched refs:prefix_hits (Results 1 – 6 of 6) sorted by relevance
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_database_unittest.cc | 497 std::vector<SBPrefix> prefix_hits; in TEST_F() local 501 &matching_list, &prefix_hits, in TEST_F() 503 EXPECT_EQ(prefix_hits[0], Sha256Prefix("www.evil.com/phishing.html")); in TEST_F() 504 EXPECT_EQ(prefix_hits.size(), 1U); in TEST_F() 508 &matching_list, &prefix_hits, in TEST_F() 513 &matching_list, &prefix_hits, in TEST_F() 518 &matching_list, &prefix_hits, in TEST_F() 523 &matching_list, &prefix_hits, in TEST_F() 528 &matching_list, &prefix_hits, in TEST_F() 533 &matching_list, &prefix_hits, in TEST_F() [all …]
|
D | safe_browsing_service_browsertest.cc | 51 std::vector<SBPrefix>* prefix_hits, in ContainsBrowseUrl() argument 57 urls, prefix_hits, full_hits); in ContainsBrowseUrl() 60 std::vector<SBPrefix>* prefix_hits) { in ContainsDownloadUrl() argument 64 urls, prefix_hits, &full_hits); in ContainsDownloadUrl() 67 DCHECK_LE(1U, prefix_hits->size()); in ContainsDownloadUrl() 99 const std::vector<SBPrefix>& prefix_hits, in AddUrl() argument 102 badurls_[url.spec()].prefix_hits = prefix_hits; in AddUrl() 114 std::vector<SBPrefix> prefix_hits; member 121 std::vector<SBPrefix>* prefix_hits, in ContainsUrl() argument 134 prefix_hits->insert(prefix_hits->end(), in ContainsUrl() [all …]
|
D | safe_browsing_database.h | 89 std::vector<SBPrefix>* prefix_hits, 97 std::vector<SBPrefix>* prefix_hits) = 0; 211 std::vector<SBPrefix>* prefix_hits, 215 std::vector<SBPrefix>* prefix_hits); 279 std::vector<SBPrefix>* prefix_hits);
|
D | safe_browsing_database.cc | 130 void GetCachedFullHashesForBrowse(const std::vector<SBPrefix>& prefix_hits, in GetCachedFullHashesForBrowse() argument 137 std::vector<SBPrefix>::const_iterator piter = prefix_hits.begin(); in GetCachedFullHashesForBrowse() 140 while (piter != prefix_hits.end() && hiter != full_hashes.end()) { in GetCachedFullHashesForBrowse() 582 std::vector<SBPrefix>* prefix_hits, in ContainsBrowseUrl() argument 587 prefix_hits->clear(); in ContainsBrowseUrl() 614 prefix_hits->push_back(full_hashes[i].prefix); in ContainsBrowseUrl() 643 if (miss_count == prefix_hits->size()) in ContainsBrowseUrl() 649 std::sort(prefix_hits->begin(), prefix_hits->end()); in ContainsBrowseUrl() 651 GetCachedFullHashesForBrowse(*prefix_hits, full_browse_hashes_, in ContainsBrowseUrl() 653 GetCachedFullHashesForBrowse(*prefix_hits, pending_browse_hashes_, in ContainsBrowseUrl() [all …]
|
D | safe_browsing_service.cc | 280 std::vector<SBPrefix> prefix_hits; in CheckBrowseUrl() local 283 database_->ContainsBrowseUrl(url, &list, &prefix_hits, in CheckBrowseUrl() 300 check->prefix_hits.swap(prefix_hits); in CheckBrowseUrl() 396 std::vector<SBPrefix> prefixes = check->prefix_hits; in HandleGetHashResults() 714 if (check->prefix_hits.size() == 1) { in OnCheckDone() 715 SBPrefix prefix = check->prefix_hits[0]; in OnCheckDone() 732 protocol_manager_->GetFullHash(check, check->prefix_hits); in OnCheckDone() 940 SBPrefix prefix = check->prefix_hits[0]; in OnHandleGetHashResults() 942 if (check->prefix_hits.size() > 1 || it == gethash_requests_.end()) { in OnHandleGetHashResults() 1108 check->prefix_hits.push_back(check->full_hash->prefix); in CheckDownloadHashOnSBThread() [all …]
|
D | safe_browsing_service.h | 86 std::vector<SBPrefix> prefix_hits; member
|