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

1 2

  /external/chromium/chrome/browser/safe_browsing/
prefix_set.h 5 // A read-only set implementation for |SBPrefix| items. Prefixes are
63 explicit PrefixSet(const std::vector<SBPrefix>& sorted_prefixes);
67 bool Exists(SBPrefix prefix) const;
75 void GetPrefixes(std::vector<SBPrefix>* prefixes) const;
105 PrefixSet(std::vector<std::pair<SBPrefix,size_t> > *index,
112 std::vector<std::pair<SBPrefix,size_t> > index_;
safe_browsing_database.h 89 std::vector<SBPrefix>* prefix_hits,
97 std::vector<SBPrefix>* prefix_hits) = 0;
101 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix) = 0;
141 const std::vector<SBPrefix>& prefixes,
211 std::vector<SBPrefix>* prefix_hits,
215 std::vector<SBPrefix>* prefix_hits);
216 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix);
223 virtual void CacheHashResults(const std::vector<SBPrefix>& prefixes,
263 void InsertAdd(int chunk, SBPrefix host, const SBEntry* entry, int list_id);
265 void InsertSub(int chunk, SBPrefix host, const SBEntry* entry, int list_id)
    [all...]
safe_browsing_store.h 25 // List of SBAddPrefix (chunk_id and SBPrefix).
46 SBPrefix prefix;
48 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {}
52 SBPrefix GetAddPrefix() const { return prefix; }
58 SBPrefix add_prefix;
65 SBPrefix GetAddPrefix() const { return add_prefix; }
87 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
100 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
152 const std::set<SBPrefix>& prefix_misses);
155 // specifically-sized items to files. SBPrefix should likewise b
    [all...]
