| Index: Source/core/dom/DocumentEncodingData.h
 | 
| diff --git a/Source/core/dom/DocumentEncodingData.h b/Source/core/dom/DocumentEncodingData.h
 | 
| index 5a696afdd1757e42b42e6313b8919e6193f333b8..2016aa531ae3fa5f8a856381cca6509e7b1e5269 100644
 | 
| --- a/Source/core/dom/DocumentEncodingData.h
 | 
| +++ b/Source/core/dom/DocumentEncodingData.h
 | 
| @@ -34,19 +34,31 @@
 | 
|  #include "wtf/text/TextEncoding.h"
 | 
|  
 | 
|  namespace WebCore {
 | 
| +class TextResourceDecoder;
 | 
|  
 | 
| -struct DocumentEncodingData {
 | 
| -    DocumentEncodingData()
 | 
| -        : wasDetectedHeuristically(false)
 | 
| -        , sawDecodingError(false)
 | 
| -    {
 | 
| -    }
 | 
| +class DocumentEncodingData {
 | 
| +public:
 | 
| +    DocumentEncodingData();
 | 
| +    explicit DocumentEncodingData(const TextResourceDecoder&);
 | 
|  
 | 
| -    WTF::TextEncoding encoding;
 | 
| -    bool wasDetectedHeuristically;
 | 
| -    bool sawDecodingError;
 | 
| +    const WTF::TextEncoding& encoding() const { return m_encoding; }
 | 
| +    void setEncoding(const WTF::TextEncoding&);
 | 
| +    bool wasDetectedHeuristically() const { return m_wasDetectedHeuristically; }
 | 
| +    bool sawDecodingError() const { return m_sawDecodingError; }
 | 
| +
 | 
| +private:
 | 
| +    WTF::TextEncoding m_encoding;
 | 
| +    bool m_wasDetectedHeuristically;
 | 
| +    bool m_sawDecodingError;
 | 
|  };
 | 
|  
 | 
| +inline bool operator!=(const DocumentEncodingData& a, const DocumentEncodingData& b)
 | 
| +{
 | 
| +    return a.encoding() != b.encoding()
 | 
| +        || a.wasDetectedHeuristically() != b.wasDetectedHeuristically()
 | 
| +        || a.sawDecodingError() != b.sawDecodingError();
 | 
| +}
 | 
| +
 | 
|  } // namespace WebCore
 | 
|  
 | 
|  #endif // DocumentEncodingData_h
 | 
| 
 |