chromium/components/omnibox/browser/autocomplete_controller_emitter.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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  // !BUILDFLAG(IS_IOS)

namespace {

#if !BUILDFLAG(IS_IOS)
class AutocompleteControllerEmitterFactory
    : public BrowserContextKeyedServiceFactory {};
#endif  // !BUILDFLAG(IS_IOS)

}  // namespace

AutocompleteControllerEmitter::AutocompleteControllerEmitter() = default;
AutocompleteControllerEmitter::~AutocompleteControllerEmitter() = default;

#if !BUILDFLAG(IS_IOS)
// static
AutocompleteControllerEmitter*
AutocompleteControllerEmitter::GetForBrowserContext(
    content::BrowserContext* browser_context) {}
#endif  // !BUILDFLAG(IS_IOS)

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)
// static
void AutocompleteControllerEmitter::EnsureFactoryBuilt() {}
#endif  // !BUILDFLAG(IS_IOS)