bloom_filter.h 42 void Insert(SBPrefix hash);
43 bool Exists(SBPrefix hash) const;
bloom_filter_unittest.cc 23 SBPrefix GenHash() {
24 return static_cast<SBPrefix>(base::RandUint64());
37 typedef std::set<SBPrefix> Values;
40 SBPrefix value = GenHash();
61 SBPrefix value = GenHash();
prefix_set.cc 33 bool PrefixLess(const std::pair<SBPrefix,size_t>& a,
34 const std::pair<SBPrefix,size_t>& b) {
42 PrefixSet::PrefixSet(const std::vector<SBPrefix>& sorted_prefixes) {
45 SBPrefix prev_prefix = sorted_prefixes[0];
92 static const size_t kMaxBitsPerPrefix = sizeof(SBPrefix) * CHAR_BIT;
99 PrefixSet::PrefixSet(std::vector<std::pair<SBPrefix,size_t> > *index,
108 bool PrefixSet::Exists(SBPrefix prefix) const {
113 std::vector<std::pair<SBPrefix,size_t> >::const_iterator
115 std::pair<SBPrefix,size_t>(prefix, 0),
129 SBPrefix current = iter->first
    [all...]
prefix_set_unittest.cc 33 const SBPrefix prefix = static_cast<SBPrefix>(base::RandUint64());
45 const std::vector<SBPrefix> &prefixes) {
48 std::set<SBPrefix> check(prefixes.begin(), prefixes.end());
49 std::vector<SBPrefix> prefixes_copy;
57 const SBPrefix left_sibling = prefixes[i] - 1;
61 const SBPrefix right_sibling = prefixes[i] + 1;
145 static std::vector<SBPrefix> shared_prefixes_;
150 std::vector<SBPrefix> PrefixSetTest::shared_prefixes_;
160 const std::vector<SBPrefix> empty
    [all...]
protocol_parser.cc 119 const std::vector<SBPrefix>& prefixes, std::string* request) {
124 sizeof(SBPrefix),
125 sizeof(SBPrefix) * prefixes.size()));
128 sizeof(SBPrefix));
291 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) {
337 SBEntry::Type type = hash_len == sizeof(SBPrefix) ?
351 SBPrefix host;
352 const int min_size = sizeof(SBPrefix) + 1;
375 SBEntry::Type type = hash_len == sizeof(SBPrefix) ?
390 SBPrefix host
    [all...]
filter_false_positive_perftest.cc 105 const std::vector<SBPrefix>& prefixes,
126 bool ReadDatabase(const FilePath& path, std::vector<SBPrefix>* prefixes) {
164 std::vector<SBPrefix>* prefixes) {
178 SBPrefix prefix;
189 bool IsPrefixInDatabase(SBPrefix prefix,
190 const std::vector<SBPrefix>& prefixes) {
198 SBPrefix prefix_mid = prefixes[mid];
215 const std::vector<SBPrefix>& prefix_list) {
251 std::vector<SBPrefix> prefixes;
293 std::vector<SBPrefix> prefix_list
    [all...]
protocol_parser.h 95 void FormatGetHash(const std::vector<SBPrefix>& prefixes,
120 SBPrefix* host,
safe_browsing_util.h 24 typedef int32 SBPrefix;
36 SBPrefix prefix;
49 SBPrefix host;
181 return IsPrefix() ? sizeof(SBPrefix) : sizeof(SBFullHash);
193 const SBPrefix& PrefixAt(int index) const;
198 void SetPrefixAt(int index, const SBPrefix& prefix);
205 SBPrefix prefix;
249 SBPrefix add_prefixes_[1];
safe_browsing_store_file.h 125 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix);
130 int32 add_chunk_id, SBPrefix prefix);
139 const std::set<SBPrefix>& prefix_misses,
163 const std::set<SBPrefix>& prefix_misses,
safe_browsing_database.cc 113 std::vector<SBPrefix>* prefixes) {
130 void GetCachedFullHashesForBrowse(const std::vector<SBPrefix>& prefix_hits,
137 std::vector<SBPrefix>::const_iterator piter = prefix_hits.begin();
264 std::vector<SBPrefix> prefixes;
276 std::vector<SBPrefix> restored;
312 SBPrefix prev = restored[0];
368 std::vector<SBPrefix> difference;
570 prefix_set_.reset(new safe_browsing::PrefixSet(std::vector<SBPrefix>()));
582 std::vector<SBPrefix>* prefix_hits,
604 std::vector<SBPrefix> restored
    [all...]
safe_browsing_service_browsertest.cc 51 std::vector<SBPrefix>* prefix_hits,
60 std::vector<SBPrefix>* prefix_hits) {
70 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix) {
90 virtual void CacheHashResults(const std::vector<SBPrefix>& prefixes,
99 const std::vector<SBPrefix>& prefix_hits,
107 void AddDownloadPrefix(SBPrefix prefix) {
114 std::vector<SBPrefix> prefix_hits;
121 std::vector<SBPrefix>* prefix_hits,
148 base::hash_set<SBPrefix> download_digest_prefix_;
197 const std::vector<SBPrefix>& prefixes)
    [all...]
  /external/chromium_org/chrome/browser/safe_browsing/
prefix_set.h 5 // A read-only set implementation for |SBPrefix| items. Prefixes are
64 explicit PrefixSet(const std::vector<SBPrefix>& sorted_prefixes);
68 bool Exists(SBPrefix prefix) const;
76 void GetPrefixes(std::vector<SBPrefix>* prefixes) const;
86 PrefixSet(std::vector<std::pair<SBPrefix,size_t> > *index,
93 std::vector<std::pair<SBPrefix,size_t> > index_;
safe_browsing_store.h 25 // List of SBAddPrefix (chunk_id and SBPrefix).
46 SBPrefix prefix;
48 SBAddPrefix(int32 id, SBPrefix p) : chunk_id(id), prefix(p) {}
52 SBPrefix GetAddPrefix() const { return prefix; }
60 SBPrefix add_prefix;
67 SBPrefix GetAddPrefix() const { return add_prefix; }
91 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
104 SBPrefix GetAddPrefix() const { return full_hash.prefix; }
150 // specifically-sized items to files. SBPrefix should likewise be
191 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) = 0
    [all...]
prefix_set_unittest.cc 43 const SBPrefix prefix = static_cast<SBPrefix>(base + delta);
51 const SBPrefix prefix = static_cast<SBPrefix>(base::RandUint64());
63 const std::vector<SBPrefix> &prefixes) {
66 std::set<SBPrefix> check(prefixes.begin(), prefixes.end());
67 std::vector<SBPrefix> prefixes_copy;
75 const SBPrefix left_sibling = prefixes[i] - 1;
79 const SBPrefix right_sibling = prefixes[i] + 1;
165 static std::vector<SBPrefix> shared_prefixes_
    [all...]
safe_browsing_database.h 103 std::vector<SBPrefix>* prefix_hits,
111 std::vector<SBPrefix>* prefix_hits) = 0;
115 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix) = 0;
138 const std::vector<SBPrefix>& prefixes,
139 std::vector<SBPrefix>* prefix_hits) = 0;
180 const std::vector<SBPrefix>& prefixes,
299 std::vector<SBPrefix>* prefix_hits,
303 std::vector<SBPrefix>* prefix_hits) OVERRIDE;
304 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix) OVERRIDE;
310 const std::vector<SBPrefix>& prefixes
    [all...]
