tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / loader / TextResourceDecoder.h
index 0bb855b..a32ac39 100755 (executable)
@@ -24,6 +24,7 @@
 #define TextResourceDecoder_h
 
 #include "TextEncoding.h"
+#include <wtf/RefCounted.h>
 
 namespace WebCore {
 
@@ -79,6 +80,9 @@ private:
     bool checkForMetaCharset(const char*, size_t);
     void detectJapaneseEncoding(const char*, size_t);
     bool shouldAutoDetect() const;
+#if ENABLE(TIZEN_ALLOW_TEXT_ENCODING_DETECTION_ONLY_ONCE)
+    bool didAutoDetect() const { return m_didAutoDetect; }
+#endif
 
     ContentType m_contentType;
     TextEncoding m_encoding;
@@ -92,6 +96,9 @@ private:
     bool m_useLenientXMLDecoding; // Don't stop on XML decoding errors.
     bool m_sawError;
     bool m_usesEncodingDetector;
+#if ENABLE(TIZEN_ALLOW_TEXT_ENCODING_DETECTION_ONLY_ONCE)
+    bool m_didAutoDetect;
+#endif
 
     OwnPtr<HTMLMetaCharsetParser> m_charsetParser;
 };