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

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

Issue 232513003: Encoding API: Add ignoreBOM flag to decoder options (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More explicit test output, correct assertion comment in default case 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
Index: Source/modules/encoding/TextDecoder.h
diff --git a/Source/modules/encoding/TextDecoder.h b/Source/modules/encoding/TextDecoder.h
index 3c0310f1f83ba30f37a3c82b2aa53b512ddd68c2..d03128be6ea19f0b5bc46a67b9bd29dc6e62379b 100644
--- a/Source/modules/encoding/TextDecoder.h
+++ b/Source/modules/encoding/TextDecoder.h
@@ -56,11 +56,12 @@ public:
void trace(Visitor*) { }
private:
- TextDecoder(const WTF::TextEncoding&, bool fatal);
+ TextDecoder(const WTF::TextEncoding&, bool fatal, bool ignoreBOM);
WTF::TextEncoding m_encoding;
OwnPtr<WTF::TextCodec> m_codec;
bool m_fatal;
+ bool m_ignoreBOM;
bool m_bomSeen;
};
« no previous file with comments | « LayoutTests/fast/encoding/api/textdecoder-ignorebom-expected.txt ('k') | Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698