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

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

Issue 157623002: Revert of 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
« no previous file with comments | « Source/modules/encoding/TextDecoder.idl ('k') | Source/modules/encoding/TextEncoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encoding/TextEncoder.h
diff --git a/Source/modules/encoding/TextEncoder.h b/Source/modules/encoding/TextEncoder.h
index de007b29d14cf726e06c3ac88aecb8c383b14cf9..752198d6ef8aa3455dcf9a7a10e077e6736b59df 100644
--- a/Source/modules/encoding/TextEncoder.h
+++ b/Source/modules/encoding/TextEncoder.h
@@ -31,7 +31,6 @@
#ifndef TextEncoder_h
#define TextEncoder_h
-#include "heap/Handle.h"
#include "wtf/ArrayBufferView.h"
#include "wtf/RefCounted.h"
#include "wtf/Uint8Array.h"
@@ -44,17 +43,17 @@
class Dictionary;
class ExceptionState;
-class TextEncoder FINAL : public RefCountedWillBeGarbageCollectedFinalized<TextEncoder> {
- DECLARE_GC_INFO;
+class TextEncoder FINAL : public RefCounted<TextEncoder> {
public:
- static PassRefPtrWillBeRawPtr<TextEncoder> create(const String& utfLabel, ExceptionState&);
+ static PassRefPtr<TextEncoder> create(const String& utfLabel, ExceptionState&);
~TextEncoder();
// Implement the IDL
String encoding() const;
PassRefPtr<Uint8Array> encode(const String&, const Dictionary&);
- void trace(Visitor*) { }
+ using RefCounted<TextEncoder>::ref;
+ using RefCounted<TextEncoder>::deref;
private:
TextEncoder(const String& encoding);
« no previous file with comments | « Source/modules/encoding/TextDecoder.idl ('k') | Source/modules/encoding/TextEncoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698