/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_util_unittest.cc | 9 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 30 safe_browsing_util::GenerateHostsToCheck(url, &hosts); 31 safe_browsing_util::GeneratePathsToCheck(url, &paths); 43 safe_browsing_util::GenerateHostsToCheck(url, &hosts); 44 safe_browsing_util::GeneratePathsToCheck(url, &paths); 56 safe_browsing_util::GeneratePathsToCheck(url, &paths); 271 safe_browsing_util::CanonicalizeUrl(url, &canonicalized_hostname, 292 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), 0); 295 EXPECT_EQ(safe_browsing_util::GetUrlHashIndex(url, full_hashes), -1); 300 EXPECT_FALSE(safe_browsing_util::GetListName(safe_browsing_util::INVALID [all...] |
safe_browsing_database_unittest.cc | 303 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); 310 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); 317 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); 321 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); 333 database_->InsertChunks(safe_browsing_util::kMalwareList, chunks); 337 EXPECT_TRUE(lists[0].name == safe_browsing_util::kMalwareList); 344 EXPECT_TRUE(lists[1].name == safe_browsing_util::kPhishingList); 356 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); 364 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks); 371 database_->InsertChunks(safe_browsing_util::kPhishingList, chunks) [all...] |
safe_browsing_service_browsertest.cc | 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 55 return ContainsUrl(safe_browsing_util::kMalwareList, 56 safe_browsing_util::kPhishingList, 62 bool found = ContainsUrl(safe_browsing_util::kBinUrlList, 63 safe_browsing_util::kBinHashList, 265 safe_browsing_util::CanonicalizeUrl(url, &host, &path, NULL); 276 safe_browsing_util::StringToSBFullHash(full_digest, &full_hash->hash); 331 safe_browsing_util::StringToSBFullHash(digest, &full_hash); 386 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, 420 GenUrlFullhashResult(malware_url, safe_browsing_util::kMalwareList [all...] |
safe_browsing_database.cc | 62 DCHECK_NE(list_id, safe_browsing_util::INVALID); 72 // |CompareFullHashes()| in safe_browsing_util.cc, except that code 83 safe_browsing_util::GenerateHostsToCheck(url, &hosts); 87 safe_browsing_util::GeneratePathsToCheck(url, &paths); 150 DCHECK(list_bit == safe_browsing_util::MALWARE || 151 list_bit == safe_browsing_util::PHISH); 152 if (!safe_browsing_util::GetListName(list_bit, &result.list_name)) 206 DCHECK_EQ(safe_browsing_util::GetListId(listname) % 2, 208 DCHECK_NE(safe_browsing_util::GetListId(listname), 209 safe_browsing_util::INVALID) [all...] |
safe_browsing_util.cc | 5 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 163 namespace safe_browsing_util { namespace 174 if (name == safe_browsing_util::kMalwareList) { 176 } else if (name == safe_browsing_util::kPhishingList) { 178 } else if (name == safe_browsing_util::kBinUrlList) { 180 } else if (name == safe_browsing_util::kBinHashList) { 182 } else if (name == safe_browsing_util::kCsdWhiteList) { 193 *list = safe_browsing_util::kMalwareList; 196 *list = safe_browsing_util::kPhishingList; 199 *list = safe_browsing_util::kBinUrlList [all...] |
protocol_parser_unittest.cc | 9 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 22 safe_browsing_util::kMalwareList, 75 safe_browsing_util::kMalwareList, 106 safe_browsing_util::kMalwareList, 168 safe_browsing_util::kMalwareList, 196 safe_browsing_util::kBinHashList, 212 // For safe_browsing_util::kMalwareList. 214 safe_browsing_util::kMalwareList, 221 // For safe_browsing_util::kPhishingList. 223 safe_browsing_util::kPhishingList [all...] |
protocol_parser.cc | 10 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 76 if (!safe_browsing_util::VerifyMAC(key, line, data, length)) 99 if (safe_browsing_util::GetListId(full_hash.list_name) < 0) { 202 !safe_browsing_util::VerifyMAC(key, cmd_parts[1], data, length)) 262 !safe_browsing_util::VerifyMAC(key, mac, data, length)) { 340 if (list_name == safe_browsing_util::kBinHashList) { 378 if (list_name == safe_browsing_util::kBinHashList) {
|
safe_browsing_service.cc | 146 safe_browsing_util::SBFullHashToString(*check.full_hash), 237 safe_browsing_util::StringToSBFullHash(full_hash, check->full_hash.get()); 827 if (safe_browsing_util::IsPhishingList(list_name)) { 831 if (safe_browsing_util::IsMalwareList(list_name)) { 835 if (safe_browsing_util::IsBadbinurlList(list_name)) { 839 if (safe_browsing_util::IsBadbinhashList(list_name)) { [all...] |
protocol_manager.cc | 597 if (lists[i].name == safe_browsing_util::kPhishingList) 600 if (lists[i].name == safe_browsing_util::kMalwareList) 608 SBListChunkRanges(safe_browsing_util::kPhishingList), use_mac)); 612 SBListChunkRanges(safe_browsing_util::kMalwareList), use_mac));
|
filter_false_positive_perftest.cc | 72 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 170 safe_browsing_util::GenerateHostsToCheck(url_check, &hosts); 174 safe_browsing_util::GeneratePathsToCheck(url_check, &paths);
|
safe_browsing_util.h | 259 namespace safe_browsing_util { namespace 324 } // namespace safe_browsing_util
|
safe_browsing_blocking_page.cc | 465 safe_browsing_util::GeneratePhishingReportUrl(kSbReportPhishingUrl,
|
/external/chromium/chrome/browser/ |
bug_report_util.cc | 19 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 384 safe_browsing_util::GeneratePhishingReportUrl(
|