Index: third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h |
diff --git a/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h b/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h |
index e7d831082de349028c026b5658207cab5be78094..73a0d27eb3d349acc3ddf98ac7fbc337007ce02a 100644 |
--- a/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h |
+++ b/third_party/WebKit/Source/core/html/parser/TextResourceDecoder.h |
@@ -79,8 +79,7 @@ public: |
bool sawError() const { return m_sawError; } |
size_t checkForBOM(const char*, size_t); |
-private: |
- |
+protected: |
// TextResourceDecoder does three kind of encoding detection: |
// 1. By BOM, |
// 2. By Content if |m_contentType| is not |PlainTextContext| |
@@ -103,6 +102,7 @@ private: |
TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& defaultEncoding, EncodingDetectionOption); |
+private: |
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); |