Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1611)

Unified Diff: Source/modules/encoding/TextDecoder.h

Issue 156453002: Move encoding module to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698