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

Unified Diff: Source/modules/encoding/TextEncoder.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/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);

Powered by Google App Engine
This is Rietveld 408576698