Home
last modified time | relevance | path

Searched refs:add_chunk_id (Results 1 – 10 of 10) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_store.h57 int32 add_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()
64 int32 GetAddChunkId() const { return add_chunk_id; } in GetAddChunkId()
92 int32 add_chunk_id; member
96 : chunk_id(id), add_chunk_id(add_id), full_hash(h) {} in SBSubFullHash()
97 SBSubFullHash() : chunk_id(), add_chunk_id(), full_hash() {} in SBSubFullHash()
99 int32 GetAddChunkId() const { return add_chunk_id; } in GetAddChunkId()
201 int32 add_chunk_id, SBPrefix prefix) = 0;
202 virtual bool WriteSubHash(int32 chunk_id, int32 add_chunk_id,
Dsafe_browsing_store_unittest.cc182 EXPECT_EQ(kAddChunk1, sub_prefixes[0].add_chunk_id); in TEST()
187 EXPECT_EQ(kAddChunk1, sub_hashes[0].add_chunk_id); in TEST()
242 EXPECT_EQ(kAddChunk1, sub_prefixes[0].add_chunk_id); in TEST()
247 EXPECT_EQ(kAddChunk1, sub_hashes[0].add_chunk_id); in TEST()
Dsafe_browsing_service_browsertest.cc261 int add_chunk_id, in GenUrlFullhashResult() argument
269 full_hash->add_chunk_id = add_chunk_id; in GenUrlFullhashResult()
274 int add_chunk_id, in GenDigestFullhashResult() argument
278 full_hash->add_chunk_id = add_chunk_id; in GenDigestFullhashResult()
Dsafe_browsing_store_file.h130 int32 add_chunk_id, SBPrefix prefix);
131 virtual bool WriteSubHash(int32 chunk_id, int32 add_chunk_id,
Dsafe_browsing_database.cc154 result.add_chunk_id = DecodeChunkId(hiter->chunk_id); in GetCachedFullHashesForBrowse()
814 const int add_chunk_id = EncodeChunkId(entry->chunk_id(), list_id); in InsertSub() local
815 store->WriteSubPrefix(encoded_chunk_id, add_chunk_id, host); in InsertSub()
820 const int add_chunk_id = in InsertSub() local
824 store->WriteSubPrefix(encoded_chunk_id, add_chunk_id, prefix); in InsertSub()
830 const int add_chunk_id = in InsertSub() local
834 store->WriteSubPrefix(encoded_chunk_id, add_chunk_id, full_hash.prefix); in InsertSub()
837 store->WriteSubHash(encoded_chunk_id, add_chunk_id, full_hash); in InsertSub()
945 int encoded_chunk_id = EncodeChunkId(iter->add_chunk_id, list_id); in CacheHashResults()
Dsafe_browsing_store_file.cc342 int32 add_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()
Dsafe_browsing_util.h110 int add_chunk_id; member
Dprotocol_parser_unittest.cc579 EXPECT_EQ(full_hashes[0].add_chunk_id, 1); in TEST()
594 EXPECT_EQ(full_hashes[0].add_chunk_id, 1); in TEST()
598 EXPECT_EQ(full_hashes[1].add_chunk_id, 7); in TEST()
Dprotocol_parser.cc95 full_hash.add_chunk_id = atoi(cmd_parts[1].c_str()); in ParseGetHash()
Dsafe_browsing_database_unittest.cc831 full_hash.add_chunk_id = 1; in PopulateDatabaseForCacheTest()