#include "components/omnibox/browser/autocomplete_provider.h"
#include <algorithm>
#include <string>
#include "base/notreached.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/omnibox/browser/autocomplete_i18n.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_listener.h"
#include "components/omnibox/browser/history_provider.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/url_formatter/url_fixer.h"
#include "url/gurl.h"
AutocompleteProvider::AutocompleteProvider(Type type)
: … { … }
const char* AutocompleteProvider::TypeToString(Type type) { … }
void AutocompleteProvider::AddListener(AutocompleteProviderListener* listener) { … }
void AutocompleteProvider::NotifyListeners(bool updated_matches) const { … }
void AutocompleteProvider::StartPrefetch(const AutocompleteInput& input) { … }
void AutocompleteProvider::Stop(bool clear_cached_results,
bool due_to_user_inactivity) { … }
const char* AutocompleteProvider::GetName() const { … }
metrics::OmniboxEventProto_ProviderType
AutocompleteProvider::AsOmniboxEventProviderType() const { … }
void AutocompleteProvider::DeleteMatch(const AutocompleteMatch& match) { … }
void AutocompleteProvider::DeleteMatchElement(const AutocompleteMatch& match,
size_t element_index) { … }
void AutocompleteProvider::AddProviderInfo(ProvidersInfo* provider_info) const { … }
size_t AutocompleteProvider::EstimateMemoryUsage() const { … }
AutocompleteProvider::~AutocompleteProvider() { … }
AutocompleteProvider::FixupReturn AutocompleteProvider::FixupUserInput(
const AutocompleteInput& input) { … }
size_t AutocompleteProvider::TrimSchemePrefix(std::u16string* url,
bool trim_https) { … }
void AutocompleteProvider::ResizeMatches(size_t max_matches,
bool ml_scoring_enabled) { … }