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

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

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: Rebase Created 7 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: Source/core/html/parser/TextResourceDecoder.h
diff --git a/Source/core/fetch/TextResourceDecoder.h b/Source/core/html/parser/TextResourceDecoder.h
similarity index 96%
rename from Source/core/fetch/TextResourceDecoder.h
rename to Source/core/html/parser/TextResourceDecoder.h
index 4c7734781487fe8e1f3cdd0cc5ec5cc53a8b076d..5ad2ad561f8e11b9e7bb4e5e42807a5af2bedfdf 100644
--- a/Source/core/fetch/TextResourceDecoder.h
+++ b/Source/core/html/parser/TextResourceDecoder.h
@@ -28,6 +28,7 @@
namespace WebCore {
+class DocumentEncodingData;
class HTMLMetaCharsetParser;
class TextResourceDecoder {
@@ -72,7 +73,7 @@ public:
private:
TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& defaultEncoding, bool usesEncodingDetector);
- enum ContentType { PlainText, HTML, XML, CSS }; // PlainText only checks for BOM.
+ enum ContentType { PlainTextContent, HTMLContent, XMLContent, CSSContent }; // PlainText only checks for BOM.
static ContentType determineContentType(const String& mimeType);
static const WTF::TextEncoding& defaultEncoding(ContentType, const WTF::TextEncoding& defaultEncoding);

Powered by Google App Engine
This is Rietveld 408576698