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

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

Issue 265973003: Implement "replacement" text encoding. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Request rebaseline the temporary chaset-replacement output Created 6 years, 7 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/wtf/text/TextCodecReplacementTest.cpp ('k') | Source/wtf/text/TextEncodingRegistry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextCodecUTF8.h
diff --git a/Source/wtf/text/TextCodecUTF8.h b/Source/wtf/text/TextCodecUTF8.h
index 98eb4932a52899c097d3910fd2fd70f36ff29c86..10a28cf7a6d7b0a86c63bfbee9bbd78e213dc8e7 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, FlushBehavior, bool stopOnError, bool& sawError) OVERRIDE;
virtual CString encode(const UChar*, size_t length, UnencodableHandling) OVERRIDE;
« no previous file with comments | « Source/wtf/text/TextCodecReplacementTest.cpp ('k') | Source/wtf/text/TextEncodingRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698