chromium/third_party/blink/renderer/bindings/core/v8/maplike.h

// Copyright 2015 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_BINDINGS_CORE_V8_MAPLIKE_H_
#define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_MAPLIKE_H_

#include "third_party/blink/renderer/bindings/core/v8/iterable.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"

namespace blink {

namespace bindings {

template <typename IDLKeyType,
          typename IDLValueType,
          typename KeyType,
          typename ValueType>
class MaplikeReadAcccess {};

}  // namespace bindings

template <typename IDLInterface>
class Maplike : public PairSyncIterable<IDLInterface>,
                public bindings::MaplikeReadAcccess<
                    typename PairSyncIterable<IDLInterface>::IDLKeyType,
                    typename PairSyncIterable<IDLInterface>::IDLValueType,
                    typename PairSyncIterable<IDLInterface>::KeyType,
                    typename PairSyncIterable<IDLInterface>::ValueType> {};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_MAPLIKE_H_