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

Unified Diff: Source/core/fetch/TextResourceDecoder.cpp

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: Review fixes Created 7 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/fetch/TextResourceDecoder.cpp
diff --git a/Source/core/fetch/TextResourceDecoder.cpp b/Source/core/fetch/TextResourceDecoder.cpp
index df1279d7552e563f72aa78be3b9a54a1034c9c2a..3acbb2ac7113e42afbbbfc1d6200da0c0f68c840 100644
--- a/Source/core/fetch/TextResourceDecoder.cpp
+++ b/Source/core/fetch/TextResourceDecoder.cpp
@@ -435,4 +435,11 @@ String TextResourceDecoder::flush()
return result;
}
+void TextResourceDecoder::getEncodingData(DocumentEncodingData& encodingData) const
+{
+ encodingData.encoding = m_encoding;
+ encodingData.wasDetectedHeuristically = encodingWasDetectedHeuristically();
+ encodingData.sawDecodingError = m_sawError;
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698