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

Side by Side Diff: Source/core/platform/network/MIMEHeader.h

Issue 22292008: Add 8bit Content-Transfer-Encoding support for reading MHTML files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix line endings #5 Created 7 years, 4 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
« no previous file with comments | « Source/core/loader/archive/MHTMLParser.cpp ('k') | Source/core/platform/network/MIMEHeader.cpp » ('j') | 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/archive/MHTMLParser.cpp ('k') | Source/core/platform/network/MIMEHeader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698