Convert WebArchiveDumpSupport.mm from NS objects to CF types
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 05:29:32 +0000 (05:29 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 05:29:32 +0000 (05:29 +0000)
commitd6af02f3bda4993046c198dc14f0b2e197484148
tree692bfc549a030033984937ec599b9cbc5fdd9fcf
parenta42286814ad311883dd85afae7cc4bcb263425f0
Convert WebArchiveDumpSupport.mm from NS objects to CF types

Reviewed by Adam Roben.

Part 3 of 4: <http://webkit.org/b/48278> Convert DumpRenderTree webarchive code to CoreFoundation

In order to share WebArchive code between the Mac and Windows
ports, the code in WebArchiveDumpSupport.mm was converted from
Cocoa to C++ using CoreFoundation (CF) types.

* DumpRenderTree/mac/DumpRenderTree.mm:
(dump): Renamed serializeWebArchiveToXML() to
createXMLStringFromWebArchiveData() and added HardAutorelease()
to prevent leaks.
* DumpRenderTree/mac/WebArchiveDumpSupport.h:
(createXMLStringFromWebArchiveData): Renamed from
serializeWebArchiveToXML().  Changed to use CF types.
(createCFURLResponseFromResponseData): Renamed from
unarchiveNSURLResponseFromResponseData().  Changed to use CF
types for its parameter and return type.
* DumpRenderTree/mac/WebArchiveDumpSupport.mm: Replaced use of
NS objects with CF types.  It will be renamed to *.cpp in a
future commit.
(convertMIMEType): Changed to use case-insensitive string
comparisons.
(convertWebResourceDataToString):
(normalizeHTTPResponseHeaderFields):
(normalizeWebResourceURL):
(convertWebResourceResponseToDictionary):
(compareResourceURLs):
(createXMLStringFromWebArchiveData):
* DumpRenderTree/mac/WebArchiveDumpSupportMac.mm:
(createCFURLResponseFromResponseData): Renamed from
unarchiveNSURLResponseFromResponseData().  Changed to use CF
types for its parameter and return type.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm
WebKitTools/DumpRenderTree/mac/WebArchiveDumpSupport.h
WebKitTools/DumpRenderTree/mac/WebArchiveDumpSupport.mm
WebKitTools/DumpRenderTree/mac/WebArchiveDumpSupportMac.mm