chromium/components/omnibox/browser/history_scoring_signals_annotator.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_OMNIBOX_BROWSER_HISTORY_SCORING_SIGNALS_ANNOTATOR_H_
#define COMPONENTS_OMNIBOX_BROWSER_HISTORY_SCORING_SIGNALS_ANNOTATOR_H_

#include <string>

#include "base/memory/raw_ptr.h"
#include "components/omnibox/browser/autocomplete_scoring_signals_annotator.h"
#include "components/omnibox/browser/in_memory_url_index_types.h"

class AutocompleteInput;
class AutocompleteProviderClient;
class AutocompleteResult;

// History scoring signals annotator for annotating URL suggestions in
// the autocomplete result with signals derived from history, including:
// `typed_count`, `visit_count`, `elapsed_time_last_visit_secs`,
// `total_title_match_length`, and `num_input_terms_matched_by_title`.
//
// Currently, only synchronously looks up URLs from the in-memory URL DB.
// Skips suggestions that already have history signals.
//
// Can annotate eligible URL suggesions from various providers, including
// history, bookmark, and shortcut suggestions.
class HistoryScoringSignalsAnnotator
    : public AutocompleteScoringSignalsAnnotator {};

#endif  // COMPONENTS_OMNIBOX_BROWSER_HISTORY_SCORING_SIGNALS_ANNOTATOR_H_