#include "omnibox_input_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 OmniboxInputWatcherFactory : public BrowserContextKeyedServiceFactory { … };
#endif
}
OmniboxInputWatcher::OmniboxInputWatcher() = default;
OmniboxInputWatcher::~OmniboxInputWatcher() = default;
#if !BUILDFLAG(IS_IOS)
OmniboxInputWatcher* OmniboxInputWatcher::GetForBrowserContext(
content::BrowserContext* browser_context) { … }
#endif
void OmniboxInputWatcher::AddObserver(Observer* observer) { … }
void OmniboxInputWatcher::RemoveObserver(Observer* observer) { … }
void OmniboxInputWatcher::NotifyInputEntered() { … }
void OmniboxInputWatcher::EnsureFactoryBuilt() { … }