/external/chromium_org/chrome/browser/safe_browsing/ |
D | protocol_parser_unittest.cc | 395 std::vector<SBFullHashResult> full_hashes; in TEST() local 398 &cache_lifetime, &full_hashes)); in TEST() 400 ASSERT_EQ(3U, full_hashes.size()); in TEST() 401 EXPECT_EQ(memcmp(&full_hashes[0].hash, in TEST() 404 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[0].list_id); in TEST() 405 EXPECT_EQ(memcmp(&full_hashes[1].hash, in TEST() 408 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[1].list_id); in TEST() 409 EXPECT_EQ(memcmp(&full_hashes[2].hash, in TEST() 412 EXPECT_EQ(safe_browsing_util::PHISH, full_hashes[2].list_id); in TEST() 425 &cache_lifetime, &full_hashes)); in TEST() [all …]
|
D | database_manager_unittest.cc | 83 std::vector<SBFullHashResult> full_hashes; in TEST_F() local 97 full_hashes.push_back(full_hash); in TEST_F() 104 full_hashes.push_back(full_hash); in TEST_F() 109 kMalwareHostHash, full_hashes)); in TEST_F() 113 kPhishingHostHash, full_hashes)); in TEST_F() 117 kSafeHostHash, full_hashes)); in TEST_F() 122 kMalwareUrl, full_hashes, &index)); in TEST_F() 127 kPhishingUrl, full_hashes, &index)); in TEST_F() 133 kSafeUrl, full_hashes, &index)); in TEST_F()
|
D | database_manager.cc | 50 const std::vector<SBFullHashResult>& full_hashes) { in RecordGetHashCheckStatus() argument 52 if (full_hashes.empty()) { in RecordGetHashCheckStatus() 75 const std::vector<SBFullHashResult>& full_hashes, in GetHashThreatListType() argument 77 for (size_t i = 0; i < full_hashes.size(); ++i) { in GetHashThreatListType() 78 if (SBFullHashEqual(hash, full_hashes[i].hash)) { in GetHashThreatListType() 81 return static_cast<safe_browsing_util::ListType>(full_hashes[i].list_id); in GetHashThreatListType() 92 const std::vector<SBFullHashResult>& full_hashes, in GetUrlThreatListType() argument 94 if (full_hashes.empty()) in GetUrlThreatListType() 102 SBFullHashForString(patterns[i]), full_hashes, index); in GetUrlThreatListType() 130 const std::vector<SBFullHashResult>& full_hashes) { in GetHashThreatType() argument [all …]
|
D | safe_browsing_database.cc | 127 std::vector<SBFullHash>* full_hashes) { in BrowseFullHashesToCheck() argument 141 full_hashes->push_back(SBFullHashForString(hosts[i] + path)); in BrowseFullHashesToCheck() 149 full_hashes->push_back( in BrowseFullHashesToCheck() 159 std::vector<SBFullHash> full_hashes; in GetDownloadUrlPrefixes() local 161 BrowseFullHashesToCheck(urls[i], false, &full_hashes); in GetDownloadUrlPrefixes() 163 for (size_t i = 0; i < full_hashes.size(); ++i) in GetDownloadUrlPrefixes() 164 prefixes->push_back(full_hashes[i].prefix); in GetDownloadUrlPrefixes() 302 std::vector<SBFullHashResult>& cached_hashes = cached_result.full_hashes; in GetCachedFullHash() 532 std::vector<SBAddFullHash> full_hashes; in Init() local 533 if (csd_whitelist_store_->GetAddFullHashes(&full_hashes)) { in Init() [all …]
|
D | safe_browsing_database_unittest.cc | 147 const SBFullHash full_hashes[2] = { in AddChunkFullHash2Value() local 153 &full_hashes[0], sizeof(full_hashes), in AddChunkFullHash2Value() 925 ->second.full_hashes.empty()); in TEST_F() 930 ->second.full_hashes.empty()); in TEST_F() 1613 std::vector<SBFullHash> full_hashes(1, kFullHash1_1); in TEST_F() local 1617 full_hashes, &prefix_hits, &cache_hits)); in TEST_F() 1620 full_hashes.push_back(kFullHash2_1); in TEST_F() 1624 full_hashes, &prefix_hits, &cache_hits)); in TEST_F() 1660 std::vector<SBFullHash> full_hashes; in TEST_F() local 1661 full_hashes.push_back(kFullHash1_1); in TEST_F() [all …]
|
D | prefix_set.cc | 92 std::vector<SBFullHash>* full_hashes) { in PrefixSet() argument 93 DCHECK(index && deltas && full_hashes); in PrefixSet() 96 full_hashes_.swap(*full_hashes); in PrefixSet() 201 std::vector<SBFullHash> full_hashes; in LoadFile() local 203 sizeof(full_hashes[0]) * header.full_hashes_size; in LoadFile() 237 full_hashes.resize(header.full_hashes_size); in LoadFile() 238 read = fread(&(full_hashes[0]), sizeof(full_hashes[0]), full_hashes.size(), in LoadFile() 240 if (read != full_hashes.size()) in LoadFile() 244 reinterpret_cast<char*>(&(full_hashes[0])), in LoadFile() 260 return scoped_ptr<PrefixSet>(new PrefixSet(&index, &deltas, &full_hashes)); in LoadFile()
|
D | protocol_parser.cc | 136 std::vector<SBFullHashResult>* full_hashes) { in ParseGetHashMetadata() argument 150 if (full_hashes) { in ParseGetHashMetadata() 151 (*full_hashes)[full_hashes->size() - hash_count + i].metadata.assign( in ParseGetHashMetadata() 174 std::vector<SBFullHashResult>* full_hashes) { in ParseGetHash() argument 175 full_hashes->clear(); in ParseGetHash() 241 full_hashes->push_back(full_hash); in ParseGetHash() 244 if (has_metadata && !ParseGetHashMetadata(hash_count, &reader, full_hashes)) in ParseGetHash()
|
D | database_manager.h | 59 const std::vector<SBFullHash>& full_hashes, 71 std::vector<SBFullHash> full_hashes; member 188 const std::vector<SBFullHashResult>& full_hashes, 244 const std::vector<SBFullHashResult>& full_hashes); 251 const std::vector<SBFullHashResult>& full_hashes, 313 const std::vector<SBFullHashResult>& full_hashes); 318 const std::vector<SBFullHashResult>& full_hashes);
|
D | protocol_manager.cc | 181 std::vector<SBFullHashResult> full_hashes; in GetFullHash() local 182 callback.Run(full_hashes, base::TimeDelta()); in GetFullHash() 237 std::vector<SBFullHashResult> full_hashes; in OnURLFetchComplete() local 254 data.data(), data.length(), &cache_lifetime, &full_hashes)) { in OnURLFetchComplete() 255 full_hashes.clear(); in OnURLFetchComplete() 276 details.callback.Run(full_hashes, cache_lifetime); in OnURLFetchComplete()
|
D | safe_browsing_database.h | 347 bool ContainsBrowseUrlHashes(const std::vector<SBFullHash>& full_hashes, 372 void LoadWhitelist(const std::vector<SBAddFullHash>& full_hashes, 380 void LoadIpBlacklist(const std::vector<SBAddFullHash>& full_hashes);
|
D | protocol_parser.h | 55 std::vector<SBFullHashResult>* full_hashes);
|
D | prefix_set.h | 129 std::vector<SBFullHash>* full_hashes);
|
D | safe_browsing_util.h | 103 std::vector<SBFullHashResult> full_hashes; member
|