Home
last modified time | relevance | path

Searched refs:SBFullHash (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/chrome/browser/safe_browsing/
Dsafe_browsing_util.h37 union SBFullHash { union
42 inline bool SBFullHashEqual(const SBFullHash& a, const SBFullHash& b) { in SBFullHashEqual()
46 inline bool SBFullHashLess(const SBFullHash& a, const SBFullHash& b) { in SBFullHashLess()
51 SBFullHash SBFullHashForString(const base::StringPiece& str);
79 SBFullHash FullHashAt(size_t i) const;
90 SBFullHash hash;
224 SBFullHash StringToSBFullHash(const std::string& hash_in);
225 std::string SBFullHashToString(const SBFullHash& hash_out);
Dsafe_browsing_store_unittest.cc11 const SBFullHash kHash1 = SBFullHashForString("one");
12 const SBFullHash kHash2 = SBFullHashForString("two");
13 const SBFullHash kHash3 = SBFullHashForString("three");
14 const SBFullHash kHash4 = SBFullHashForString("four");
15 const SBFullHash kHash5 = SBFullHashForString("five");
16 const SBFullHash kHash6 = SBFullHashForString("six");
17 const SBFullHash kHash7 = SBFullHashForString("seven");
32 SBFullHash ModifyHashAfterPrefix(SBFullHash hash, unsigned char mask) { in ModifyHashAfterPrefix()
74 SBFullHash one, onetwo, two; in TEST()
123 SBFullHash one, onetwo, two; in TEST()
[all …]
Dsafe_browsing_store.h81 SBFullHash full_hash;
83 SBAddFullHash(int32 id, const SBFullHash& h) in SBAddFullHash()
95 SBFullHash full_hash;
97 SBSubFullHash(int32 id, int32 add_id, const SBFullHash& h) in SBSubFullHash()
182 const SBFullHash& full_hash) = 0;
186 const SBFullHash& full_hash) = 0;
Dprotocol_parser_unittest.cc79 SBFullHash full_hash1, full_hash2; in TEST()
273 SBFullHash full_hash1, full_hash2; in TEST()
403 sizeof(SBFullHash)), 0); in TEST()
407 sizeof(SBFullHash)), 0); in TEST()
411 sizeof(SBFullHash)), 0); in TEST()
430 sizeof(SBFullHash)), 0); in TEST()
434 sizeof(SBFullHash)), 0); in TEST()
438 sizeof(SBFullHash)), 0); in TEST()
458 sizeof(SBFullHash)), 0); in TEST()
463 sizeof(SBFullHash)), 0); in TEST()
[all …]
Ddatabase_manager_unittest.cc37 const SBFullHash same_full_hash = {}; in RunSBHashTest()
42 std::vector<SBFullHash>(1, same_full_hash), in RunSBHashTest()
89 const SBFullHash kMalwareHostHash = SBFullHashForString("malware.com/"); in TEST_F()
90 const SBFullHash kPhishingHostHash = SBFullHashForString("phishing.com/"); in TEST_F()
91 const SBFullHash kSafeHostHash = SBFullHashForString("www.safe.com/"); in TEST_F()
Dprefix_set.h71 bool Exists(const SBFullHash& hash) const;
129 std::vector<SBFullHash>* full_hashes);
143 std::vector<SBFullHash> full_hashes_;
164 scoped_ptr<PrefixSet> GetPrefixSet(const std::vector<SBFullHash>& hashes);
Dsafe_browsing_util.cc24 SBFullHash SBFullHashForString(const base::StringPiece& str) { in SBFullHashForString()
25 SBFullHash h; in SBFullHashForString()
73 hash_size = sizeof(SBFullHash); in ParseFrom()
135 return chunk_data_->hashes().size() / sizeof(SBFullHash); in FullHashCount()
138 SBFullHash SBChunkData::FullHashAt(size_t i) const { in FullHashAt()
142 SBFullHash full_hash; in FullHashAt()
143 memcpy(&full_hash, chunk_data_->hashes().data() + i * sizeof(SBFullHash), in FullHashAt()
144 sizeof(SBFullHash)); in FullHashAt()
508 SBFullHash StringToSBFullHash(const std::string& hash_in) { in StringToSBFullHash()
510 SBFullHash hash_out; in StringToSBFullHash()
[all …]
Dsafe_browsing_database_unittest.cc42 SBFullHash SBFullHashForPrefixAndSuffix(SBPrefix prefix, in SBFullHashForPrefixAndSuffix()
44 SBFullHash full_hash; in SBFullHashForPrefixAndSuffix()
45 memset(&full_hash, 0, sizeof(SBFullHash)); in SBFullHashForPrefixAndSuffix()
47 CHECK_LE(suffix.size() + sizeof(SBPrefix), sizeof(SBFullHash)); in SBFullHashForPrefixAndSuffix()
130 SBChunkData* AddChunkFullHash(int chunk_number, SBFullHash full_hash) { in AddChunkFullHash()
147 const SBFullHash full_hashes[2] = { in AddChunkFullHash2Value()
189 SBFullHash full_hash, in SubChunkFullHash()
211 EXPECT_EQ(sizeof(SBFullHash), full_hash_str.size()); in AddChunkHashedIpValue()
212 SBFullHash full_hash; in AddChunkHashedIpValue()
213 std::memcpy(&(full_hash.full_hash), full_hash_str.data(), sizeof(SBFullHash)); in AddChunkHashedIpValue()
[all …]
Dsafe_browsing_util_unittest.cc315 SBFullHash hash_out = safe_browsing_util::StringToSBFullHash(hash_in); in TEST()
317 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash))); in TEST()
324 const SBFullHash kHash1 = SBFullHashForString("one"); in TEST()
325 const SBFullHash kHash2 = SBFullHashForString("two"); in TEST()
Dsafe_browsing_database.cc127 std::vector<SBFullHash>* full_hashes) { in BrowseFullHashesToCheck()
159 std::vector<SBFullHash> full_hashes; in GetDownloadUrlPrefixes()
285 const SBFullHash& full_hash, in GetCachedFullHash()
642 std::vector<SBFullHash> full_hashes; in ContainsBrowseUrl()
651 const std::vector<SBFullHash>& full_hashes, in ContainsBrowseUrlHashes()
707 std::vector<SBFullHash> full_hashes; in ContainsCsdWhitelistedUrl()
713 std::vector<SBFullHash> full_hashes; in ContainsDownloadWhitelistedUrl()
740 SBFullHash full_hash = SBFullHashForString(url_to_check); in ContainsSideEffectFreeWhitelistUrl()
789 std::vector<SBFullHash> hashes; in ContainsDownloadWhitelistedString()
796 const std::vector<SBFullHash>& hashes) { in ContainsWhitelistedHashes()
[all …]
Dprefix_set_unittest.cc407 std::vector<SBFullHash> hashes; in TEST_F()
600 const SBFullHash kHash1 = SBFullHashForString("one"); in TEST_F()
601 const SBFullHash kHash2 = SBFullHashForString("two"); in TEST_F()
602 const SBFullHash kHash3 = SBFullHashForString("three"); in TEST_F()
603 const SBFullHash kHash4 = SBFullHashForString("four"); in TEST_F()
604 const SBFullHash kHash5 = SBFullHashForString("five"); in TEST_F()
605 const SBFullHash kHash6 = SBFullHashForString("six"); in TEST_F()
612 std::vector<SBFullHash> hashes; in TEST_F()
717 const SBFullHash kHash1 = SBFullHashForString("www.evil.com/malware.html"); in TEST_F()
718 const SBFullHash kHash2 = SBFullHashForString("www.evil.com/phishing.html"); in TEST_F()
Dprefix_set.cc92 std::vector<SBFullHash>* full_hashes) { in PrefixSet()
133 bool PrefixSet::Exists(const SBFullHash& hash) const { in Exists()
201 std::vector<SBFullHash> full_hashes; in LoadFile()
373 const std::vector<SBFullHash>& hashes) { in GetPrefixSet()
393 return GetPrefixSet(std::vector<SBFullHash>()).Pass(); in GetPrefixSetNoHashes()
Ddatabase_manager.h59 const std::vector<SBFullHash>& full_hashes,
71 std::vector<SBFullHash> full_hashes;
243 const SBFullHash& hash,
Ddatabase_manager.cc74 const SBFullHash& hash, in GetHashThreatListType()
129 const SBFullHash& hash, in GetHashThreatType()
146 const std::vector<SBFullHash>& full_hashes, in SafeBrowsingCheck()
295 std::vector<SBFullHash>(), in CheckDownloadUrl()
315 std::vector<SBFullHash> extension_id_hashes; in CheckExtensionIDs()
438 std::vector<SBFullHash>(), in CheckBrowseUrl()
619 std::vector<SBFullHash>(), in DoStopOnIOThread()
840 std::vector<SBFullHash>(), in DatabaseLoadComplete()
1010 for (std::vector<SBFullHash>::iterator it = check->full_hashes.begin(); in CheckExtensionIDsOnSBThread()
Dsafe_browsing_store_file.h146 const SBFullHash& full_hash) OVERRIDE;
150 const SBFullHash& full_hash) OVERRIDE;
Dsafe_browsing_database.h339 typedef std::pair<std::vector<SBFullHash>, bool> SBWhitelist;
347 bool ContainsBrowseUrlHashes(const std::vector<SBFullHash>& full_hashes,
354 const std::vector<SBFullHash>& hashes);
Dsafe_browsing_store_file_unittest.cc27 const SBFullHash kHash1 = SBFullHashForString("one");
28 const SBFullHash kHash2 = SBFullHashForString("two");
29 const SBFullHash kHash3 = SBFullHashForString("three");
30 const SBFullHash kHash4 = SBFullHashForString("four");
31 const SBFullHash kHash5 = SBFullHashForString("five");
32 const SBFullHash kHash6 = SBFullHashForString("six");
Dprotocol_parser.cc209 if (hash_len != sizeof(SBFullHash)) in ParseGetHash()
Dsafe_browsing_store_file.cc666 const SBFullHash& full_hash) { in WriteAddHash()
679 const SBFullHash& full_hash) { in WriteSubHash()
Dsafe_browsing_blocking_page_test.cc105 std::vector<SBFullHash>(), in OnCheckBrowseURLDone()
Ddownload_protection_service_unittest.cc186 std::vector<SBFullHash>(), in ACTION_P()
/external/chromium_org/chrome/browser/extensions/
Dfake_safe_browsing_database_manager.cc100 std::vector<SBFullHash> extension_id_hashes; in CheckExtensionIDs()
/external/chromium_org/chrome/browser/prerender/
Dprerender_browsertest.cc709 std::vector<SBFullHash>(), in OnCheckBrowseURLDone()