/external/chromium/chrome/browser/safe_browsing/ |
prefix_set.cc | 47 index_.push_back(std::make_pair(prev_prefix, deltas_.size())); 54 checksum ^= static_cast<uint32>(deltas_.size()); 71 checksum ^= static_cast<uint32>(deltas_.size()); 72 index_.push_back(std::make_pair(sorted_prefixes[i], deltas_.size())); 77 deltas_.push_back(delta16); 78 DCHECK_EQ(static_cast<unsigned>(deltas_.back()), delta); 90 deltas_.size() * sizeof(deltas_[0]) * CHAR_BIT; 91 const size_t unique_prefixes = index_.size() + deltas_.size(); 103 deltas_.swap(*deltas) [all...] |
prefix_set.h | 13 // 5, 16, 65391 in |deltas_|. 15 // 10000 in |deltas_|. 16 // |index_.size()| will be 2, |deltas_.size()| will be 4. 44 // 4 byte |deltas_.size()| 46 // m * 2 byte |&deltas_[0]..&deltas_[m]| 93 // Check whether |index_| and |deltas_| still match the CRC 108 // Top-level index of prefix to offset in |deltas_|. Each pair 110 // begin in |deltas_|. The deltas for a pair end at the next pair's 111 // index into |deltas_| 117 std::vector<uint16> deltas_; member in class:safe_browsing::PrefixSet [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
prefix_set.cc | 49 deltas_.reserve(sorted_prefixes.size() - min_runs); 54 index_.push_back(std::make_pair(prev_prefix, deltas_.size())); 70 index_.push_back(std::make_pair(sorted_prefixes[i], deltas_.size())); 74 deltas_.push_back(delta16); 75 DCHECK_EQ(static_cast<unsigned>(deltas_.back()), delta); 85 deltas_.size() * sizeof(deltas_[0]) * CHAR_BIT; 86 const size_t unique_prefixes = index_.size() + deltas_.size(); 98 deltas_.swap(*deltas); 118 const size_t bound = (iter == index_.end() ? deltas_.size() : iter->second) [all...] |
prefix_set.h | 13 // 5, 16, 65391 in |deltas_|. 15 // 10000 in |deltas_|. 16 // |index_.size()| will be 2, |deltas_.size()| will be 4. 44 // 4 byte |deltas_.size()| 46 // m * 2 byte |&deltas_[0]..&deltas_[m]| 89 // Top-level index of prefix to offset in |deltas_|. Each pair 91 // begin in |deltas_|. The deltas for a pair end at the next pair's 92 // index into |deltas_|. 97 // |index_|, or the end of |deltas_| for the last |index_| pair 98 std::vector<uint16> deltas_; member in class:safe_browsing::PrefixSet [all...] |