#include "components/omnibox/browser/titled_url_match_utils.h"
#include <numeric>
#include <string_view>
#include <vector>
#include "base/metrics/field_trial_params.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/bookmarks/browser/titled_url_node.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_classification.h"
#include "components/omnibox/browser/autocomplete_scoring_signals_annotator.h"
#include "components/omnibox/browser/history_provider.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/url_prefix.h"
#include "components/query_parser/snippet.h"
#include "components/url_formatter/url_formatter.h"
#include "third_party/metrics_proto/omnibox_scoring_signals.pb.h"
namespace bookmarks {
namespace {
ScoringSignals;
std::u16string ConcatAncestorsTitles(
std::vector<std::u16string_view> ancestors) { … }
}
AutocompleteMatch TitledUrlMatchToAutocompleteMatch(
const TitledUrlMatch& titled_url_match,
AutocompleteMatchType::Type type,
int relevance,
int bookmark_count,
AutocompleteProvider* provider,
const AutocompleteSchemeClassifier& scheme_classifier,
const AutocompleteInput& input,
const std::u16string& fixed_up_input_text) { … }
int GetTotalTitleMatchLength(
const query_parser::Snippet::MatchPositions& title_match_positions) { … }
}