2011-06-20 Jay Civelli <jcivelli@chromium.org>
authorjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jun 2011 00:36:27 +0000 (00:36 +0000)
committerjcivelli@chromium.org <jcivelli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jun 2011 00:36:27 +0000 (00:36 +0000)
commitf38c6e9641508aa801cd67f06e2442baa29109c4
tree2106466edfb5323af6d132da5aacb9871e011333
parent9ba11fc1414bdab33291f03c45ee4e843789cb0e
2011-06-20  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by Adam Barth.

        Making SharedBufferCRLFLineReader more generic, so it can be used to read MHTML
        file with binary parts.
        https://bugs.webkit.org/show_bug.cgi?id=62966

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * loader/archive/mhtml/MHTMLParser.cpp:
        (WebCore::skipLinesUntilBoundaryFound):
        (WebCore::MHTMLParser::MHTMLParser):
        (WebCore::MHTMLParser::parseNextPart):
        * loader/archive/mhtml/MHTMLParser.h:
        * platform/SharedBufferChunkReader.cpp: Renamed from Source/WebCore/platform/SharedBufferCRLFLineReader.cpp.
        (WebCore::SharedBufferChunkReader::SharedBufferChunkReader):
        (WebCore::SharedBufferChunkReader::setSeparator):
        (WebCore::SharedBufferChunkReader::nextChunk):
        * platform/SharedBufferChunkReader.h: Renamed from Source/WebCore/platform/SharedBufferCRLFLineReader.h.
        * platform/network/MIMEHeader.cpp:
        (WebCore::retrieveKeyValuePairs):
        (WebCore::MIMEHeader::parseHeader):
        * platform/network/MIMEHeader.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.pro
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/loader/archive/mhtml/MHTMLParser.cpp
Source/WebCore/loader/archive/mhtml/MHTMLParser.h
Source/WebCore/platform/SharedBufferChunkReader.cpp [moved from Source/WebCore/platform/SharedBufferCRLFLineReader.cpp with 63% similarity]
Source/WebCore/platform/SharedBufferChunkReader.h [moved from Source/WebCore/platform/SharedBufferCRLFLineReader.h with 86% similarity]
Source/WebCore/platform/network/MIMEHeader.cpp
Source/WebCore/platform/network/MIMEHeader.h