/external/chromium_org/chrome/browser/safe_browsing/ |
D | safe_browsing_util_unittest.cc | 27 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in TEST() 28 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 40 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in TEST() 41 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 53 safe_browsing_util::GeneratePathsToCheck(url, &paths); in TEST() 268 safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname, in TEST() 282 EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID, in TEST() 284 EXPECT_TRUE(safe_browsing_util::GetListName(safe_browsing_util::MALWARE, in TEST() 286 EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); in TEST() 287 EXPECT_EQ(safe_browsing_util::MALWARE, in TEST() [all …]
|
D | database_manager_unittest.cc | 21 bool RunSBHashTest(const safe_browsing_util::ListType list_type, 30 const safe_browsing_util::ListType list_type, in RunSBHashTest() 50 safe_browsing_util::GetListId(result_list) in RunSBHashTest() 63 EXPECT_FALSE(RunSBHashTest(safe_browsing_util::BINURL, in TEST_F() 65 safe_browsing_util::kMalwareList)); in TEST_F() 66 EXPECT_TRUE(RunSBHashTest(safe_browsing_util::BINURL, in TEST_F() 68 safe_browsing_util::kBinUrlList)); in TEST_F() 74 EXPECT_FALSE(RunSBHashTest(safe_browsing_util::MALWARE, in TEST_F() 76 safe_browsing_util::kBinUrlList)); in TEST_F() 77 EXPECT_TRUE(RunSBHashTest(safe_browsing_util::MALWARE, in TEST_F() [all …]
|
D | safe_browsing_database_unittest.cc | 319 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks.get()); in TEST_F() 324 EXPECT_EQ(safe_browsing_util::kMalwareList, lists[0].name); in TEST_F() 333 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks.get()); in TEST_F() 338 EXPECT_EQ(safe_browsing_util::kMalwareList, lists[0].name); in TEST_F() 345 EXPECT_EQ(safe_browsing_util::kPhishingList, lists[1].name); in TEST_F() 359 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks.get()); in TEST_F() 364 EXPECT_EQ(safe_browsing_util::kMalwareList, lists[0].name); in TEST_F() 367 EXPECT_EQ(safe_browsing_util::kPhishingList, lists[1].name); in TEST_F() 398 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks.get()); in TEST_F() 402 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks.get()); in TEST_F() [all …]
|
D | safe_browsing_util.cc | 164 for (size_t i = 0; i < arraysize(safe_browsing_util::kAllLists); ++i) { in IsKnownList() 165 if (!strcmp(safe_browsing_util::kAllLists[i], name.c_str())) { in IsKnownList() 173 namespace safe_browsing_util { namespace 206 if (name == safe_browsing_util::kMalwareList) { in GetListId() 208 } else if (name == safe_browsing_util::kPhishingList) { in GetListId() 210 } else if (name == safe_browsing_util::kBinUrlList) { in GetListId() 212 } else if (name == safe_browsing_util::kCsdWhiteList) { in GetListId() 214 } else if (name == safe_browsing_util::kDownloadWhiteList) { in GetListId() 216 } else if (name == safe_browsing_util::kExtensionBlacklist) { in GetListId() 218 } else if (name == safe_browsing_util::kSideEffectFreeWhitelist) { in GetListId() [all …]
|
D | database_manager.cc | 49 safe_browsing_util::ListType check_type, in RecordGetHashCheckStatus() 59 bool is_download = check_type == safe_browsing_util::BINURL; in RecordGetHashCheckStatus() 73 safe_browsing_util::ListType GetHashThreatListType( in GetHashThreatListType() 81 return static_cast<safe_browsing_util::ListType>(full_hashes[i].list_id); in GetHashThreatListType() 84 return safe_browsing_util::INVALID; in GetHashThreatListType() 90 safe_browsing_util::ListType GetUrlThreatListType( in GetUrlThreatListType() 95 return safe_browsing_util::INVALID; in GetUrlThreatListType() 98 safe_browsing_util::GeneratePatternsToCheck(url, &patterns); in GetUrlThreatListType() 101 safe_browsing_util::ListType threat = GetHashThreatListType( in GetUrlThreatListType() 103 if (threat != safe_browsing_util::INVALID) in GetUrlThreatListType() [all …]
|
D | safe_browsing_database.cc | 111 DCHECK_NE(list_id, safe_browsing_util::INVALID); in EncodeChunkId() 132 safe_browsing_util::GenerateHostsToCheck(url, &hosts); in BrowseFullHashesToCheck() 136 safe_browsing_util::GeneratePathsToCheck(url, &paths); in BrowseFullHashesToCheck() 245 DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2, in UpdateChunkRanges() 247 DCHECK_NE(safe_browsing_util::GetListId(listname), in UpdateChunkRanges() 248 safe_browsing_util::INVALID); in UpdateChunkRanges() 423 if (list_id == safe_browsing_util::PHISH || in GetStore() 424 list_id == safe_browsing_util::MALWARE) { in GetStore() 426 } else if (list_id == safe_browsing_util::BINURL) { in GetStore() 428 } else if (list_id == safe_browsing_util::CSDWHITELIST) { in GetStore() [all …]
|
D | protocol_parser_unittest.cc | 404 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[0].list_id); in TEST() 408 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[1].list_id); in TEST() 412 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[2].list_id); in TEST() 431 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[0].list_id); in TEST() 435 EXPECT_EQ(safe_browsing_util::MALWARE, full_hashes[1].list_id); in TEST() 439 EXPECT_EQ(safe_browsing_util::MALWARE, full_hashes[2].list_id); in TEST() 459 EXPECT_EQ(safe_browsing_util::MALWARE, full_hashes[0].list_id); in TEST() 464 EXPECT_EQ(safe_browsing_util::MALWARE, full_hashes[1].list_id); in TEST() 469 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[2].list_id); in TEST() 491 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[0].list_id); in TEST() [all …]
|
D | database_manager.h | 61 safe_browsing_util::ListType check_type, 77 safe_browsing_util::ListType check_type; // See comment in constructor. 227 QueuedCheck(const safe_browsing_util::ListType check_type, 233 safe_browsing_util::ListType check_type;
|
D | safe_browsing_service_browsertest.cc | 133 return ContainsUrl(safe_browsing_util::MALWARE, in ContainsBrowseUrl() 134 safe_browsing_util::PHISH, in ContainsBrowseUrl() 141 bool found = ContainsUrl(safe_browsing_util::BINURL, in ContainsDownloadUrl() 142 safe_browsing_util::BINURL, in ContainsDownloadUrl() 382 safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL); in GenUrlFullhashResult() 531 GenUrlFullhashResult(url, safe_browsing_util::MALWARE, full_hash); in GenUrlFullhashResultWithMetadata() 643 GenUrlFullhashResult(url, safe_browsing_util::MALWARE, &malware_full_hash); in IN_PROC_BROWSER_TEST_F() 702 GenUrlFullhashResult(malware_url, safe_browsing_util::MALWARE, in IN_PROC_BROWSER_TEST_F() 787 GenUrlFullhashResult(badbin_url, safe_browsing_util::BINURL, in IN_PROC_BROWSER_TEST_F() 813 GenUrlFullhashResult(badbin_url, safe_browsing_util::BINURL, in IN_PROC_BROWSER_TEST_F() [all …]
|
D | protocol_manager.cc | 611 if (lists[i].name == safe_browsing_util::kPhishingList) in OnGetChunksComplete() 614 if (lists[i].name == safe_browsing_util::kMalwareList) in OnGetChunksComplete() 625 SBListChunkRanges(safe_browsing_util::kPhishingList))); in OnGetChunksComplete() 629 SBListChunkRanges(safe_browsing_util::kMalwareList))); in OnGetChunksComplete()
|
D | safe_browsing_database.h | 394 safe_browsing_util::ListType list_id, 397 safe_browsing_util::ListType list_id,
|
D | safe_browsing_util.h | 156 namespace safe_browsing_util {
|
D | protocol_parser.cc | 202 full_hash.list_id = safe_browsing_util::GetListId(cmd_parts[0]); in ParseGetHash()
|
D | safe_browsing_blocking_page_test.cc | 107 safe_browsing_util::MALWARE, in OnCheckBrowseURLDone()
|
D | protocol_manager_unittest.cc | 407 SBListChunkRanges range_phish(safe_browsing_util::kPhishingList); in TEST_F()
|
D | download_protection_service_unittest.cc | 188 safe_browsing_util::BINURL, in ACTION_P()
|
/external/chromium_org/chrome/browser/extensions/ |
D | fake_safe_browsing_database_manager.cc | 103 safe_browsing_util::StringToSBFullHash); in CheckExtensionIDs() 110 safe_browsing_util::EXTENSIONBLACKLIST, in CheckExtensionIDs()
|
/external/chromium_org/chrome/browser/prerender/ |
D | prerender_browsertest.cc | 711 safe_browsing_util::MALWARE, in OnCheckBrowseURLDone()
|
/external/chromium_org/chrome/ |
D | chrome_browser.gypi | 2551 'browser/safe_browsing/safe_browsing_util.cc', 2552 'browser/safe_browsing/safe_browsing_util.h',
|