Home
last modified time | relevance | path

Searched refs:chunk_id (Results 1 – 13 of 13) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_store.h45 int32 chunk_id; member
48 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {} in SBAddPrefix()
49 SBAddPrefix() : chunk_id(), prefix() {} in SBAddPrefix()
51 int32 GetAddChunkId() const { return chunk_id; } in GetAddChunkId()
56 int32 chunk_id; member
61 : chunk_id(id), add_chunk_id(add_id), add_prefix(prefix) {} in SBSubPrefix()
62 SBSubPrefix() : chunk_id(), add_chunk_id(), add_prefix() {} in SBSubPrefix()
69 int32 chunk_id; member
74 : chunk_id(id), in SBAddFullHash()
82 : chunk_id(id), received(r), full_hash(h) {} in SBAddFullHash()
[all …]
Dsafe_browsing_store_file.h125 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix);
126 virtual bool WriteAddHash(int32 chunk_id,
129 virtual bool WriteSubPrefix(int32 chunk_id,
131 virtual bool WriteSubHash(int32 chunk_id, int32 add_chunk_id,
144 virtual void SetAddChunk(int32 chunk_id);
145 virtual bool CheckAddChunk(int32 chunk_id);
147 virtual void SetSubChunk(int32 chunk_id);
148 virtual bool CheckSubChunk(int32 chunk_id);
151 virtual void DeleteAddChunk(int32 chunk_id);
152 virtual void DeleteSubChunk(int32 chunk_id);
Dsafe_browsing_store_file.cc282 bool SafeBrowsingStoreFile::WriteAddPrefix(int32 chunk_id, SBPrefix prefix) { in WriteAddPrefix() argument
283 add_prefixes_.push_back(SBAddPrefix(chunk_id, prefix)); in WriteAddPrefix()
334 bool SafeBrowsingStoreFile::WriteAddHash(int32 chunk_id, in WriteAddHash() argument
337 add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash)); in WriteAddHash()
341 bool SafeBrowsingStoreFile::WriteSubPrefix(int32 chunk_id, in WriteSubPrefix() argument
344 sub_prefixes_.push_back(SBSubPrefix(chunk_id, add_chunk_id, prefix)); in WriteSubPrefix()
348 bool SafeBrowsingStoreFile::WriteSubHash(int32 chunk_id, int32 add_chunk_id, in WriteSubHash() argument
350 sub_hashes_.push_back(SBSubFullHash(chunk_id, add_chunk_id, full_hash)); in WriteSubHash()
697 void SafeBrowsingStoreFile::SetAddChunk(int32 chunk_id) { in SetAddChunk() argument
698 add_chunks_cache_.insert(chunk_id); in SetAddChunk()
[all …]
Dsafe_browsing_util.h160 void set_chunk_id(int chunk_id) { data_.chunk_id = chunk_id; } in set_chunk_id() argument
161 int chunk_id() const { return data_.chunk_id; } in chunk_id() function
189 void SetChunkIdAtPrefix(int index, int chunk_id);
222 int chunk_id; member
Dsafe_browsing_store_unittest_helper.cc102 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); in SafeBrowsingStoreTestStorePrefix()
104 EXPECT_EQ(kAddChunk1, add_prefixes_result[1].chunk_id); in SafeBrowsingStoreTestStorePrefix()
108 EXPECT_EQ(kAddChunk1, add_full_hashes_result[0].chunk_id); in SafeBrowsingStoreTestStorePrefix()
137 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); in SafeBrowsingStoreTestStorePrefix()
139 EXPECT_EQ(kAddChunk1, add_prefixes_result[1].chunk_id); in SafeBrowsingStoreTestStorePrefix()
143 EXPECT_EQ(kAddChunk1, add_full_hashes_result[0].chunk_id); in SafeBrowsingStoreTestStorePrefix()
176 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); in SafeBrowsingStoreTestSubKnockout()
195 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); in SafeBrowsingStoreTestSubKnockout()
214 EXPECT_EQ(kAddChunk1, add_prefixes_result[0].chunk_id); in SafeBrowsingStoreTestSubKnockout()
216 EXPECT_EQ(kAddChunk3, add_prefixes_result[1].chunk_id); in SafeBrowsingStoreTestSubKnockout()
[all …]
Dsafe_browsing_service_browsertest.cc385 int chunk_id = 0; in IN_PROC_BROWSER_TEST_F() local
386 GenUrlFullhashResult(url, safe_browsing_util::kMalwareList, chunk_id, in IN_PROC_BROWSER_TEST_F()
419 int chunk_id = 0; in IN_PROC_BROWSER_TEST_F() local
421 chunk_id, &malware_full_hash); in IN_PROC_BROWSER_TEST_F()
516 int chunk_id = 0; in IN_PROC_BROWSER_TEST_F() local
518 chunk_id, &full_hash_result); in IN_PROC_BROWSER_TEST_F()
543 int chunk_id = 0; in IN_PROC_BROWSER_TEST_F() local
545 chunk_id, &full_hash_result); in IN_PROC_BROWSER_TEST_F()
564 int chunk_id = 0; in IN_PROC_BROWSER_TEST_F() local
566 chunk_id, &full_hash_result); in IN_PROC_BROWSER_TEST_F()
[all …]
Dsafe_browsing_store_unittest.cc173 EXPECT_EQ(kAddChunk1, add_prefixes[0].chunk_id); in TEST()
177 EXPECT_EQ(kAddChunk1, add_hashes[0].chunk_id); in TEST()
181 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id); in TEST()
186 EXPECT_EQ(kSubChunk1, sub_hashes[0].chunk_id); in TEST()
241 EXPECT_EQ(kSubChunk1, sub_prefixes[0].chunk_id); in TEST()
246 EXPECT_EQ(kSubChunk1, sub_hashes[0].chunk_id); in TEST()
Dsafe_browsing_database.cc149 const int list_bit = GetListIdBit(hiter->chunk_id); in GetCachedFullHashesForBrowse()
154 result.add_chunk_id = DecodeChunkId(hiter->chunk_id); in GetCachedFullHashesForBrowse()
670 GetListIdBit(add_prefixes[i].chunk_id) == list_bit) { in MatchDownloadAddPrefixes()
729 void SafeBrowsingDatabaseNew::InsertAdd(int chunk_id, SBPrefix host, in InsertAdd() argument
737 const int encoded_chunk_id = EncodeChunkId(chunk_id, list_id); in InsertAdd()
779 const int chunk_id = citer->chunk_number; in InsertAddChunks() local
783 const int encoded_chunk_id = EncodeChunkId(chunk_id, list_id); in InsertAddChunks()
792 InsertAdd(chunk_id, hiter->host, hiter->entry, list_id); in InsertAddChunks()
799 void SafeBrowsingDatabaseNew::InsertSub(int chunk_id, SBPrefix host, in InsertSub() argument
807 const int encoded_chunk_id = EncodeChunkId(chunk_id, list_id); in InsertSub()
[all …]
Dsafe_browsing_util.cc118 sub_full_hashes_[index].add_chunk : chunk_id(); in ChunkIdAtPrefix()
121 void SBEntry::SetChunkIdAtPrefix(int index, int chunk_id) { in SetChunkIdAtPrefix() argument
125 sub_prefixes_[index].add_chunk = chunk_id; in SetChunkIdAtPrefix()
127 sub_full_hashes_[index].add_chunk = chunk_id; in SetChunkIdAtPrefix()
Dsafe_browsing_store.cc116 if (del_set.count(iter->chunk_id) == 0) { in RemoveDeleted()
Dsafe_browsing_database_unittest.cc265 int chunk_id, in DelChunk() argument
271 chunk_delete.chunk_del.push_back(ChunkRange(chunk_id)); in DelChunk()
276 void AddDelChunk(const std::string& list, int chunk_id) { in AddDelChunk() argument
277 DelChunk(list, chunk_id, false); in AddDelChunk()
280 void SubDelChunk(const std::string& list, int chunk_id) { in SubDelChunk() argument
281 DelChunk(list, chunk_id, true); in SubDelChunk()
Dprotocol_parser_unittest.cc266 EXPECT_EQ(entry->chunk_id(), 0x6b6b6b6b); in TEST()
/external/v8/src/
Dspaces.h1079 Page* InitializePagesInChunk(int chunk_id, int pages_in_chunk,