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

Unified Diff: third_party/WebKit/Source/wtf/text/TextEncoding.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/TextEncoding.h
diff --git a/third_party/WebKit/Source/wtf/text/TextEncoding.h b/third_party/WebKit/Source/wtf/text/TextEncoding.h
index 71b829a851c02b331640881271469d4d89fc7b9d..0ce850376cd63cd5a0f69bb6758dcf375cc82da6 100644
--- a/third_party/WebKit/Source/wtf/text/TextEncoding.h
+++ b/third_party/WebKit/Source/wtf/text/TextEncoding.h
@@ -53,6 +53,7 @@ public:
String decode(const char*, size_t length, bool stopOnError, bool& sawError) const;
CString encode(const String&, UnencodableHandling) const;
+ CString encodeBOMifApplicable() const;
private:
bool isNonByteBasedEncoding() const;

Powered by Google App Engine
This is Rietveld 408576698