#ifndef TextDecoder_h
#define TextDecoder_h
-#include "bindings/core/v8/Dictionary.h"
#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/encoding/TextDecodeOptions.h"
+#include "modules/encoding/TextDecoderOptions.h"
#include "platform/heap/Handle.h"
#include "wtf/ArrayBufferView.h"
#include "wtf/text/TextCodec.h"
class ExceptionState;
class TextDecoder FINAL : public GarbageCollectedFinalized<TextDecoder>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static TextDecoder* create(const String& label, const Dictionary&, ExceptionState&);
+ static TextDecoder* create(const String& label, const TextDecoderOptions&, ExceptionState&);
~TextDecoder();
// Implement the IDL
String encoding() const;
bool fatal() const { return m_fatal; }
bool ignoreBOM() const { return m_ignoreBOM; }
- String decode(ArrayBufferView*, const Dictionary&, ExceptionState&);
- String decode(ExceptionState& exceptionState) { return decode(0, Dictionary(), exceptionState); }
+ String decode(ArrayBufferView*, const TextDecodeOptions&, ExceptionState&);
+ String decode(ExceptionState&);
void trace(Visitor*) { }