HomeSort by relevance Sort by last modified time
    Searched refs:SBPrefix (Results 1 - 22 of 22) sorted by null

  /external/chromium_org/chrome/browser/safe_browsing/
prefix_set.h 5 // A read-only set implementation for |SBPrefix| items. Prefixes are
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_;
safe_browsing_store.h 27 // List of SBAddPrefix (chunk_id and SBPrefix).
48 SBPrefix prefix;
50 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {}
54 SBPrefix GetAddPrefix() const { return prefix; }
64 SBPrefix add_prefix;
66 SBSubPrefix(int32 id, int32 add_id, SBPrefix prefix)
71 SBPrefix GetAddPrefix() const { return add_prefix; }
89 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
102 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
180 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) = 0
    [all...]
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...]
protocol_parser.h 58 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes);
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);
66 const SBPrefix prefix = static_cast<SBPrefix>(base::RandUint64());
78 const std::vector<SBPrefix> &prefixes) {
81 std::set<SBPrefix> check(prefixes.begin(), prefixes.end());
82 std::vector<SBPrefix> prefixes_copy;
90 const SBPrefix left_sibling = prefixes[i] - 1
    [all...]
prefix_set.cc 29 // changed from |int32| to |uint32| to match the change of |SBPrefix|.
45 // AFAICT it seems true for some implementations. SBPrefix values should
64 const SBPrefix kEstimateThreshold = 1 << 30;
65 size_t EstimateFinalCount(SBPrefix current_prefix, size_t current_count) {
101 bool PrefixSet::PrefixExists(SBPrefix prefix) const {
121 SBPrefix current = iter->first;
141 void PrefixSet::GetPrefixes(std::vector<SBPrefix>* prefixes) const {
150 SBPrefix current = index_[ii].first;
345 void PrefixSet::AddRun(SBPrefix index_prefix,
362 PrefixSetBuilder::PrefixSetBuilder(const std::vector<SBPrefix>& prefixes
    [all...]
safe_browsing_util.h 28 typedef uint32 SBPrefix;
39 SBPrefix prefix;
76 SBPrefix PrefixAt(size_t i) const;
safe_browsing_store_file.h 26 // uint32 shard_stride; // SBPrefix space covered per shard.
144 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) OVERRIDE;
148 int32 add_chunk_id, SBPrefix prefix) OVERRIDE;
safe_browsing_database_unittest.cc 36 SBPrefix SBPrefixForString(const std::string& str) {
42 SBFullHash SBFullHashForPrefixAndSuffix(SBPrefix prefix,
47 CHECK_LE(suffix.size() + sizeof(SBPrefix), sizeof(SBFullHash));
48 memcpy(full_hash.full_hash + sizeof(SBPrefix), suffix.data(), suffix.size());
84 SBChunkData* AddChunkPrefix(int chunk_number, SBPrefix prefix) {
101 const SBPrefix prefixes[2] = {
117 const SBPrefix prefixes[4] = {
161 const SBPrefix prefix = SBPrefixForString(value);
174 const SBPrefix prefixes[2] = {
483 std::vector<SBPrefix> prefix_hits
    [all...]
protocol_parser.cc 255 std::string FormatGetHash(const std::vector<SBPrefix>& prefixes) {
257 request.append(base::Uint64ToString(sizeof(SBPrefix)));
259 request.append(base::Uint64ToString(sizeof(SBPrefix) * prefixes.size()));
262 // SBPrefix values are read without concern for byte order, so write back the
266 sizeof(SBPrefix));
safe_browsing_store_file_unittest.cc 34 const SBPrefix kMinSBPrefix = 0u;
35 const SBPrefix kMaxSBPrefix = ~kMinSBPrefix;
146 std::vector<SBPrefix> prefixes_result;
182 std::vector<SBPrefix> prefixes_result;
212 std::vector<SBPrefix> prefixes_result;
234 std::vector<SBPrefix> prefixes_result;
269 std::vector<SBPrefix> prefixes_result;
292 std::vector<SBPrefix> prefixes_result;
315 std::vector<SBPrefix> prefixes_result;
382 std::vector<SBPrefix> prefixes_result
    [all...]
safe_browsing_util.cc 71 hash_size = sizeof(SBPrefix);
116 return chunk_data_->hashes().size() / sizeof(SBPrefix);
119 SBPrefix SBChunkData::PrefixAt(size_t i) const {
123 SBPrefix prefix;
124 memcpy(&prefix, chunk_data_->hashes().data() + i * sizeof(SBPrefix),
125 sizeof(SBPrefix));
safe_browsing_service_browsertest.cc 130 std::vector<SBPrefix>* prefix_hits,
140 std::vector<SBPrefix>* prefix_hits) OVERRIDE {
161 const std::vector<SBPrefix>& prefixes,
162 std::vector<SBPrefix>* prefix_hits) OVERRIDE {
188 const std::vector<SBPrefix>& prefixes,
203 const std::vector<SBPrefix>& prefix_hits) {
209 void AddDownloadPrefix(SBPrefix prefix) {
216 std::vector<SBPrefix> prefix_hits;
222 std::vector<SBPrefix>* prefix_hits) {
244 base::hash_set<SBPrefix> download_digest_prefix_
    [all...]
safe_browsing_database.cc 158 std::vector<SBPrefix>* prefixes) {
174 const std::vector<SBPrefix>& prefixes,
175 std::vector<SBPrefix>* prefix_hits) {
184 const SBPrefix& prefix = prefixes[j];
284 bool GetCachedFullHash(std::map<SBPrefix, SBCachedFullHashResult>* cache,
289 std::map<SBPrefix, SBCachedFullHashResult>::iterator
636 std::vector<SBPrefix>* prefix_hits,
652 std::vector<SBPrefix>* prefix_hits,
688 std::vector<SBPrefix>* prefix_hits) {
695 std::vector<SBPrefix> prefixes
    [all...]
safe_browsing_store_file.cc 40 // Strides over the entire SBPrefix space.
43 // Maximum SBPrefix value.
44 const SBPrefix kMaxSBPrefix = 0xFFFFFFFF;
367 bool prefix_bounder(SBPrefix val, const T& elt) {
452 StateInternalPos ShardEnd(const StateInternalPos& beg, SBPrefix shard_max) {
633 bool SafeBrowsingStoreFile::WriteAddPrefix(int32 chunk_id, SBPrefix prefix) {
673 SBPrefix prefix) {
917 // Start at the beginning of the SBPrefix space.
934 SBPrefix process_max =
935 static_cast<SBPrefix>(process_min + process_stride - 1)
    [all...]
safe_browsing_store_unittest.cc 70 // The first four bytes of SBFullHash can be read as a SBPrefix, which
79 one.full_hash[sizeof(SBPrefix)] = 1;
81 onetwo.full_hash[sizeof(SBPrefix)] = 2;
128 one.full_hash[sizeof(SBPrefix)] = 1;
130 onetwo.full_hash[sizeof(SBPrefix)] = 2;
database_manager.h 79 std::vector<SBPrefix> prefix_hits;
223 typedef base::hash_map<SBPrefix, GetHashRequestors> GetHashRequests;
database_manager.cc 424 std::vector<SBPrefix> prefix_hits;
495 std::vector<SBPrefix> prefixes = check->prefix_hits;
745 SBPrefix prefix = check->prefix_hits[0];
    [all...]
protocol_manager.h 91 virtual void GetFullHash(const std::vector<SBPrefix>& prefixes,
protocol_manager.cc 172 const std::vector<SBPrefix>& prefixes,
protocol_parser_unittest.cc 536 std::vector<SBPrefix> prefixes;
  /external/clang/utils/analyzer/
SATestBuild.py 216 SBPrefix = "scan-build " + SBOptions + " "
225 SBCommand = SBPrefix + Command

Completed in 526 milliseconds