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

Unified Diff: Source/wtf/text/TextCodecUTF8.h

Issue 145973021: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Verify replacement name 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/wtf/text/TextCodecUTF8.h
diff --git a/Source/wtf/text/TextCodecUTF8.h b/Source/wtf/text/TextCodecUTF8.h
index 2c8ed3d4e81a84020282a012dd831614ca230be0..fed3507c29883862d1eb267c4fd35fc094f998d8 100644
--- a/Source/wtf/text/TextCodecUTF8.h
+++ b/Source/wtf/text/TextCodecUTF8.h
@@ -30,14 +30,16 @@
namespace WTF {
-class TextCodecUTF8 FINAL : public TextCodec {
+class TextCodecUTF8 : public TextCodec {
public:
static void registerEncodingNames(EncodingNameRegistrar);
static void registerCodecs(TextCodecRegistrar);
+protected:
+ TextCodecUTF8() : m_partialSequenceSize(0) { }
+
private:
static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*);
- TextCodecUTF8() : m_partialSequenceSize(0) { }
virtual String decode(const char*, size_t length, bool flush, bool stopOnError, bool& sawError) OVERRIDE;
virtual CString encode(const UChar*, size_t length, UnencodableHandling) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698