#include "history_embeddings_provider.h"
#include <string>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "components/history_embeddings/history_embeddings_features.h"
#include "components/history_embeddings/history_embeddings_service.h"
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_classification.h"
#include "components/omnibox/browser/autocomplete_provider.h"
#include "components/omnibox/browser/autocomplete_provider_client.h"
#include "components/omnibox/browser/keyword_provider.h"
namespace {
constexpr int kMaxScore = …;
}
HistoryEmbeddingsProvider::HistoryEmbeddingsProvider(
AutocompleteProviderClient* client,
AutocompleteProviderListener* listener)
: … { … }
HistoryEmbeddingsProvider::~HistoryEmbeddingsProvider() = default;
void HistoryEmbeddingsProvider::Start(const AutocompleteInput& input,
bool minimal_changes) { … }
void HistoryEmbeddingsProvider::Stop(bool clear_cached_results,
bool due_to_user_inactivity) { … }
void HistoryEmbeddingsProvider::OnReceivedSearchResult(
std::u16string input_text,
history_embeddings::SearchResult result) { … }