OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 QuotedPrintable, | 58 QuotedPrintable, |
59 Base64, | 59 Base64, |
60 EightBit, | 60 EightBit, |
61 SevenBit, | 61 SevenBit, |
62 Binary, | 62 Binary, |
63 Unknown | 63 Unknown |
64 }; | 64 }; |
65 | 65 |
66 static PassRefPtrWillBeRawPtr<MIMEHeader> parseHeader(SharedBufferChunkReade r* crLFLineReader); | 66 static PassRefPtrWillBeRawPtr<MIMEHeader> parseHeader(SharedBufferChunkReade r* crLFLineReader); |
67 | 67 |
68 bool isMultipart() const { return m_contentType.startsWith("multipart/"); } | 68 bool isMultipart() const { return m_contentType.lower().startsWith("multipar t/"); } |
sof
2015/04/06 05:27:36
startsWith() takes an optional 2nd arg controlling
| |
69 | 69 |
70 String contentType() const { return m_contentType; } | 70 String contentType() const { return m_contentType; } |
71 String charset() const { return m_charset; } | 71 String charset() const { return m_charset; } |
72 Encoding contentTransferEncoding() const { return m_contentTransferEncoding; } | 72 Encoding contentTransferEncoding() const { return m_contentTransferEncoding; } |
73 String contentLocation() const { return m_contentLocation; } | 73 String contentLocation() const { return m_contentLocation; } |
74 | 74 |
75 // Multi-part type and boundaries are only valid for multipart MIME headers. | 75 // Multi-part type and boundaries are only valid for multipart MIME headers. |
76 String multiPartType() const { return m_multipartType; } | 76 String multiPartType() const { return m_multipartType; } |
77 String endOfPartBoundary() const { return m_endOfPartBoundary; } | 77 String endOfPartBoundary() const { return m_endOfPartBoundary; } |
78 String endOfDocumentBoundary() const { return m_endOfDocumentBoundary; } | 78 String endOfDocumentBoundary() const { return m_endOfDocumentBoundary; } |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 { | 386 { |
387 return m_resources.size(); | 387 return m_resources.size(); |
388 } | 388 } |
389 | 389 |
390 ArchiveResource* MHTMLParser::subResourceAt(size_t index) const | 390 ArchiveResource* MHTMLParser::subResourceAt(size_t index) const |
391 { | 391 { |
392 return m_resources[index].get(); | 392 return m_resources[index].get(); |
393 } | 393 } |
394 | 394 |
395 } // namespace blink | 395 } // namespace blink |
OLD | NEW |