Searched refs:matches_ (Results 1 - 25 of 25) sorted by relevance

/external/chromium_org/components/omnibox/
H A Dautocomplete_result.cc125 matches_.reserve(kMaxMatches);
185 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_));
193 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i)
197 &matches_);
208 for (AutocompleteResult::iterator it = matches_.begin();
209 (it != matches_.end()) && !has_legal_default_match_without_completion;
218 size_t max_num_matches = std::min(kMaxMatches, matches_.size());
220 std::sort(matches_.begin(), matches_
[all...]
H A Dautocomplete_provider.h192 const ACMatches& matches() const { return matches_; }
239 ACMatches matches_; member in class:AutocompleteProvider
H A Dautocomplete_result.h179 // Populates |provider_to_matches| from |matches_|.
189 ACMatches matches_; member in class:AutocompleteResult
H A Dsearch_provider.cc201 matches_.clear();
259 matches_.push_back(match);
446 if (!matches_.empty() &&
456 (FindTopMatch() == matches_.end())) {
477 if (!is_extension_keyword && (FindTopMatch() == matches_.end())) {
492 DCHECK(is_extension_keyword || (FindTopMatch() != matches_.end()));
495 "Omnibox.SearchProviderMatches", matches_.size(), 1, 6, 7);
501 if ((first_match != matches_.end()) &&
826 for (ACMatches::iterator it = matches_.begin(); it != matches_
[all...]
H A Dbase_search_provider.cc460 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
467 matches_.erase(i);
H A Dkeyword_provider.cc207 matches_.clear();
297 matches_.push_back(CreateAutocompleteMatch(
310 matches_.push_back(CreateAutocompleteMatch(
/external/chromium_org/components/query_parser/
H A Dsnippet.h58 const MatchPositions& matches() const { return matches_; }
68 MatchPositions matches_; member in class:query_parser::Snippet
H A Dsnippet.cc260 matches_.push_back(std::make_pair(first, snippet.size()));
299 matches_.swap(other->matches_);
/external/chromium_org/chrome/browser/autocomplete/
H A Dhistory_url_provider_unittest.cc217 ACMatches matches_; member in class:HistoryURLProviderTest
302 matches_ = autocomplete_->matches();
306 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i)
309 input.current_page_classification(), false, &matches_);
310 std::sort(matches_.begin(), matches_.end(),
313 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text
316 EXPECT_EQ(expected_urls[i].url, matches_[i].destination_url.spec());
318 matches_[
[all...]
H A Dshortcuts_provider.cc71 matches_.clear();
96 // Copy the URL since deleting from |matches_| will invalidate |match|.
107 matches_.erase(std::remove_if(matches_.begin(), matches_.end(),
109 matches_.end());
155 matches_.push_back(ShortcutToACMatch(it->second, relevance, input,
157 matches_.back().ComputeStrippedDestinationURL(template_url_service);
164 input.current_page_classification(), false, &matches_);
166 std::partial_sort(matches_
[all...]
H A Dbuiltin_provider.cc65 matches_.clear();
130 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) {
144 for (size_t i = 0; i < matches_.size(); ++i)
145 matches_[i].relevance = kRelevance + matches_.size() - (i + 1);
147 (matches_.size() == 1)) {
151 matches_[0].relevance = 1250;
152 matches_[0].allowed_to_be_default_match = true;
168 matches_.push_back(match);
H A Dbookmark_provider.cc70 matches_.clear();
121 matches_.push_back(match);
126 std::min(matches_.size(), AutocompleteProvider::kMaxMatches);
127 std::partial_sort(matches_.begin(), matches_.begin() + num_matches,
128 matches_.end(), AutocompleteMatch::MoreRelevant);
129 matches_.resize(num_matches);
H A Dhistory_provider.cc59 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) {
71 matches_.erase(i);
H A Dzero_suggest_provider.cc94 matches_.clear();
344 matches_.clear();
367 matches_.push_back(current_url_match_);
384 matches_.push_back(NavigationToMatch(nav));
395 matches_.push_back(current_url_match_);
398 matches_.push_back(it->second);
404 matches_.push_back(NavigationToMatch(*it));
467 results_from_cache_ = !matches_.empty();
H A Dkeyword_extensions_delegate_impl.h51 ACMatches* matches() { return &provider_->matches_; }
H A Dhistory_url_provider.cc500 matches_.clear();
527 matches_.push_back(what_you_typed_match);
570 matches_.clear();
833 matches_.push_back(HistoryMatchToACMatch(params, 0, INLINE_AUTOCOMPLETE,
837 matches_.push_back(params.what_you_typed_match);
841 matches_.push_back(params.what_you_typed_match);
859 // Don't modify |matches_| if the query failed, since it might have a default
862 matches_.clear();
866 int relevance = matches_.empty() ?
869 matches_[
[all...]
H A Dhistory_quick_provider.cc60 matches_.clear();
187 // Loop over every result and add it to matches_. In the process,
217 matches_.push_back(QuickMatchToACMatch(history_match, max_match_score));
H A Dshortcuts_provider_unittest.cc221 const ACMatchClassifications matches_; member in class:ClassifyTest
227 matches_(matches) {
235 ShortcutsProvider::CreateWordMapForString(find_text), text_, matches_);
257 return matches_;
261 std::set<ExpectedURLAndAllowedToBeDefault> matches_; member in class:ShortcutsProviderTest::SetShouldContain
344 matches_.insert(ExpectedURLAndAllowedToBeDefault(
350 EXPECT_EQ(1U, matches_.erase(expected));
H A Dhistory_quick_provider_unittest.cc122 std::set<std::string> LeftOvers() const { return matches_; }
125 std::set<std::string> matches_; member in class:HistoryQuickProviderTest::SetShouldContain
259 matches_.insert(iter->destination_url.spec());
264 EXPECT_EQ(1U, matches_.erase(expected))
H A Dautocomplete_provider_unittest.cc91 matches_.clear();
155 matches_.push_back(match);
H A Dsearch_provider_unittest.cc3243 provider_->matches_.push_back(match);
3246 EXPECT_TRUE(provider_->matches_.empty());
3257 provider_->matches_.push_back(match);
/external/chromium_org/components/url_matcher/
H A Dsubstring_set_matcher.h104 const Matches& matches() const { return matches_; }
114 Matches matches_; member in class:url_matcher::SubstringSetMatcher::AhoCorasickNode
H A Dsubstring_set_matcher.cc243 matches_(other.matches_) {}
250 matches_ = other.matches_;
264 matches_.insert(id);
269 matches_.insert(matches.begin(), matches.end());
/external/chromium_org/extensions/common/features/
H A Dsimple_feature.h139 URLPatternSet matches_; member in class:extensions::SimpleFeature
H A Dsimple_feature.cc271 ParseURLPatterns(value, "matches", &matches_);
405 // TODO(kalman): Consider checking |matches_| regardless of context type.
409 !matches_.MatchesURL(url)) {

Completed in 291 milliseconds