/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store_unittest_helper.h | 17 // Helper to make it easy to initialize SBFullHash constants. 18 inline const SBFullHash SBFullHashFromString(const char* str) { 19 SBFullHash h; 26 inline bool SBFullHashEq(const SBFullHash& a, const SBFullHash& b) {
|
safe_browsing_util.h | 34 union SBFullHash { 39 inline bool operator==(const SBFullHash& lhash, const SBFullHash& rhash) { 40 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) == 0; 43 inline bool operator<(const SBFullHash& lhash, const SBFullHash& rhash) { 44 return memcmp(lhash.full_hash, rhash.full_hash, sizeof(SBFullHash)) < 0; 108 SBFullHash hash; 181 return IsPrefix() ? sizeof(SBPrefix) : sizeof(SBFullHash); 194 const SBFullHash& FullHashAt(int index) const [all...] |
safe_browsing_store.h | 27 // List of SBAddFullHash (SBAddPrefix, time received and an SBFullHash). 28 // List of SBSubFullHash (chunk_id, target SBAddPrefix, and an SBFullHash). 71 SBFullHash full_hash; 73 SBAddFullHash(int32 id, base::Time r, const SBFullHash& h) 81 SBAddFullHash(int32 id, int32 r, const SBFullHash& h) 93 SBFullHash full_hash; 95 SBSubFullHash(int32 id, int32 add_id, const SBFullHash& h) 199 const SBFullHash& full_hash) = 0; 203 const SBFullHash& full_hash) = 0;
|
safe_browsing_store_unittest.cc | 24 // The first four bytes of SBFullHash can be read as an int32, which 28 SBFullHash one, onetwo, two; 79 SBFullHash one, onetwo, two; 132 const SBFullHash kHash1(SBFullHashFromString("one")); 133 const SBFullHash kHash2(SBFullHashFromString("two")); 134 const SBFullHash kHash3(SBFullHashFromString("three")); 139 SBFullHash kHash1mod1 = kHash1; 141 SBFullHash kHash1mod2 = kHash1mod1; 143 SBFullHash kHash1mod3 = kHash1mod2; 195 const SBFullHash kHash1(SBFullHashFromString("one")) [all...] |
protocol_parser.cc | 106 DCHECK(static_cast<size_t>(full_hash_len) >= sizeof(SBFullHash)); 107 memcpy(&full_hash.hash, data, sizeof(SBFullHash)); 109 data += sizeof(SBFullHash); 110 length -= sizeof(SBFullHash); 111 full_hash_len -= sizeof(SBFullHash); 291 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) { 446 entry->SetFullHashAt(i, *reinterpret_cast<const SBFullHash*>(*data));
|
safe_browsing_store_file.h | 128 const SBFullHash& full_hash); 132 const SBFullHash& full_hash);
|
safe_browsing_util.cc | 94 return sizeof(SBFullHash); 136 const SBFullHash& SBEntry::FullHashAt(int index) const { 151 void SBEntry::SetFullHashAt(int index, const SBFullHash& full_hash) { 418 int GetHashIndex(const SBFullHash& hash, 438 SBFullHash key; 441 sizeof(SBFullHash)); 522 void StringToSBFullHash(const std::string& hash_in, SBFullHash* hash_out) { 527 std::string SBFullHashToString(const SBFullHash& hash) {
|
safe_browsing_util_unittest.cc | 288 sizeof(SBFullHash)); 341 SBFullHash hash_out; 344 EXPECT_EQ(0, memcmp(hash_in.data(), hash_out.full_hash, sizeof(SBFullHash)));
|
safe_browsing_store_unittest_helper.cc | 20 const SBFullHash kHash1 = SBFullHashFromString("one"); 21 const SBFullHash kHash2 = SBFullHashFromString("two"); 22 const SBFullHash kHash3 = SBFullHashFromString("three"); 23 const SBFullHash kHash4 = SBFullHashFromString("four"); 24 const SBFullHash kHash5 = SBFullHashFromString("five");
|
protocol_parser_unittest.cc | 61 SBFullHash full_hash1, full_hash2; 297 SBFullHash full_hash1, full_hash2; 486 sizeof(SBFullHash)), 0); 490 sizeof(SBFullHash)), 0); 494 sizeof(SBFullHash)), 0); 512 sizeof(SBFullHash)), 0); 516 sizeof(SBFullHash)), 0); 520 sizeof(SBFullHash)), 0); 557 EXPECT_EQ(memcmp(hash_result, &full_hashes[0].hash, sizeof(SBFullHash)), 0); 577 &full_hashes[0].hash, sizeof(SBFullHash)), 0) [all...] |
safe_browsing_database.cc | 78 std::vector<SBFullHash>* full_hashes) { 92 SBFullHash full_hash; 114 std::vector<SBFullHash> full_hashes; 590 std::vector<SBFullHash> full_hashes; 717 std::vector<SBFullHash> full_hashes; 719 for (std::vector<SBFullHash>::const_iterator it = full_hashes.begin(); 756 const SBFullHash full_hash = entry->FullHashAt(i); 829 const SBFullHash full_hash = entry->FullHashAt(i); [all...] |
safe_browsing_database.h | 307 std::vector<SBFullHash> csd_whitelist_;
|
safe_browsing_service.h | 79 scoped_ptr<SBFullHash> full_hash;
|
safe_browsing_service_browsertest.cc | 267 sizeof(SBFullHash)); 330 SBFullHash full_hash;
|
safe_browsing_store_file.cc | 336 const SBFullHash& full_hash) { 349 const SBFullHash& full_hash) {
|
safe_browsing_database_unittest.cc | 33 SBFullHash Sha256Hash(const std::string& str) { 34 SBFullHash hash; [all...] |
safe_browsing_service.cc | 236 check->full_hash.reset(new SBFullHash); [all...] |