Home | History | Annotate | Download | only in safe_browsing

Lines Matching refs:SBPrefix

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;
141 void PrefixSet::GetPrefixes(std::vector<SBPrefix>* prefixes) const {
148 SBPrefix current = index_[ii].first;
177 std::vector<std::pair<SBPrefix,size_t> > index;