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

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: Rebased Created 6 years, 8 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 e630ed5540cdbc641e782c2b40bd243bb005b6eb..225db09de494a734a498cdd2dd39e302eb0cee5e 100644
--- a/Source/modules/encoding/TextDecoder.h
+++ b/Source/modules/encoding/TextDecoder.h
@@ -56,11 +56,12 @@ public:
void trace(Visitor*) { }
private:
- TextDecoder(const String& encoding, bool fatal);
+ TextDecoder(const String& encoding, bool fatal, bool ignoreBOM);
WTF::TextEncoding m_encoding;
OwnPtr<WTF::TextCodec> m_codec;
bool m_fatal;
+ bool m_ignoreBOM;
bool m_bomSeen;
};

Powered by Google App Engine
This is Rietveld 408576698