#include "omnibox_suggestions_watcher.h"
#include "base/observer_list.h"
#include "build/build_config.h"
#if !BUILDFLAG(IS_IOS)
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#endif
namespace {
#if !BUILDFLAG(IS_IOS)
class OmniboxSuggestionsWatcherFactory
: public BrowserContextKeyedServiceFactory { … };
#endif
}
OmniboxSuggestionsWatcher::OmniboxSuggestionsWatcher() = default;
OmniboxSuggestionsWatcher::~OmniboxSuggestionsWatcher() = default;
#if !BUILDFLAG(IS_IOS)
OmniboxSuggestionsWatcher* OmniboxSuggestionsWatcher::GetForBrowserContext(
content::BrowserContext* browser_context) { … }
#endif
void OmniboxSuggestionsWatcher::AddObserver(Observer* observer) { … }
void OmniboxSuggestionsWatcher::RemoveObserver(Observer* observer) { … }
void OmniboxSuggestionsWatcher::NotifySuggestionsReady(
extensions::api::omnibox::SendSuggestions::Params* suggestions) { … }
void OmniboxSuggestionsWatcher::NotifyDefaultSuggestionChanged() { … }
void OmniboxSuggestionsWatcher::EnsureFactoryBuilt() { … }