chromium/third_party/blink/renderer/core/highlight/highlight_registry_map_entry.h

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

#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HIGHLIGHT_HIGHLIGHT_REGISTRY_MAP_ENTRY_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_HIGHLIGHT_HIGHLIGHT_REGISTRY_MAP_ENTRY_H_

#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string_hash.h"

namespace blink {

class Highlight;

struct HighlightRegistryMapEntry final
    : public GarbageCollected<HighlightRegistryMapEntry> {};

// Translator used for looking up a HighlightRegistryMapEntry using only the
// name. Use with the special Find<Translator>() on the highlights set.
struct HighlightRegistryMapEntryNameTranslator {};

}  // namespace blink

namespace WTF {

template <>
struct HashTraits<blink::Member<blink::HighlightRegistryMapEntry>>
    : MemberHashTraits<blink::HighlightRegistryMapEntry> {};

}  // namespace WTF

#endif  // THIRD_PARTY_BLINK_RENDERER_CORE_HIGHLIGHT_HIGHLIGHT_REGISTRY_MAP_ENTRY_H_