Searched refs:SBEntry (Results 1 – 8 of 8) sorted by relevance
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_util.cc | 75 SBEntry* SBEntry::Create(Type type, int prefix_count) { in Create() 77 SBEntry *rv = static_cast<SBEntry*>(malloc(size)); in Create() 84 void SBEntry::Destroy() { in Destroy() 89 int SBEntry::PrefixSize(Type type) { in PrefixSize() 105 int SBEntry::Size() const { in Size() 110 int SBEntry::Size(Type type, int prefix_count) { in Size() 114 int SBEntry::ChunkIdAtPrefix(int index) const { in ChunkIdAtPrefix() 121 void SBEntry::SetChunkIdAtPrefix(int index, int chunk_id) { in SetChunkIdAtPrefix() 130 const SBPrefix& SBEntry::PrefixAt(int index) const { in PrefixAt() 136 const SBFullHash& SBEntry::FullHashAt(int index) const { in FullHashAt() [all …]
|
D | protocol_parser.cc | 337 SBEntry::Type type = hash_len == sizeof(SBPrefix) ? in ParseAddChunk() 338 SBEntry::ADD_PREFIX : SBEntry::ADD_FULL_HASH; in ParseAddChunk() 346 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseAddChunk() 357 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseAddChunk() 375 SBEntry::Type type = hash_len == sizeof(SBPrefix) ? in ParseSubChunk() 376 SBEntry::SUB_PREFIX : SBEntry::SUB_FULL_HASH; in ParseSubChunk() 385 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseSubChunk() 396 chunk_host.entry = SBEntry::Create(type, prefix_count); in ParseSubChunk() 434 const char** data, int* remaining, SBEntry* entry, int count) { in ReadPrefixes()
|
D | safe_browsing_util.h | 21 class SBEntry; variable 50 SBEntry* entry; 142 class SBEntry { 153 static SBEntry* Create(Type type, int prefix_count); 227 SBEntry(); 228 ~SBEntry();
|
D | safe_browsing_database_unittest.cc | 49 host.entry = SBEntry::Create(SBEntry::ADD_PREFIX, 1); in InsertAddChunkHostPrefixValue() 75 host.entry = SBEntry::Create(SBEntry::ADD_FULL_HASH, 1); in InsertAddChunkHostFullHashes() 91 host.entry = SBEntry::Create(SBEntry::ADD_PREFIX, 2); in InsertAddChunkHost2PrefixUrls() 108 host.entry = SBEntry::Create(SBEntry::ADD_FULL_HASH, 2); in InsertAddChunkHost2FullHashes() 126 host.entry = SBEntry::Create(SBEntry::SUB_PREFIX, 1); in InsertSubChunkHostPrefixValue() 157 host.entry = SBEntry::Create(SBEntry::SUB_PREFIX, 2); in InsertSubChunkHost2PrefixUrls() 177 host.entry = SBEntry::Create(SBEntry::SUB_FULL_HASH, 2); in InsertSubChunkHost2FullHashes() 196 host.entry = SBEntry::Create(SBEntry::SUB_FULL_HASH, 2); in InsertSubChunkHostFullHash() 1088 host.entry = SBEntry::Create(SBEntry::SUB_PREFIX, 1); in TEST_F()
|
D | protocol_parser_unittest.cc | 33 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 86 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 117 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 263 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 324 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 855 SBEntry* entry = chunks[0].hosts[0].entry; in TEST() 918 SBEntry* entry = chunks[0].hosts[0].entry; in TEST()
|
D | safe_browsing_database.h | 263 void InsertAdd(int chunk, SBPrefix host, const SBEntry* entry, int list_id); 265 void InsertSub(int chunk, SBPrefix host, const SBEntry* entry, int list_id);
|
D | protocol_parser.h | 124 const char** data, int* remaining, SBEntry* entry, int count);
|
D | safe_browsing_database.cc | 730 const SBEntry* entry, int list_id) { in InsertAdd() 800 const SBEntry* entry, int list_id) { in InsertSub()
|