#include "autocomplete_controller_emitter.h"
#include "build/build_config.h"
#include "components/omnibox/browser/autocomplete_controller.h"
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_result.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"
#include "content/public/browser/browser_context.h"
#endif
namespace {
#if !BUILDFLAG(IS_IOS)
class AutocompleteControllerEmitterFactory
: public BrowserContextKeyedServiceFactory { … };
#endif
}
AutocompleteControllerEmitter::AutocompleteControllerEmitter() = default;
AutocompleteControllerEmitter::~AutocompleteControllerEmitter() = default;
#if !BUILDFLAG(IS_IOS)
AutocompleteControllerEmitter*
AutocompleteControllerEmitter::GetForBrowserContext(
content::BrowserContext* browser_context) { … }
#endif
void AutocompleteControllerEmitter::AddObserver(
AutocompleteController::Observer* observer) { … }
void AutocompleteControllerEmitter::RemoveObserver(
AutocompleteController::Observer* observer) { … }
void AutocompleteControllerEmitter::OnStart(AutocompleteController* controller,
const AutocompleteInput& input) { … }
void AutocompleteControllerEmitter::OnResultChanged(
AutocompleteController* controller,
bool default_match_changed) { … }
void AutocompleteControllerEmitter::OnMlScored(
AutocompleteController* controller,
const AutocompleteResult& result) { … }
#if !BUILDFLAG(IS_IOS)
void AutocompleteControllerEmitter::EnsureFactoryBuilt() { … }
#endif