#include "components/reduce_accept_language/browser/in_memory_reduce_accept_language_service.h"
#include <optional>
#include <string>
#include <vector>
#include "base/functional/bind.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace reduce_accept_language {
InMemoryReduceAcceptLanguageService::InMemoryReduceAcceptLanguageService(
const std::vector<std::string>& accept_languages)
: … { … }
InMemoryReduceAcceptLanguageService::~InMemoryReduceAcceptLanguageService() =
default;
std::optional<std::string>
InMemoryReduceAcceptLanguageService::GetReducedLanguage(
const url::Origin& origin) { … }
std::vector<std::string>
InMemoryReduceAcceptLanguageService::GetUserAcceptLanguages() const { … }
void InMemoryReduceAcceptLanguageService::PersistReducedLanguage(
const url::Origin& origin,
const std::string& language) { … }
void InMemoryReduceAcceptLanguageService::ClearReducedLanguage(
const url::Origin& origin) { … }
}