Lines Matching refs:history

19 #include "chrome/browser/history/history_backend.h"
20 #include "chrome/browser/history/history_database.h"
21 #include "chrome/browser/history/history_service.h"
22 #include "chrome/browser/history/history_service_factory.h"
23 #include "chrome/browser/history/in_memory_url_index_types.h"
24 #include "chrome/browser/history/scored_history_match.h"
32 #include "components/history/core/browser/history_types.h"
51 bool CompareHistoryMatch(const history::HistoryMatch& a,
52 const history::HistoryMatch& b) {
81 void SortAndDedupMatches(history::HistoryMatches* matches) {
105 for (history::HistoryMatches::iterator j(matches->begin() + i + 1);
152 const history::HistoryMatch& match,
180 void RecordAdditionalInfoFromUrlRow(const history::URLRow& info,
200 bool CreateOrPromoteMatch(const history::URLRow& info,
203 history::HistoryMatches* matches,
207 for (history::HistoryMatches::iterator i(matches->begin());
221 history::HistoryMatch match(info, input_location, match_in_scheme, true);
231 bool CanPromoteMatchForInlineAutocomplete(const history::HistoryMatch& match) {
245 GURL ConvertToHostOnly(const history::HistoryMatch& match,
405 history::URLDatabase* db);
411 const history::URLRow& url_row() const { return url_row_; }
415 history::URLDatabase* db_;
417 history::URLRow url_row_;
425 history::URLDatabase* db)
431 // and because the history backend strips auth creds, we'll get a bogus exact
448 url_row_ = history::URLRow(url);
490 // history DB without re-querying. However, we'd still have to go back to
491 // the history thread to mark these up properly, and if pass 2 is currently
522 // Add the WYT match as a fallback in case we can't get the history service or
529 // We'll need the history service to run both passes, so try to obtain it.
538 // retrieve these on the UI thread, and the second pass runs on the history
560 history::URLDatabase* url_db = history_service->InMemoryDatabase();
566 // someone unloads the history backend, we'll get inconsistent inline
577 // Pass 2: Ask the history service to call us back on the history thread,
655 history::HistoryBackend* backend,
656 history::URLDatabase* db) {
679 // history, back to main while holding a reference. If the main thread
680 // completes before the history thread, the message to delegate back to the
709 history::TermMatches description_matches(SortAndDeoverlapMatches(
710 history::MatchTermInString(input_text, clean_description, 0)));
711 history::WordStarts description_word_starts;
712 history::String16VectorFromString16(
716 history::WordStarts offsets(1, 0u);
718 history::ScoredHistoryMatch::FilterTermMatchesByWordStarts(
725 void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend,
726 history::URLDatabase* db,
730 history::URLRows url_matches;
746 for (history::URLRows::const_iterator j(url_matches.begin());
751 params->matches.push_back(history::HistoryMatch(
780 // Check whether what the user typed appears in history.
792 // consider the exact suggestion to be in history and therefore will not
800 // If we succeeded in fixing up the exact match based on the user's history,
871 // Convert the history matches to autocomplete matches. If we promoted the
894 history::URLDatabase* db,
969 history::URLDatabase* db,
990 history::URLDatabase* db,
999 const history::HistoryMatch& match = params->matches[0];
1023 history::URLRow info(search_base);
1057 const base::Time& threshold(history::AutocompleteAgeThreshold());
1058 for (history::HistoryMatches::iterator i(params->matches.begin());
1071 void HistoryURLProvider::CullRedirects(history::HistoryBackend* backend,
1072 history::HistoryMatches* matches,
1078 history::RedirectList redirects;
1102 history::HistoryMatches* matches,
1109 history::HistoryMatches::iterator first(std::find_first_of(
1111 history::HistoryMatch::EqualsGURL));
1117 for (history::HistoryMatches::iterator next(std::find_first_of(first + 1,
1119 history::HistoryMatch::EqualsGURL));
1121 remove.begin(), remove.end(), history::HistoryMatch::EqualsGURL)) {
1141 const history::HistoryMatch& history_match = params.matches[match_number];
1142 const history::URLRow& info = history_match.url_info;