#ifndef DOMMimeTypeArray_h
#define DOMMimeTypeArray_h
#include "bindings/v8/ScriptWrappable.h"
#include "core/frame/DOMWindowProperty.h"
#include "core/plugins/DOMMimeType.h"
#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
namespace WebCore {
class LocalFrame;
class PluginData;
class DOMMimeTypeArray FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMMimeTypeArray>, public ScriptWrappable, public DOMWindowProperty {
public:
static PassRefPtrWillBeRawPtr<DOMMimeTypeArray> create(LocalFrame* frame)
{
return adoptRefWillBeNoop(new DOMMimeTypeArray(frame));
}
virtual ~DOMMimeTypeArray();
unsigned length() const;
PassRefPtrWillBeRawPtr<DOMMimeType> item(unsigned index);
bool canGetItemsForName(const AtomicString& propertyName);
PassRefPtrWillBeRawPtr<DOMMimeType> namedItem(const AtomicString& propertyName);
void trace(Visitor*) { }
private:
explicit DOMMimeTypeArray(LocalFrame*);
PluginData* getPluginData() const;
};
}
#endif