| 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 28 matching lines...) Expand all Loading... |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class SharedBufferChunkReader; | 41 class SharedBufferChunkReader; |
| 42 | 42 |
| 43 // FIXME: This class is a limited MIME parser used to parse the MIME headers of
MHTML files. | 43 // FIXME: This class is a limited MIME parser used to parse the MIME headers of
MHTML files. |
| 44 class MIMEHeader : public RefCounted<MIMEHeader> { | 44 class MIMEHeader : public RefCounted<MIMEHeader> { |
| 45 public: | 45 public: |
| 46 enum Encoding { | 46 enum Encoding { |
| 47 QuotedPrintable, | 47 QuotedPrintable, |
| 48 Base64, | 48 Base64, |
| 49 EightBit, |
| 49 SevenBit, | 50 SevenBit, |
| 50 Binary, | 51 Binary, |
| 51 Unknown | 52 Unknown |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 static PassRefPtr<MIMEHeader> parseHeader(SharedBufferChunkReader* crLFLineR
eader); | 55 static PassRefPtr<MIMEHeader> parseHeader(SharedBufferChunkReader* crLFLineR
eader); |
| 55 | 56 |
| 56 bool isMultipart() const { return m_contentType.startsWith("multipart/"); } | 57 bool isMultipart() const { return m_contentType.startsWith("multipart/"); } |
| 57 | 58 |
| 58 String contentType() const { return m_contentType; } | 59 String contentType() const { return m_contentType; } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 75 Encoding m_contentTransferEncoding; | 76 Encoding m_contentTransferEncoding; |
| 76 String m_contentLocation; | 77 String m_contentLocation; |
| 77 String m_multipartType; | 78 String m_multipartType; |
| 78 String m_endOfPartBoundary; | 79 String m_endOfPartBoundary; |
| 79 String m_endOfDocumentBoundary; | 80 String m_endOfDocumentBoundary; |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } | 83 } |
| 83 | 84 |
| 84 #endif | 85 #endif |
| OLD | NEW |