#include "components/omnibox/browser/bookmark_provider.h"
#include <stddef.h>
#include <algorithm>
#include <string>
#include <vector>
#include "base/feature_list.h"
#include "base/memory/raw_ptr.h"
#include "base/trace_event/trace_event.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_provider_client.h"
#include "components/omnibox/browser/autocomplete_result.h"
#include "components/omnibox/browser/keyword_provider.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/omnibox_triggered_feature_service.h"
#include "components/omnibox/browser/scoring_functor.h"
#include "components/omnibox/browser/titled_url_match_utils.h"
#include "components/prefs/pref_service.h"
#include "third_party/metrics_proto/omnibox_event.pb.h"
#include "third_party/metrics_proto/omnibox_focus_type.pb.h"
#include "third_party/metrics_proto/omnibox_input_type.pb.h"
#include "ui/base/page_transition_types.h"
#include "url/url_constants.h"
BookmarkNode;
TitledUrlMatch;
BookmarkProvider::BookmarkProvider(AutocompleteProviderClient* client)
: … { … }
void BookmarkProvider::Start(const AutocompleteInput& input,
bool minimal_changes) { … }
BookmarkProvider::~BookmarkProvider() = default;
void BookmarkProvider::DoAutocomplete(const AutocompleteInput& input) { … }
query_parser::MatchingAlgorithm BookmarkProvider::GetMatchingAlgorithm(
AutocompleteInput input) { … }
std::pair<int, int> BookmarkProvider::CalculateBookmarkMatchRelevance(
const TitledUrlMatch& bookmark_match) const { … }