| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1999 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1999 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 3 Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 4 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 4 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 5 | 5 |
| 6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
| 7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
| 8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
| 9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 27 #include "wtf/RefCounted.h" | 27 #include "wtf/RefCounted.h" |
| 28 #include "wtf/text/TextEncoding.h" | 28 #include "wtf/text/TextEncoding.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class HTMLMetaCharsetParser; | 32 class HTMLMetaCharsetParser; |
| 33 | 33 |
| 34 class CORE_EXPORT TextResourceDecoder { | 34 class CORE_EXPORT TextResourceDecoder { |
| 35 WTF_MAKE_FAST_ALLOCATED(TextResourceDecoder); |
| 36 WTF_MAKE_NONCOPYABLE(TextResourceDecoder); |
| 35 public: | 37 public: |
| 36 enum EncodingSource { | 38 enum EncodingSource { |
| 37 DefaultEncoding, | 39 DefaultEncoding, |
| 38 AutoDetectedEncoding, | 40 AutoDetectedEncoding, |
| 39 EncodingFromContentSniffing, | 41 EncodingFromContentSniffing, |
| 40 EncodingFromXMLHeader, | 42 EncodingFromXMLHeader, |
| 41 EncodingFromMetaTag, | 43 EncodingFromMetaTag, |
| 42 EncodingFromCSSCharset, | 44 EncodingFromCSSCharset, |
| 43 EncodingFromHTTPHeader, | 45 EncodingFromHTTPHeader, |
| 44 EncodingFromParentFrame | 46 EncodingFromParentFrame |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 bool m_useLenientXMLDecoding; // Don't stop on XML decoding errors. | 98 bool m_useLenientXMLDecoding; // Don't stop on XML decoding errors. |
| 97 bool m_sawError; | 99 bool m_sawError; |
| 98 bool m_usesEncodingDetector; | 100 bool m_usesEncodingDetector; |
| 99 | 101 |
| 100 OwnPtr<HTMLMetaCharsetParser> m_charsetParser; | 102 OwnPtr<HTMLMetaCharsetParser> m_charsetParser; |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } | 105 } |
| 104 | 106 |
| 105 #endif | 107 #endif |
| OLD | NEW |