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

#ifndef AcceptLanguagesResolver_h
#define AcceptLanguagesResolver_h

#include "platform/PlatformExport.h"
#include "wtf/text/WTFString.h"

#include <unicode/uscript.h>

namespace blink {

class PLATFORM_EXPORT AcceptLanguagesResolver {
public:
    static UScriptCode preferredHanScript() { return m_preferredHanScript; }
    static const char* preferredHanSkFontMgrLocale()
    {
        return m_preferredHanSkFontMgrLocale;
    }

    static void acceptLanguagesChanged(const String&);

    static void updateFromAcceptLanguages(const String&);

private:
    static UScriptCode m_preferredHanScript;
    static const char* m_preferredHanSkFontMgrLocale;
};

} // namespace blink

#endif // AcceptLanguagesResolver_h