prefix_set.cc 33 bool PrefixLess(const std::pair<SBPrefix,size_t>& a,
34 const std::pair<SBPrefix,size_t>& b) {
42 PrefixSet::PrefixSet(const std::vector<SBPrefix>& sorted_prefixes) {
52 SBPrefix prev_prefix = sorted_prefixes[0];
87 static const size_t kMaxBitsPerPrefix = sizeof(SBPrefix) * CHAR_BIT;
94 PrefixSet::PrefixSet(std::vector<std::pair<SBPrefix,size_t> > *index,
103 bool PrefixSet::Exists(SBPrefix prefix) const {
108 std::vector<std::pair<SBPrefix,size_t> >::const_iterator
110 std::pair<SBPrefix,size_t>(prefix, 0),
124 SBPrefix current = iter->first
    [all...]
protocol_parser.cc 93 const std::vector<SBPrefix>& prefixes, std::string* request) {
98 sizeof(SBPrefix),
99 sizeof(SBPrefix) * prefixes.size()));
102 sizeof(SBPrefix));
217 if (hash_len != sizeof(SBPrefix) && hash_len != sizeof(SBFullHash)) {
263 SBEntry::Type type = hash_len == sizeof(SBPrefix) ?
284 SBPrefix host;
285 const int min_size = sizeof(SBPrefix) + 1;
313 SBEntry::Type type = hash_len == sizeof(SBPrefix) ?
332 SBPrefix host
    [all...]
protocol_parser.h 83 void FormatGetHash(const std::vector<SBPrefix>& prefixes,
101 SBPrefix* host,
safe_browsing_util.h 24 typedef int32 SBPrefix;
35 SBPrefix prefix;
48 SBPrefix host;
208 return IsPrefix() ? sizeof(SBPrefix) : sizeof(SBFullHash);
220 const SBPrefix& PrefixAt(int index) const;
225 void SetPrefixAt(int index, const SBPrefix& prefix);
232 SBPrefix prefix;
276 SBPrefix add_prefixes_[1];
safe_browsing_service_browsertest.cc 89 std::vector<SBPrefix>* prefix_hits,
99 std::vector<SBPrefix>* prefix_hits) OVERRIDE {
109 virtual bool ContainsDownloadHashPrefix(const SBPrefix& prefix) OVERRIDE {
123 const std::vector<SBPrefix>& prefixes,
124 std::vector<SBPrefix>* prefix_hits) OVERRIDE {
148 virtual void CacheHashResults(const std::vector<SBPrefix>& prefixes,
159 const std::vector<SBPrefix>& prefix_hits,
167 void AddDownloadPrefix(SBPrefix prefix) {
174 std::vector<SBPrefix> prefix_hits;
181 std::vector<SBPrefix>* prefix_hits
    [all...]
safe_browsing_database.cc 155 std::vector<SBPrefix>* prefixes) {
171 const std::vector<SBPrefix>& prefixes,
172 std::vector<SBPrefix>* prefix_hits) {
181 const SBPrefix& prefix = prefixes[j];
200 void GetCachedFullHashesForBrowse(const std::vector<SBPrefix>& prefix_hits,
207 std::vector<SBPrefix>::const_iterator piter = prefix_hits.begin();
683 std::vector<SBPrefix>* prefix_hits,
708 const SBPrefix prefix = full_hashes[i].prefix;
734 std::vector<SBPrefix>* prefix_hits) {
741 std::vector<SBPrefix> prefixes
    [all...]
safe_browsing_store_file.h 125 virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) OVERRIDE;
130 int32 add_chunk_id, SBPrefix prefix) OVERRIDE;

Completed in 106 milliseconds

1 2