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

Unified Diff: Source/core/html/parser/HTMLMetaCharsetParser.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/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLMetaCharsetParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLMetaCharsetParser.h
diff --git a/Source/core/html/parser/HTMLMetaCharsetParser.h b/Source/core/html/parser/HTMLMetaCharsetParser.h
index 65d9517a2e0fe8ce0293ba7bb6888665f44fbd98..3393fca40d234bda8b3dbeedb0500c79b37623fc 100644
--- a/Source/core/html/parser/HTMLMetaCharsetParser.h
+++ b/Source/core/html/parser/HTMLMetaCharsetParser.h
@@ -48,10 +48,22 @@ public:
const WTF::TextEncoding& encoding() { return m_encoding; }
+ typedef Vector<pair<String, String> > AttributeList;
+ // The returned encoding might not be valid.
+ static WTF::TextEncoding encodingFromMetaAttributes(const AttributeList&
+);
+
private:
HTMLMetaCharsetParser();
bool processMeta();
+ static String extractCharset(const String&);
+
+ enum Mode {
+ None,
+ Charset,
+ Pragma,
+ };
OwnPtr<HTMLTokenizer> m_tokenizer;
OwnPtr<TextCodec> m_assumedCodec;
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLMetaCharsetParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698