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

Side by Side Diff: Source/core/html/parser/TextResourceDecoder.h

Issue 1326773002: remove TextResourceDecoder::detectJapaneseEncoding decl which is never defined (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 private: 75 private:
76 TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& default Encoding, bool usesEncodingDetector); 76 TextResourceDecoder(const String& mimeType, const WTF::TextEncoding& default Encoding, bool usesEncodingDetector);
77 77
78 enum ContentType { PlainTextContent, HTMLContent, XMLContent, CSSContent }; // PlainText only checks for BOM. 78 enum ContentType { PlainTextContent, HTMLContent, XMLContent, CSSContent }; // PlainText only checks for BOM.
79 static ContentType determineContentType(const String& mimeType); 79 static ContentType determineContentType(const String& mimeType);
80 static const WTF::TextEncoding& defaultEncoding(ContentType, const WTF::Text Encoding& defaultEncoding); 80 static const WTF::TextEncoding& defaultEncoding(ContentType, const WTF::Text Encoding& defaultEncoding);
81 81
82 bool checkForCSSCharset(const char*, size_t, bool& movedDataToBuffer); 82 bool checkForCSSCharset(const char*, size_t, bool& movedDataToBuffer);
83 bool checkForXMLCharset(const char*, size_t, bool& movedDataToBuffer); 83 bool checkForXMLCharset(const char*, size_t, bool& movedDataToBuffer);
84 void checkForMetaCharset(const char*, size_t); 84 void checkForMetaCharset(const char*, size_t);
85 void detectJapaneseEncoding(const char*, size_t);
86 bool shouldAutoDetect() const; 85 bool shouldAutoDetect() const;
87 86
88 ContentType m_contentType; 87 ContentType m_contentType;
89 WTF::TextEncoding m_encoding; 88 WTF::TextEncoding m_encoding;
90 OwnPtr<TextCodec> m_codec; 89 OwnPtr<TextCodec> m_codec;
91 EncodingSource m_source; 90 EncodingSource m_source;
92 const char* m_hintEncoding; 91 const char* m_hintEncoding;
93 Vector<char> m_buffer; 92 Vector<char> m_buffer;
94 bool m_checkedForBOM; 93 bool m_checkedForBOM;
95 bool m_checkedForCSSCharset; 94 bool m_checkedForCSSCharset;
96 bool m_checkedForXMLCharset; 95 bool m_checkedForXMLCharset;
97 bool m_checkedForMetaCharset; 96 bool m_checkedForMetaCharset;
98 bool m_useLenientXMLDecoding; // Don't stop on XML decoding errors. 97 bool m_useLenientXMLDecoding; // Don't stop on XML decoding errors.
99 bool m_sawError; 98 bool m_sawError;
100 bool m_usesEncodingDetector; 99 bool m_usesEncodingDetector;
101 100
102 OwnPtr<HTMLMetaCharsetParser> m_charsetParser; 101 OwnPtr<HTMLMetaCharsetParser> m_charsetParser;
103 }; 102 };
104 103
105 } 104 }
106 105
107 #endif 106 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698