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

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

Issue 133273007: Revert "Moved text decoding to the parser thread" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months 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
« no previous file with comments | « Source/core/fetch/ShaderResource.cpp ('k') | Source/core/fetch/TextResourceDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/TextResourceDecoder.h
diff --git a/Source/core/html/parser/TextResourceDecoder.h b/Source/core/fetch/TextResourceDecoder.h
similarity index 96%
rename from Source/core/html/parser/TextResourceDecoder.h
rename to Source/core/fetch/TextResourceDecoder.h
index 5ad2ad561f8e11b9e7bb4e5e42807a5af2bedfdf..4c7734781487fe8e1f3cdd0cc5ec5cc53a8b076d 100644
--- a/Source/core/html/parser/TextResourceDecoder.h
+++ b/Source/core/fetch/TextResourceDecoder.h
@@ -28,7 +28,6 @@
namespace WebCore {
-class DocumentEncodingData;
class HTMLMetaCharsetParser;
class TextResourceDecoder {
@@ -73,7 +72,7 @@ public:
private:
TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& defaultEncoding, bool usesEncodingDetector);
- enum ContentType { PlainTextContent, HTMLContent, XMLContent, CSSContent }; // PlainText only checks for BOM.
+ enum ContentType { PlainText, HTML, XML, CSS }; // PlainText only checks for BOM.
static ContentType determineContentType(const String& mimeType);
static const WTF::TextEncoding& defaultEncoding(ContentType, const WTF::TextEncoding& defaultEncoding);
« no previous file with comments | « Source/core/fetch/ShaderResource.cpp ('k') | Source/core/fetch/TextResourceDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698