chromium/ui/gfx/extension_set.h

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

#ifndef UI_GFX_EXTENSION_SET_H_
#define UI_GFX_EXTENSION_SET_H_

#include <string_view>

#include "base/containers/flat_set.h"
#include "ui/gfx/gfx_export.h"

namespace gfx {

ExtensionSet;

GFX_EXPORT ExtensionSet MakeExtensionSet(std::string_view extensions_string);

GFX_EXPORT bool HasExtension(const ExtensionSet& extension_set,
                             std::string_view extension);

template <size_t N>
inline bool HasExtension(const ExtensionSet& extension_set,
                         const char (&extension)[N]) {}

GFX_EXPORT std::string MakeExtensionString(const ExtensionSet& extension_set);

}  // namespace gfx

#endif  // UI_GFX_EXTENSION_SET_H_