/external/chromium_org/chrome/browser/safe_browsing/ |
D | safe_browsing_store.h | 48 SBPrefix prefix; 50 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {} in SBAddPrefix() 54 SBPrefix GetAddPrefix() const { return prefix; } in GetAddPrefix() 64 SBPrefix add_prefix; 66 SBSubPrefix(int32 id, int32 add_id, SBPrefix prefix) in SBSubPrefix() 71 SBPrefix GetAddPrefix() const { return add_prefix; } in GetAddPrefix() 89 SBPrefix GetAddPrefix() const { return full_hash.prefix; } in GetAddPrefix() 102 SBPrefix GetAddPrefix() const { return full_hash.prefix; } in GetAddPrefix() 180 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) = 0; 184 int32 add_chunk_id, SBPrefix prefix) = 0;
|
D | prefix_set_unittest.cc | 28 const SBPrefix kHighBitClear = 1000u * 1000u * 1000u; 29 const SBPrefix kHighBitSet = 3u * 1000u * 1000u * 1000u; 58 const SBPrefix prefix = static_cast<SBPrefix>(base + delta); in SetUpTestCase() 66 const SBPrefix prefix = static_cast<SBPrefix>(base::RandUint64()); in SetUpTestCase() 78 const std::vector<SBPrefix> &prefixes) { in CheckPrefixes() 81 std::set<SBPrefix> check(prefixes.begin(), prefixes.end()); in CheckPrefixes() 82 std::vector<SBPrefix> prefixes_copy; in CheckPrefixes() 90 const SBPrefix left_sibling = prefixes[i] - 1; in CheckPrefixes() 94 const SBPrefix right_sibling = prefixes[i] + 1; in CheckPrefixes() 181 bool ReadReferencePrefixes(std::vector<SBPrefix>* prefixes) { in ReadReferencePrefixes() [all …]
|
D | prefix_set.h | 106 typedef std::pair<SBPrefix, uint32> IndexPair; 112 void AddRun(SBPrefix index_prefix, 117 bool PrefixExists(SBPrefix prefix) const; 121 void GetPrefixes(std::vector<SBPrefix>* prefixes) const; 155 explicit PrefixSetBuilder(const std::vector<SBPrefix>& prefixes); 159 void AddPrefix(SBPrefix prefix); 176 std::vector<SBPrefix> buffer_;
|
D | safe_browsing_database.h | 101 std::vector<SBPrefix>* prefix_hits, 108 std::vector<SBPrefix>* prefix_hits) = 0; 131 const std::vector<SBPrefix>& prefixes, 132 std::vector<SBPrefix>* prefix_hits) = 0; 173 const std::vector<SBPrefix>& prefixes, 297 std::vector<SBPrefix>* prefix_hits, 300 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 306 const std::vector<SBPrefix>& prefixes, 307 std::vector<SBPrefix>* prefix_hits) OVERRIDE; 317 const std::vector<SBPrefix>& prefixes, [all …]
|
D | prefix_set.cc | 64 const SBPrefix kEstimateThreshold = 1 << 30; 65 size_t EstimateFinalCount(SBPrefix current_prefix, size_t current_count) { in EstimateFinalCount() 101 bool PrefixSet::PrefixExists(SBPrefix prefix) const { in PrefixExists() 121 SBPrefix current = iter->first; in PrefixExists() 141 void PrefixSet::GetPrefixes(std::vector<SBPrefix>* prefixes) const { in GetPrefixes() 150 SBPrefix current = index_[ii].first; in GetPrefixes() 345 void PrefixSet::AddRun(SBPrefix index_prefix, in AddRun() 362 PrefixSetBuilder::PrefixSetBuilder(const std::vector<SBPrefix>& prefixes) in PrefixSetBuilder() 399 SBPrefix prev_prefix = buffer_[0]; in EmitRun() 425 void PrefixSetBuilder::AddPrefix(SBPrefix prefix) { in AddPrefix()
|
D | safe_browsing_database_unittest.cc | 36 SBPrefix SBPrefixForString(const std::string& str) { in SBPrefixForString() 42 SBFullHash SBFullHashForPrefixAndSuffix(SBPrefix prefix, in SBFullHashForPrefixAndSuffix() 47 CHECK_LE(suffix.size() + sizeof(SBPrefix), sizeof(SBFullHash)); in SBFullHashForPrefixAndSuffix() 48 memcpy(full_hash.full_hash + sizeof(SBPrefix), suffix.data(), suffix.size()); in SBFullHashForPrefixAndSuffix() 84 SBChunkData* AddChunkPrefix(int chunk_number, SBPrefix prefix) { in AddChunkPrefix() 101 const SBPrefix prefixes[2] = { in AddChunkPrefix2Value() 117 const SBPrefix prefixes[4] = { in AddChunkPrefix4Value() 161 const SBPrefix prefix = SBPrefixForString(value); in SubChunkPrefixValue() 174 const SBPrefix prefixes[2] = { in SubChunkPrefix2Value() 483 std::vector<SBPrefix> prefix_hits; in TEST_F() [all …]
|
D | safe_browsing_store_file_unittest.cc | 34 const SBPrefix kMinSBPrefix = 0u; 35 const SBPrefix kMaxSBPrefix = ~kMinSBPrefix; 146 std::vector<SBPrefix> prefixes_result; in TEST_F() 182 std::vector<SBPrefix> prefixes_result; in TEST_F() 212 std::vector<SBPrefix> prefixes_result; in TEST_F() 234 std::vector<SBPrefix> prefixes_result; in TEST_F() 269 std::vector<SBPrefix> prefixes_result; in TEST_F() 292 std::vector<SBPrefix> prefixes_result; in TEST_F() 315 std::vector<SBPrefix> prefixes_result; in TEST_F() 382 std::vector<SBPrefix> prefixes_result; in TEST_F() [all …]
|
D | safe_browsing_util.h | 28 typedef uint32 SBPrefix; typedef 39 SBPrefix prefix; 76 SBPrefix PrefixAt(size_t i) const;
|
D | safe_browsing_service_browsertest.cc | 130 std::vector<SBPrefix>* prefix_hits, in ContainsBrowseUrl() 140 std::vector<SBPrefix>* prefix_hits) OVERRIDE { in ContainsDownloadUrl() 161 const std::vector<SBPrefix>& prefixes, in ContainsExtensionPrefixes() 162 std::vector<SBPrefix>* prefix_hits) OVERRIDE { in ContainsExtensionPrefixes() 188 const std::vector<SBPrefix>& prefixes, in CacheHashResults() 203 const std::vector<SBPrefix>& prefix_hits) { in AddUrl() 209 void AddDownloadPrefix(SBPrefix prefix) { in AddDownloadPrefix() 216 std::vector<SBPrefix> prefix_hits; 222 std::vector<SBPrefix>* prefix_hits) { in ContainsUrl() 244 base::hash_set<SBPrefix> download_digest_prefix_; [all …]
|
D | protocol_parser.cc | 255 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes) { in FormatGetHash() 257 request.append(base::Uint64ToString(sizeof(SBPrefix))); in FormatGetHash() 259 request.append(base::Uint64ToString(sizeof(SBPrefix) * prefixes.size())); in FormatGetHash() 266 sizeof(SBPrefix)); in FormatGetHash()
|
D | safe_browsing_util.cc | 71 hash_size = sizeof(SBPrefix); in ParseFrom() 116 return chunk_data_->hashes().size() / sizeof(SBPrefix); in PrefixCount() 119 SBPrefix SBChunkData::PrefixAt(size_t i) const { in PrefixAt() 123 SBPrefix prefix; in PrefixAt() 124 memcpy(&prefix, chunk_data_->hashes().data() + i * sizeof(SBPrefix), in PrefixAt() 125 sizeof(SBPrefix)); in PrefixAt()
|
D | safe_browsing_store_file.cc | 44 const SBPrefix kMaxSBPrefix = 0xFFFFFFFF; 367 bool prefix_bounder(SBPrefix val, const T& elt) { in prefix_bounder() 452 StateInternalPos ShardEnd(const StateInternalPos& beg, SBPrefix shard_max) { in ShardEnd() 633 bool SafeBrowsingStoreFile::WriteAddPrefix(int32 chunk_id, SBPrefix prefix) { in WriteAddPrefix() 673 SBPrefix prefix) { in WriteSubPrefix() 934 SBPrefix process_max = in DoUpdate() 935 static_cast<SBPrefix>(process_min + process_stride - 1); in DoUpdate() 981 SBPrefix out_max = static_cast<SBPrefix>(out_min + out_stride - 1); in DoUpdate() 990 } while (out_min == static_cast<SBPrefix>(out_min) && in DoUpdate()
|
D | safe_browsing_database.cc | 158 std::vector<SBPrefix>* prefixes) { in GetDownloadUrlPrefixes() 174 const std::vector<SBPrefix>& prefixes, in MatchAddPrefixes() 175 std::vector<SBPrefix>* prefix_hits) { in MatchAddPrefixes() 184 const SBPrefix& prefix = prefixes[j]; in MatchAddPrefixes() 284 bool GetCachedFullHash(std::map<SBPrefix, SBCachedFullHashResult>* cache, in GetCachedFullHash() argument 289 std::map<SBPrefix, SBCachedFullHashResult>::iterator in GetCachedFullHash() 636 std::vector<SBPrefix>* prefix_hits, in ContainsBrowseUrl() 652 std::vector<SBPrefix>* prefix_hits, in ContainsBrowseUrlHashes() 688 std::vector<SBPrefix>* prefix_hits) { in ContainsDownloadUrl() 695 std::vector<SBPrefix> prefixes; in ContainsDownloadUrl() [all …]
|
D | safe_browsing_store_unittest.cc | 79 one.full_hash[sizeof(SBPrefix)] = 1; in TEST() 81 onetwo.full_hash[sizeof(SBPrefix)] = 2; in TEST() 128 one.full_hash[sizeof(SBPrefix)] = 1; in TEST() 130 onetwo.full_hash[sizeof(SBPrefix)] = 2; in TEST()
|
D | safe_browsing_store_file.h | 144 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) OVERRIDE; 148 int32 add_chunk_id, SBPrefix prefix) OVERRIDE;
|
D | protocol_parser.h | 58 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes);
|
D | database_manager.h | 79 std::vector<SBPrefix> prefix_hits; 223 typedef base::hash_map<SBPrefix, GetHashRequestors> GetHashRequests;
|
D | database_manager.cc | 424 std::vector<SBPrefix> prefix_hits; in CheckBrowseUrl() 495 std::vector<SBPrefix> prefixes = check->prefix_hits; in HandleGetHashResults() 745 SBPrefix prefix = check->prefix_hits[0]; in OnCheckDone() 914 SBPrefix prefix = check->prefix_hits[0]; in OnHandleGetHashResults() 985 std::vector<SBPrefix> prefix_hits; in CheckDownloadUrlOnSBThread() 1009 std::vector<SBPrefix> prefixes; in CheckExtensionIDsOnSBThread()
|
D | protocol_manager.h | 91 virtual void GetFullHash(const std::vector<SBPrefix>& prefixes,
|
D | protocol_parser_unittest.cc | 536 std::vector<SBPrefix> prefixes; in TEST()
|
D | protocol_manager.cc | 172 const std::vector<SBPrefix>& prefixes, in GetFullHash()
|
/external/clang/utils/analyzer/ |
D | SATestBuild.py | 216 SBPrefix = "scan-build " + SBOptions + " " 225 SBCommand = SBPrefix + Command
|