safe_browsing_util 103 chrome/browser/extensions/fake_safe_browsing_database_manager.cc safe_browsing_util::StringToSBFullHash); safe_browsing_util 110 chrome/browser/extensions/fake_safe_browsing_database_manager.cc safe_browsing_util::EXTENSIONBLACKLIST, safe_browsing_util 677 chrome/browser/prerender/prerender_browsertest.cc safe_browsing_util::MALWARE, safe_browsing_util 49 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::ListType check_type, safe_browsing_util 59 chrome/browser/safe_browsing/database_manager.cc bool is_download = check_type == safe_browsing_util::BINURL; safe_browsing_util 77 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::ListType check_type, safe_browsing_util 100 chrome/browser/safe_browsing/database_manager.cc case safe_browsing_util::MALWARE: safe_browsing_util 101 chrome/browser/safe_browsing/database_manager.cc case safe_browsing_util::PHISH: safe_browsing_util 105 chrome/browser/safe_browsing/database_manager.cc case safe_browsing_util::BINURL: safe_browsing_util 117 chrome/browser/safe_browsing/database_manager.cc case safe_browsing_util::EXTENSIONBLACKLIST: { safe_browsing_util 121 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::SBFullHashToString(check.full_hashes[i]); safe_browsing_util 220 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::BINURL, safe_browsing_util 241 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::StringToSBFullHash); safe_browsing_util 247 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::EXTENSIONBLACKLIST, safe_browsing_util 330 chrome/browser/safe_browsing/database_manager.cc QueuedCheck queued_check(safe_browsing_util::MALWARE, // or PHISH safe_browsing_util 357 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::MALWARE, safe_browsing_util 509 chrome/browser/safe_browsing/database_manager.cc const safe_browsing_util::ListType check_type, safe_browsing_util 680 chrome/browser/safe_browsing/database_manager.cc bool is_download = check->check_type == safe_browsing_util::BINURL; safe_browsing_util 789 chrome/browser/safe_browsing/database_manager.cc if (safe_browsing_util::IsPhishingList(list_name)) { safe_browsing_util 793 chrome/browser/safe_browsing/database_manager.cc if (safe_browsing_util::IsMalwareList(list_name)) { safe_browsing_util 797 chrome/browser/safe_browsing/database_manager.cc if (safe_browsing_util::IsBadbinurlList(list_name)) { safe_browsing_util 801 chrome/browser/safe_browsing/database_manager.cc if (safe_browsing_util::IsExtensionList(list_name)) { safe_browsing_util 858 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::ListType check_type = check->check_type; safe_browsing_util 890 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::GetUrlHashIndex(check->urls[i], full_hashes); safe_browsing_util 904 chrome/browser/safe_browsing/database_manager.cc safe_browsing_util::GetHashIndex(check->full_hashes[i], full_hashes); safe_browsing_util 61 chrome/browser/safe_browsing/database_manager.h safe_browsing_util::ListType check_type, safe_browsing_util 76 chrome/browser/safe_browsing/database_manager.h safe_browsing_util::ListType check_type; // See comment in constructor. safe_browsing_util 222 chrome/browser/safe_browsing/database_manager.h QueuedCheck(const safe_browsing_util::ListType check_type, safe_browsing_util 228 chrome/browser/safe_browsing/database_manager.h safe_browsing_util::ListType check_type; safe_browsing_util 52 chrome/browser/safe_browsing/database_manager_unittest.cc bool RunSBHashTest(const safe_browsing_util::ListType list_type, safe_browsing_util 62 chrome/browser/safe_browsing/database_manager_unittest.cc const safe_browsing_util::ListType list_type, safe_browsing_util 96 chrome/browser/safe_browsing/database_manager_unittest.cc EXPECT_FALSE(RunSBHashTest(safe_browsing_util::BINURL, safe_browsing_util 98 chrome/browser/safe_browsing/database_manager_unittest.cc safe_browsing_util::kMalwareList)); safe_browsing_util 99 chrome/browser/safe_browsing/database_manager_unittest.cc EXPECT_TRUE(RunSBHashTest(safe_browsing_util::BINURL, safe_browsing_util 101 chrome/browser/safe_browsing/database_manager_unittest.cc safe_browsing_util::kBinUrlList)); safe_browsing_util 107 chrome/browser/safe_browsing/database_manager_unittest.cc EXPECT_FALSE(RunSBHashTest(safe_browsing_util::MALWARE, safe_browsing_util 109 chrome/browser/safe_browsing/database_manager_unittest.cc safe_browsing_util::kBinUrlList)); safe_browsing_util 110 chrome/browser/safe_browsing/database_manager_unittest.cc EXPECT_TRUE(RunSBHashTest(safe_browsing_util::MALWARE, safe_browsing_util 112 chrome/browser/safe_browsing/database_manager_unittest.cc safe_browsing_util::kMalwareList)); safe_browsing_util 181 chrome/browser/safe_browsing/download_protection_service_unittest.cc safe_browsing_util::BINURL, safe_browsing_util 604 chrome/browser/safe_browsing/protocol_manager.cc if (lists[i].name == safe_browsing_util::kPhishingList) safe_browsing_util 607 chrome/browser/safe_browsing/protocol_manager.cc if (lists[i].name == safe_browsing_util::kMalwareList) safe_browsing_util 615 chrome/browser/safe_browsing/protocol_manager.cc SBListChunkRanges(safe_browsing_util::kPhishingList))); safe_browsing_util 619 chrome/browser/safe_browsing/protocol_manager.cc SBListChunkRanges(safe_browsing_util::kMalwareList))); safe_browsing_util 342 chrome/browser/safe_browsing/protocol_manager_unittest.cc SBListChunkRanges range_phish(safe_browsing_util::kPhishingList); safe_browsing_util 73 chrome/browser/safe_browsing/protocol_parser.cc if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { safe_browsing_util 266 chrome/browser/safe_browsing/protocol_parser.cc if (list_name == safe_browsing_util::kDownloadWhiteList || safe_browsing_util 267 chrome/browser/safe_browsing/protocol_parser.cc list_name == safe_browsing_util::kExtensionBlacklist || safe_browsing_util 268 chrome/browser/safe_browsing/protocol_parser.cc list_name == safe_browsing_util::kIPBlacklist) { safe_browsing_util 315 chrome/browser/safe_browsing/protocol_parser.cc if (list_name == safe_browsing_util::kDownloadWhiteList || safe_browsing_util 316 chrome/browser/safe_browsing/protocol_parser.cc list_name == safe_browsing_util::kExtensionBlacklist || safe_browsing_util 317 chrome/browser/safe_browsing/protocol_parser.cc list_name == safe_browsing_util::kIPBlacklist) { safe_browsing_util 24 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 75 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 104 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 164 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 189 chrome/browser/safe_browsing/protocol_parser_unittest.cc bool result = parser.ParseChunk(safe_browsing_util::kExtensionBlacklist, safe_browsing_util 205 chrome/browser/safe_browsing/protocol_parser_unittest.cc bool result = parser.ParseChunk(safe_browsing_util::kMalwareList, safe_browsing_util 213 chrome/browser/safe_browsing/protocol_parser_unittest.cc result = parser.ParseChunk(safe_browsing_util::kPhishingList, safe_browsing_util 221 chrome/browser/safe_browsing/protocol_parser_unittest.cc result = parser.ParseChunk(safe_browsing_util::kBinUrlList, safe_browsing_util 237 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 255 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 314 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 548 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 563 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 594 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 611 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kMalwareList, safe_browsing_util 644 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kExtensionBlacklist, safe_browsing_util 680 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kExtensionBlacklist, safe_browsing_util 703 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kExtensionBlacklist, safe_browsing_util 731 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kDownloadWhiteList, safe_browsing_util 769 chrome/browser/safe_browsing/protocol_parser_unittest.cc safe_browsing_util::kDownloadWhiteList, safe_browsing_util 794 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kMalwareList] = std::string( safe_browsing_util 798 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kPhishingList] = std::string( safe_browsing_util 800 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kBinUrlList] = std::string( safe_browsing_util 803 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kSideEffectFreeWhitelist] = std::string( safe_browsing_util 806 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kExtensionBlacklist] = std::string( safe_browsing_util 810 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kCsdWhiteList] = std::string( safe_browsing_util 815 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kDownloadWhiteList] = std::string( safe_browsing_util 818 chrome/browser/safe_browsing/protocol_parser_unittest.cc add_testdata[safe_browsing_util::kIPBlacklist] = std::string( safe_browsing_util 825 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kMalwareList] = std::string( safe_browsing_util 827 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kPhishingList] = std::string( safe_browsing_util 829 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kBinUrlList] = std::string( safe_browsing_util 831 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kSideEffectFreeWhitelist] = std::string( safe_browsing_util 834 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kExtensionBlacklist] = std::string( safe_browsing_util 838 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kCsdWhiteList] = std::string( safe_browsing_util 844 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kDownloadWhiteList] = std::string( safe_browsing_util 848 chrome/browser/safe_browsing/protocol_parser_unittest.cc sub_testdata[safe_browsing_util::kIPBlacklist] = std::string( safe_browsing_util 857 chrome/browser/safe_browsing/protocol_parser_unittest.cc for (size_t i = 0; i < arraysize(safe_browsing_util::kAllLists); ++i) { safe_browsing_util 858 chrome/browser/safe_browsing/protocol_parser_unittest.cc std::string listname = safe_browsing_util::kAllLists[i]; safe_browsing_util 404 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc safe_browsing_util::GeneratePhishingReportUrl( safe_browsing_util 110 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc safe_browsing_util::MALWARE, safe_browsing_util 104 chrome/browser/safe_browsing/safe_browsing_database.cc DCHECK_NE(list_id, safe_browsing_util::INVALID); safe_browsing_util 125 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::GenerateHostsToCheck(url, &hosts); safe_browsing_util 129 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::GeneratePathsToCheck(url, &paths); safe_browsing_util 216 chrome/browser/safe_browsing/safe_browsing_database.cc DCHECK(list_bit == safe_browsing_util::MALWARE || safe_browsing_util 217 chrome/browser/safe_browsing/safe_browsing_database.cc list_bit == safe_browsing_util::PHISH); safe_browsing_util 218 chrome/browser/safe_browsing/safe_browsing_database.cc const safe_browsing_util::ListType list_id = safe_browsing_util 219 chrome/browser/safe_browsing/safe_browsing_database.cc static_cast<safe_browsing_util::ListType>(list_bit); safe_browsing_util 220 chrome/browser/safe_browsing/safe_browsing_database.cc if (!safe_browsing_util::GetListName(list_id, &result.list_name)) safe_browsing_util 283 chrome/browser/safe_browsing/safe_browsing_database.cc DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2, safe_browsing_util 285 chrome/browser/safe_browsing/safe_browsing_database.cc DCHECK_NE(safe_browsing_util::GetListId(listname), safe_browsing_util 286 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::INVALID); safe_browsing_util 441 chrome/browser/safe_browsing/safe_browsing_database.cc if (list_id == safe_browsing_util::PHISH || safe_browsing_util 442 chrome/browser/safe_browsing/safe_browsing_database.cc list_id == safe_browsing_util::MALWARE) { safe_browsing_util 444 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::BINURL) { safe_browsing_util 446 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::CSDWHITELIST) { safe_browsing_util 448 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::DOWNLOADWHITELIST) { safe_browsing_util 450 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::EXTENSIONBLACKLIST) { safe_browsing_util 452 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::SIDEEFFECTFREEWHITELIST) { safe_browsing_util 454 chrome/browser/safe_browsing/safe_browsing_database.cc } else if (list_id == safe_browsing_util::IPBLACKLIST) { safe_browsing_util 735 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::BINURL % 2, safe_browsing_util 763 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::EXTENSIONBLACKLIST % 2, safe_browsing_util 773 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::CanonicalizeUrl(url, &host, &path, &query); safe_browsing_util 896 chrome/browser/safe_browsing/safe_browsing_database.cc const safe_browsing_util::ListType list_id, safe_browsing_util 971 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::ListType list_id, safe_browsing_util 1005 chrome/browser/safe_browsing/safe_browsing_database.cc const safe_browsing_util::ListType list_id = safe_browsing_util 1006 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::GetListId(list_name); safe_browsing_util 1033 chrome/browser/safe_browsing/safe_browsing_database.cc const safe_browsing_util::ListType list_id = safe_browsing_util 1034 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::GetListId(list_name); safe_browsing_util 1071 chrome/browser/safe_browsing/safe_browsing_database.cc const int list_id = safe_browsing_util::GetListId(iter->list_name); safe_browsing_util 1072 chrome/browser/safe_browsing/safe_browsing_database.cc if (list_id == safe_browsing_util::MALWARE || safe_browsing_util 1073 chrome/browser/safe_browsing/safe_browsing_database.cc list_id == safe_browsing_util::PHISH) { safe_browsing_util 1141 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kMalwareList, safe_browsing_util 1142 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kPhishingList, safe_browsing_util 1150 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kBinUrlList, lists); safe_browsing_util 1153 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kCsdWhiteList, lists); safe_browsing_util 1156 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kDownloadWhiteList, lists); safe_browsing_util 1159 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kExtensionBlacklist, lists); safe_browsing_util 1162 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kSideEffectFreeWhitelist, lists); safe_browsing_util 1165 chrome/browser/safe_browsing/safe_browsing_database.cc safe_browsing_util::kIPBlacklist, lists); safe_browsing_util 379 chrome/browser/safe_browsing/safe_browsing_database.h void InsertAddChunks(safe_browsing_util::ListType list_id, safe_browsing_util 382 chrome/browser/safe_browsing/safe_browsing_database.h void InsertSubChunks(safe_browsing_util::ListType list_id, safe_browsing_util 307 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 314 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 321 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 325 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 337 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 341 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 348 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList); safe_browsing_util 360 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 368 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 375 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 379 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 382 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList); safe_browsing_util 415 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 422 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 429 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kBinUrlList, chunks); safe_browsing_util 436 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kCsdWhiteList, chunks); safe_browsing_util 444 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kDownloadWhiteList, chunks); safe_browsing_util 453 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kExtensionBlacklist, chunks); safe_browsing_util 460 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 466 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 469 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList); safe_browsing_util 472 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[2].name == safe_browsing_util::kBinUrlList); safe_browsing_util 475 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[3].name == safe_browsing_util::kCsdWhiteList); safe_browsing_util 478 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[4].name == safe_browsing_util::kDownloadWhiteList); safe_browsing_util 481 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[5].name == safe_browsing_util::kExtensionBlacklist); safe_browsing_util 484 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[6].name == safe_browsing_util::kIPBlacklist); safe_browsing_util 503 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 514 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 522 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 527 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 592 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 596 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 607 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 640 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 652 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 656 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 661 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 2); safe_browsing_util 680 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 693 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 697 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 44); safe_browsing_util 700 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc SubDelChunk(safe_browsing_util::kMalwareList, 4); safe_browsing_util 704 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); safe_browsing_util 717 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 733 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 766 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 779 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 784 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 810 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 832 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 21); safe_browsing_util 840 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc SubDelChunk(safe_browsing_util::kMalwareList, 7); safe_browsing_util 860 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 866 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc full_hash.list_name = safe_browsing_util::kMalwareList; safe_browsing_util 921 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 946 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 1); safe_browsing_util 994 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 1); safe_browsing_util 1038 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1071 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1094 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, 20); safe_browsing_util 1159 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1175 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1210 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kBinUrlList, chunks); safe_browsing_util 1355 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kCsdWhiteList, safe_browsing_util 1357 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kDownloadWhiteList, safe_browsing_util 1413 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kCsdWhiteList, csd_chunks); safe_browsing_util 1432 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kCsdWhiteList, csd_chunks); safe_browsing_util 1433 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kDownloadWhiteList, safe_browsing_util 1478 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kCsdWhiteList, csd_chunks); safe_browsing_util 1479 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kDownloadWhiteList, safe_browsing_util 1523 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1527 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_EQ(std::string(safe_browsing_util::kMalwareList), lists[0].name); safe_browsing_util 1541 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 1545 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_EQ(std::string(safe_browsing_util::kMalwareList), lists[0].name); safe_browsing_util 1547 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc EXPECT_EQ(std::string(safe_browsing_util::kPhishingList), lists[1].name); safe_browsing_util 1578 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1588 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); safe_browsing_util 1623 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1644 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1653 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc AddDelChunk(safe_browsing_util::kMalwareList, chunk.chunk_number); safe_browsing_util 1684 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); safe_browsing_util 1748 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 1755 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 1762 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 1769 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 1776 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 1783 chrome/browser/safe_browsing/safe_browsing_database_unittest.cc database_->InsertChunks(safe_browsing_util::kIPBlacklist, chunks); safe_browsing_util 92 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc return ContainsUrl(safe_browsing_util::kMalwareList, safe_browsing_util 93 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc safe_browsing_util::kPhishingList, safe_browsing_util 100 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc bool found = ContainsUrl(safe_browsing_util::kBinUrlList, safe_browsing_util 101 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc safe_browsing_util::kBinUrlList, safe_browsing_util 341 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL); safe_browsing_util 351 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc full_hash->hash = safe_browsing_util::StringToSBFullHash(full_digest); safe_browsing_util 406 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc safe_browsing_util::StringToSBFullHash(digest).prefix); safe_browsing_util 494 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, safe_browsing_util 515 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, safe_browsing_util 576 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(malware_url, safe_browsing_util::kMalwareList, safe_browsing_util 662 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(badbin_url, safe_browsing_util::kBinUrlList, safe_browsing_util 689 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(badbin_url, safe_browsing_util::kBinUrlList, safe_browsing_util 706 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc GenUrlFullhashResult(badbin_url, safe_browsing_util::kBinUrlList, safe_browsing_util 163 chrome/browser/safe_browsing/safe_browsing_util.cc for (size_t i = 0; i < arraysize(safe_browsing_util::kAllLists); ++i) { safe_browsing_util 164 chrome/browser/safe_browsing/safe_browsing_util.cc if (!strcmp(safe_browsing_util::kAllLists[i], name.c_str())) { safe_browsing_util 197 chrome/browser/safe_browsing/safe_browsing_util.cc if (name == safe_browsing_util::kMalwareList) { safe_browsing_util 199 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kPhishingList) { safe_browsing_util 201 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kBinUrlList) { safe_browsing_util 203 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kCsdWhiteList) { safe_browsing_util 205 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kDownloadWhiteList) { safe_browsing_util 207 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kExtensionBlacklist) { safe_browsing_util 209 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kSideEffectFreeWhitelist) { safe_browsing_util 211 chrome/browser/safe_browsing/safe_browsing_util.cc } else if (name == safe_browsing_util::kIPBlacklist) { safe_browsing_util 222 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kMalwareList; safe_browsing_util 225 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kPhishingList; safe_browsing_util 228 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kBinUrlList; safe_browsing_util 231 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kCsdWhiteList; safe_browsing_util 234 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kDownloadWhiteList; safe_browsing_util 237 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kExtensionBlacklist; safe_browsing_util 240 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kSideEffectFreeWhitelist; safe_browsing_util 243 chrome/browser/safe_browsing/safe_browsing_util.cc *list = safe_browsing_util::kIPBlacklist; safe_browsing_util 283 chrome/browser/safe_browsing/safe_browsing_util.h namespace safe_browsing_util { safe_browsing_util 29 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GenerateHostsToCheck(url, &hosts); safe_browsing_util 30 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GeneratePathsToCheck(url, &paths); safe_browsing_util 42 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GenerateHostsToCheck(url, &hosts); safe_browsing_util 43 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GeneratePathsToCheck(url, &paths); safe_browsing_util 55 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GeneratePathsToCheck(url, &paths); safe_browsing_util 270 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname, safe_browsing_util 289 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), 0); safe_browsing_util 292 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), -1); safe_browsing_util 297 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID, safe_browsing_util 299 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_TRUE(safe_browsing_util::GetListName(safe_browsing_util::MALWARE, safe_browsing_util 301 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(list_name, std::string(safe_browsing_util::kMalwareList)); safe_browsing_util 302 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(safe_browsing_util::MALWARE, safe_browsing_util 303 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GetListId(list_name)); safe_browsing_util 305 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_TRUE(safe_browsing_util::GetListName(safe_browsing_util::PHISH, safe_browsing_util 307 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(list_name, std::string(safe_browsing_util::kPhishingList)); safe_browsing_util 308 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(safe_browsing_util::PHISH, safe_browsing_util 309 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GetListId(list_name)); safe_browsing_util 311 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_TRUE(safe_browsing_util::GetListName(safe_browsing_util::BINURL, safe_browsing_util 313 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(list_name, std::string(safe_browsing_util::kBinUrlList)); safe_browsing_util 314 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(safe_browsing_util::BINURL, safe_browsing_util 315 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc safe_browsing_util::GetListId(list_name)); safe_browsing_util 322 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(0, safe_browsing_util::MALWARE % 2); safe_browsing_util 323 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(1, safe_browsing_util::PHISH % 2); safe_browsing_util 324 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc EXPECT_EQ(0, safe_browsing_util::BINURL %2); safe_browsing_util 330 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc SBFullHash hash_out = safe_browsing_util::StringToSBFullHash(hash_in); safe_browsing_util 334 chrome/browser/safe_browsing/safe_browsing_util_unittest.cc std::string hash_final = safe_browsing_util::SBFullHashToString(hash_out);