/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_util_unittest.cc | 30 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in TEST() 31 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 43 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in TEST() 44 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 56 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 271 safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname, in TEST() 292 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), 0); in TEST() 295 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), -1); in TEST() 300 EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID, in TEST() 302 EXPECT_TRUE(safe_browsing_util::GetListName(safe_browsing_util::MALWARE, in TEST() [all …]
|
D | safe_browsing_database_unittest.cc | 303 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); in TEST_F() 310 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); in TEST_F() 317 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); in TEST_F() 321 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); in TEST_F() 333 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); in TEST_F() 337 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); in TEST_F() 344 EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList); in TEST_F() 356 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); in TEST_F() 364 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); in TEST_F() 371 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); in TEST_F() [all …]
|
D | safe_browsing_database.cc | 62 DCHECK_NE(list_id, safe_browsing_util::INVALID); in EncodeChunkId() 83 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in BrowseFullHashesToCheck() 87 safe_browsing_util::GeneratePathsToCheck(url, &paths); in BrowseFullHashesToCheck() 150 DCHECK(list_bit == safe_browsing_util::MALWARE || in GetCachedFullHashesForBrowse() 151 list_bit == safe_browsing_util::PHISH); in GetCachedFullHashesForBrowse() 152 if (!safe_browsing_util::GetListName(list_bit, &result.list_name)) in GetCachedFullHashesForBrowse() 206 DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2, in UpdateChunkRanges() 208 DCHECK_NE(safe_browsing_util::GetListId(listname), in UpdateChunkRanges() 209 safe_browsing_util::INVALID); in UpdateChunkRanges() 453 if (list_id == safe_browsing_util::PHISH || in GetStore() [all …]
|
D | safe_browsing_service_browsertest.cc | 55 return ContainsUrl(safe_browsing_util::kMalwareList, in ContainsBrowseUrl() 56 safe_browsing_util::kPhishingList, in ContainsBrowseUrl() 62 bool found = ContainsUrl(safe_browsing_util::kBinUrlList, in ContainsDownloadUrl() 63 safe_browsing_util::kBinHashList, in ContainsDownloadUrl() 265 safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL); in GenUrlFullhashResult() 276 safe_browsing_util::StringToSBFullHash(full_digest, &full_hash->hash); in GenDigestFullhashResult() 331 safe_browsing_util::StringToSBFullHash(digest, &full_hash); in SetupResponseForDigest() 386 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, in IN_PROC_BROWSER_TEST_F() 420 GenUrlFullhashResult(malware_url, safe_browsing_util::kMalwareList, in IN_PROC_BROWSER_TEST_F() 517 GenUrlFullhashResult(badbin_url, safe_browsing_util::kBinUrlList, in IN_PROC_BROWSER_TEST_F() [all …]
|
D | safe_browsing_util.cc | 163 namespace safe_browsing_util { namespace 174 if (name == safe_browsing_util::kMalwareList) { in GetListId() 176 } else if (name == safe_browsing_util::kPhishingList) { in GetListId() 178 } else if (name == safe_browsing_util::kBinUrlList) { in GetListId() 180 } else if (name == safe_browsing_util::kBinHashList) { in GetListId() 182 } else if (name == safe_browsing_util::kCsdWhiteList) { in GetListId() 193 *list = safe_browsing_util::kMalwareList; in GetListName() 196 *list = safe_browsing_util::kPhishingList; in GetListName() 199 *list = safe_browsing_util::kBinUrlList; in GetListName() 202 *list = safe_browsing_util::kBinHashList; in GetListName() [all …]
|
D | protocol_parser_unittest.cc | 22 safe_browsing_util::kMalwareList, in TEST() 75 safe_browsing_util::kMalwareList, in TEST() 106 safe_browsing_util::kMalwareList, in TEST() 168 safe_browsing_util::kMalwareList, in TEST() 196 safe_browsing_util::kBinHashList, in TEST() 214 safe_browsing_util::kMalwareList, in TEST() 223 safe_browsing_util::kPhishingList, in TEST() 232 safe_browsing_util::kBinUrlList, in TEST() 252 safe_browsing_util::kMalwareList, in TEST() 313 safe_browsing_util::kMalwareList, in TEST() [all …]
|
D | protocol_parser.cc | 76 if (!safe_browsing_util::VerifyMAC(key, line, data, length)) in ParseGetHash() 99 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { in ParseGetHash() 202 !safe_browsing_util::VerifyMAC(key, cmd_parts[1], data, length)) in ParseUpdate() 262 !safe_browsing_util::VerifyMAC(key, mac, data, length)) { in ParseChunk() 340 if (list_name == safe_browsing_util::kBinHashList) { in ParseAddChunk() 378 if (list_name == safe_browsing_util::kBinHashList) { in ParseSubChunk()
|
D | safe_browsing_service.cc | 146 safe_browsing_util::SBFullHashToString(*check.full_hash), in OnSafeBrowsingResult() 237 safe_browsing_util::StringToSBFullHash(full_hash, check->full_hash.get()); in CheckDownloadHash() 827 if (safe_browsing_util::IsPhishingList(list_name)) { in GetResultFromListname() 831 if (safe_browsing_util::IsMalwareList(list_name)) { in GetResultFromListname() 835 if (safe_browsing_util::IsBadbinurlList(list_name)) { in GetResultFromListname() 839 if (safe_browsing_util::IsBadbinhashList(list_name)) { in GetResultFromListname() 971 index = safe_browsing_util::GetUrlHashIndex(check->urls[i], full_hashes); in HandleOneCheck() 976 index = safe_browsing_util::GetHashIndex(*(check->full_hash), full_hashes); in HandleOneCheck()
|
D | protocol_manager.cc | 597 if (lists[i].name == safe_browsing_util::kPhishingList) in OnGetChunksComplete() 600 if (lists[i].name == safe_browsing_util::kMalwareList) in OnGetChunksComplete() 608 SBListChunkRanges(safe_browsing_util::kPhishingList), use_mac)); in OnGetChunksComplete() 612 SBListChunkRanges(safe_browsing_util::kMalwareList), use_mac)); in OnGetChunksComplete()
|
D | filter_false_positive_perftest.cc | 170 safe_browsing_util::GenerateHostsToCheck(url_check, &hosts); in GeneratePrefixHits() 174 safe_browsing_util::GeneratePathsToCheck(url_check, &paths); in GeneratePrefixHits()
|
D | safe_browsing_util.h | 259 namespace safe_browsing_util {
|
D | safe_browsing_blocking_page.cc | 465 safe_browsing_util::GeneratePhishingReportUrl(kSbReportPhishingUrl, in CommandReceived()
|
/external/chromium/chrome/browser/ |
D | bug_report_util.cc | 384 safe_browsing_util::GeneratePhishingReportUrl(
|