Extract use of NSKeyedUnarchiver from WebArchiveDumpSupport.mm
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 05:29:25 +0000 (05:29 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Oct 2010 05:29:25 +0000 (05:29 +0000)
commita42286814ad311883dd85afae7cc4bcb263425f0
treef769fa20f23e135fbdd08b05e47c487e2fe4c83c
parent2383180bc1fc6811b0e86c55cfbfbd15f0d40d49
Extract use of NSKeyedUnarchiver from WebArchiveDumpSupport.mm

Reviewed by Adam Roben.

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

There is no equivalent to NSKeyedUnarchiver in CoreFoundation,
so extract it into a platform-specific source file.

* DumpRenderTree/mac/WebArchiveDumpSupport.h:
(unarchiveNSURLResponseFromResponseData): Added declaration.
* DumpRenderTree/mac/WebArchiveDumpSupport.mm:
(convertWebResourceResponseToDictionary): Extracted code to
unarchiveNSURLResponseFromResponseData() in
WebArchiveDumpSupportMac.mm.  Updated logic to return early if
nil is returned from unarchiveNSURLResponseFromResponseData().
* DumpRenderTree/mac/WebArchiveDumpSupportMac.mm:
(unarchiveNSURLResponseFromResponseData): Added.  Extracted
code from convertWebResourceResponseToDictionary() in
WebArchiveDumpSupport.mm.

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