Chromium Code Reviews| Index: Source/modules/encoding/TextEncoder.h |
| diff --git a/Source/modules/encoding/TextEncoder.h b/Source/modules/encoding/TextEncoder.h |
| index 752198d6ef8aa3455dcf9a7a10e077e6736b59df..de007b29d14cf726e06c3ac88aecb8c383b14cf9 100644 |
| --- a/Source/modules/encoding/TextEncoder.h |
| +++ b/Source/modules/encoding/TextEncoder.h |
| @@ -31,6 +31,7 @@ |
| #ifndef TextEncoder_h |
| #define TextEncoder_h |
| +#include "heap/Handle.h" |
| #include "wtf/ArrayBufferView.h" |
| #include "wtf/RefCounted.h" |
| #include "wtf/Uint8Array.h" |
| @@ -43,17 +44,17 @@ namespace WebCore { |
| class Dictionary; |
| class ExceptionState; |
| -class TextEncoder FINAL : public RefCounted<TextEncoder> { |
| +class TextEncoder FINAL : public RefCountedWillBeGarbageCollectedFinalized<TextEncoder> { |
| + DECLARE_GC_INFO; |
| public: |
| - static PassRefPtr<TextEncoder> create(const String& utfLabel, ExceptionState&); |
| + static PassRefPtrWillBeRawPtr<TextEncoder> create(const String& utfLabel, ExceptionState&); |
| ~TextEncoder(); |
| // Implement the IDL |
| String encoding() const; |
| PassRefPtr<Uint8Array> encode(const String&, const Dictionary&); |
| - using RefCounted<TextEncoder>::ref; |
| - using RefCounted<TextEncoder>::deref; |
|
zerny-chromium
2014/02/06 10:23:09
ditto
|
| + void trace(Visitor*) { } |
| private: |
| TextEncoder(const String& encoding); |