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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Translates |contentIDFromMimeHeader| (of the form "<foo@bar.com>") | 57 // Translates |contentIDFromMimeHeader| (of the form "<foo@bar.com>") |
58 // into a cid-scheme URI (of the form "cid:foo@bar.com"). | 58 // into a cid-scheme URI (of the form "cid:foo@bar.com"). |
59 // | 59 // |
60 // Returns KURL() - an invalid URL - if contentID is invalid. | 60 // Returns KURL() - an invalid URL - if contentID is invalid. |
61 // | 61 // |
62 // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs". | 62 // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs". |
63 static KURL convertContentIDToURI(const String& contentID); | 63 static KURL convertContentIDToURI(const String& contentID); |
64 | 64 |
65 private: | 65 private: |
66 bool parseArchiveWithHeader(MIMEHeader*, HeapVector<Member<ArchiveResource>>
&); | 66 bool parseArchiveWithHeader(MIMEHeader*, HeapVector<Member<ArchiveResource>>
&); |
67 RawPtr<ArchiveResource> parseNextPart(const MIMEHeader&, const String& endOf
PartBoundary, const String& endOfDocumentBoundary, bool& endOfArchiveReached); | 67 ArchiveResource* parseNextPart(const MIMEHeader&, const String& endOfPartBou
ndary, const String& endOfDocumentBoundary, bool& endOfArchiveReached); |
68 | 68 |
69 SharedBufferChunkReader m_lineReader; | 69 SharedBufferChunkReader m_lineReader; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
73 | 73 |
74 #endif | 74 #endif |
OLD | NEW |