// Copyright 2022 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_CLUSTER_PROVIDER_H_ #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_CLUSTER_PROVIDER_H_ #include "components/omnibox/browser/autocomplete_input.h" #include "components/omnibox/browser/autocomplete_provider.h" #include "components/omnibox/browser/autocomplete_provider_listener.h" class AutocompleteProvider; class AutocompleteProviderClient; // `HistoryClusterProvider` adds suggestions to the history journey page if // any `SearchProvider` suggestions matched a cluster keyword. Inherits // `AutocompleteProviderListener` in order to listen to `SearchProvider` // updates. Uses `SearchProvider` suggestions, as a proxy for what the user may // be typing if they're typing a query. Doesn't use other search providers' // (i.e. `VoiceSearchProvider` and `ZeroSuggestProvider`) suggestions for // simplicity. class HistoryClusterProvider : public AutocompleteProvider, public AutocompleteProviderListener { … }; #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_CLUSTER_PROVIDER_H_