/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_store.h | 25 // List of SBAddPrefix (chunk_id and SBPrefix). 26 // List of SBSubPrefix (chunk_id and the target SBAddPrefix). 28 // List of SBSubFullHash (chunk_id, target SBAddPrefix, and an SBFullHash). 45 int32 chunk_id; member in struct:SBAddPrefix 48 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {} 49 SBAddPrefix() : chunk_id(), prefix() {} 51 int32 GetAddChunkId() const { return chunk_id; } 56 int32 chunk_id; member in struct:SBSubPrefix 61 : chunk_id(id), add_chunk_id(add_id), add_prefix(prefix) {} 62 SBSubPrefix() : chunk_id(), add_chunk_id(), add_prefix() { 69 int32 chunk_id; member in struct:SBAddFullHash 91 int32 chunk_id; member in struct:SBSubFullHash [all...] |
safe_browsing_store_file.h | 32 // int32 chunk_id; 35 // int32 chunk_id; 38 // int32 chunk_id; 42 // int32 chunk_id; 47 // int32 chunk_id; 51 // int32 chunk_id; 69 // int32 chunk_id; 73 // int32 chunk_id; 78 // int32 chunk_id; 83 // int32 chunk_id; [all...] |
safe_browsing_store_file.cc | 282 bool SafeBrowsingStoreFile::WriteAddPrefix(int32 chunk_id, SBPrefix prefix) { 283 add_prefixes_.push_back(SBAddPrefix(chunk_id, prefix)); 334 bool SafeBrowsingStoreFile::WriteAddHash(int32 chunk_id, 337 add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash)); 341 bool SafeBrowsingStoreFile::WriteSubPrefix(int32 chunk_id, 344 sub_prefixes_.push_back(SBSubPrefix(chunk_id, add_chunk_id, prefix)); 348 bool SafeBrowsingStoreFile::WriteSubHash(int32 chunk_id, int32 add_chunk_id, 350 sub_hashes_.push_back(SBSubFullHash(chunk_id, add_chunk_id, full_hash)); 697 void SafeBrowsingStoreFile::SetAddChunk(int32 chunk_id) { 698 add_chunks_cache_.insert(chunk_id); [all...] |
safe_browsing_util.h | 160 void set_chunk_id(int chunk_id) { data_.chunk_id = chunk_id; } 161 int chunk_id() const { return data_.chunk_id; } function in class:SBEntry 189 void SetChunkIdAtPrefix(int index, int chunk_id); 222 int chunk_id; member in struct:SBEntry::Data
|
safe_browsing_store_unittest_helper.cc | 102 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); 104 EXPECT_EQ(kAddChunk1, add_prefixes_result[1].chunk_id); 108 EXPECT_EQ(kAddChunk1, add_full_hashes_result[0].chunk_id); 137 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); 139 EXPECT_EQ(kAddChunk1, add_prefixes_result[1].chunk_id); 143 EXPECT_EQ(kAddChunk1, add_full_hashes_result[0].chunk_id); 176 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); 195 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); 214 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); 216 EXPECT_EQ(kAddChunk3, add_prefixes_result[1].chunk_id); [all...] |
safe_browsing_service_browsertest.cc | 385 int chunk_id = 0; local 386 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, 419 int chunk_id = 0; local 421 chunk_id, &malware_full_hash); 516 int chunk_id = 0; local 518 chunk_id, &full_hash_result); 543 int chunk_id = 0; local 545 chunk_id, &full_hash_result); 564 int chunk_id = 0; local 566 chunk_id, &full_hash_result) 581 int chunk_id = 0; local 614 int chunk_id = 0; local [all...] |
safe_browsing_store_unittest.cc | 13 // chunk_id then prefix. 75 // chunk_id doesn't matter. 173 EXPECT_EQ(kAddChunk1, add_prefixes[0].chunk_id); 177 EXPECT_EQ(kAddChunk1, add_hashes[0].chunk_id); 181 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id); 186 EXPECT_EQ(kSubChunk1, sub_hashes[0].chunk_id); 241 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id); 246 EXPECT_EQ(kSubChunk1, sub_hashes[0].chunk_id);
|
safe_browsing_database.cc | 49 // To save space, the incoming |chunk_id| and |list_id| are combined 53 // there should be better ways to save chunk_id and list_id after we use 149 const int list_bit = GetListIdBit(hiter->chunk_id); 154 result.add_chunk_id = DecodeChunkId(hiter->chunk_id); 670 GetListIdBit(add_prefixes[i].chunk_id) == list_bit) { 729 void SafeBrowsingDatabaseNew::InsertAdd(int chunk_id, SBPrefix host, 737 const int encoded_chunk_id = EncodeChunkId(chunk_id, list_id); 779 const int chunk_id = citer->chunk_number; local 783 const int encoded_chunk_id = EncodeChunkId(chunk_id, list_id); 792 InsertAdd(chunk_id, hiter->host, hiter->entry, list_id) 853 const int chunk_id = citer->chunk_number; local [all...] |
safe_browsing_util.cc | 118 sub_full_hashes_[index].add_chunk : chunk_id(); 121 void SBEntry::SetChunkIdAtPrefix(int index, int chunk_id) { 125 sub_prefixes_[index].add_chunk = chunk_id; 127 sub_full_hashes_[index].add_chunk = chunk_id;
|
safe_browsing_store.cc | 107 // Remove deleted items (|chunk_id| in |del_set|) from the vector. 116 if (del_set.count(iter->chunk_id) == 0) {
|
safe_browsing_database_unittest.cc | 265 int chunk_id, 271 chunk_delete.chunk_del.push_back(ChunkRange(chunk_id)); 276 void AddDelChunk(const std::string& list, int chunk_id) { 277 DelChunk(list, chunk_id, false); 280 void SubDelChunk(const std::string& list, int chunk_id) { 281 DelChunk(list, chunk_id, true); [all...] |
protocol_parser_unittest.cc | 266 EXPECT_EQ(entry->chunk_id(), 0x6b6b6b6b); [all...] |
/external/v8/src/ |
spaces.h | [all...] |