blob: 95aefd790d38b52c944626847df5c0f7e77b379b [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_AUTOCOMPLETE_CHROME_AIM_ELIGIBILITY_SERVICE_H_
#define CHROME_BROWSER_AUTOCOMPLETE_CHROME_AIM_ELIGIBILITY_SERVICE_H_
#include <string>
#include "base/memory/scoped_refptr.h"
#include "components/omnibox/browser/aim_eligibility_service.h"
class PrefService;
class TemplateURLService;
namespace network {
class SharedURLLoaderFactory;
} // namespace network
// Concrete implementation of AimEligibilityService needed for fetching the
// country code and locale from the browser process.
class ChromeAimEligibilityService : public AimEligibilityService {
public:
ChromeAimEligibilityService(
PrefService& pref_service,
TemplateURLService* template_url_service,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
signin::IdentityManager* identity_manager);
~ChromeAimEligibilityService() override;
// AimEligibilityService:
std::string GetCountryCode() const override;
std::string GetLocale() const override;
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_CHROME_AIM_ELIGIBILITY_SERVICE_H_