Chromium Code Reviews| Index: Source/modules/encoding/TextDecoder.h |
| diff --git a/Source/modules/encoding/TextDecoder.h b/Source/modules/encoding/TextDecoder.h |
| index 58eddcfeec554e8708b531db73f5f6f03b65495c..2d64f2acab93cdc6b33b339271c5d7e2a3f5a854 100644 |
| --- a/Source/modules/encoding/TextDecoder.h |
| +++ b/Source/modules/encoding/TextDecoder.h |
| @@ -32,6 +32,7 @@ |
| #define TextDecoder_h |
| #include "bindings/v8/Dictionary.h" |
| +#include "heap/Handle.h" |
| #include "wtf/ArrayBufferView.h" |
| #include "wtf/RefCounted.h" |
| #include "wtf/text/TextCodec.h" |
| @@ -42,9 +43,10 @@ namespace WebCore { |
| class ExceptionState; |
| -class TextDecoder FINAL : public RefCounted<TextDecoder> { |
| +class TextDecoder FINAL : public RefCountedWillBeGarbageCollectedFinalized<TextDecoder> { |
| + DECLARE_GC_INFO; |
| public: |
| - static PassRefPtr<TextDecoder> create(const String& label, const Dictionary&, ExceptionState&); |
| + static PassRefPtrWillBeRawPtr<TextDecoder> create(const String& label, const Dictionary&, ExceptionState&); |
| ~TextDecoder(); |
| // Implement the IDL |
| @@ -52,8 +54,7 @@ public: |
| String decode(ArrayBufferView*, const Dictionary&, ExceptionState&); |
| String decode(ExceptionState& exceptionState) { return decode(0, Dictionary(), exceptionState); } |
| - using RefCounted<TextDecoder>::ref; |
| - using RefCounted<TextDecoder>::deref; |
|
zerny-chromium
2014/02/06 10:23:09
QQ: Should these not be behind an #if flag? Or wer
|
| + void trace(Visitor*) { } |
| private: |
| TextDecoder(const String& encoding, bool fatal); |