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

Unified Diff: Source/core/html/parser/TextResourceDecoder.h

Issue 708093002: Script streaming: remove byte order marks, detect encoding based on them. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/core/html/parser/TextResourceDecoder.h
diff --git a/Source/core/html/parser/TextResourceDecoder.h b/Source/core/html/parser/TextResourceDecoder.h
index 07a697957c98ae7be30a157fde47b44af087b1a1..c3dea3cd50a0fc89d21fec5ab99a9b9f6c43af09 100644
--- a/Source/core/html/parser/TextResourceDecoder.h
+++ b/Source/core/html/parser/TextResourceDecoder.h
@@ -68,6 +68,7 @@ public:
void useLenientXMLDecoding() { m_useLenientXMLDecoding = true; }
bool sawError() const { return m_sawError; }
+ size_t checkForBOM(const char*, size_t);
marja 2014/11/07 13:32:35 This is sad, but I don't see any other way :( dec
private:
TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& defaultEncoding, bool usesEncodingDetector);
@@ -76,7 +77,6 @@ private:
static ContentType determineContentType(const String& mimeType);
static const WTF::TextEncoding& defaultEncoding(ContentType, const WTF::TextEncoding& defaultEncoding);
- size_t checkForBOM(const char*, size_t);
bool checkForCSSCharset(const char*, size_t, bool& movedDataToBuffer);
bool checkForXMLCharset(const char*, size_t, bool& movedDataToBuffer);
void checkForMetaCharset(const char*, size_t);
« Source/bindings/core/v8/ScriptStreamer.cpp ('K') | « Source/bindings/core/v8/V8ScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698