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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecUTF16.h

Issue 1407663004: Tweaking WebPageSerializerImpl to emit a BOM for UTF16/32. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Saving UTF16 with BOM. Leaving UTF32 in a broken state. Created 5 years 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: third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
index 8570d01f7ab92b0817f26668b7f67d6ed5c9b333..0f1d8b12decae43cedcbcaed24df7212d1db4045 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
@@ -40,6 +40,7 @@ public:
String decode(const char*, size_t length, FlushBehavior, bool stopOnError, bool& sawError) override;
CString encode(const UChar*, size_t length, UnencodableHandling) override;
CString encode(const LChar*, size_t length, UnencodableHandling) override;
+ bool shouldIncludeBOM() override;
private:
bool m_littleEndian;

Powered by Google App Engine
This is Rietveld 408576698