2010-12-21 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Dec 2010 20:22:50 +0000 (20:22 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Dec 2010 20:22:50 +0000 (20:22 +0000)
commit1c527c0eee5a3d196c6c6ba80a495eb2ebd40723
tree96cbffa8533fa0763d54426052a5aee98987201d
parentcfa98167b5c30081461f1d2269ce3684aa80acb9
2010-12-21  Darin Adler  <darin@apple.com>

        Reviewed by Brady Eidson and Sam Weinig.

        Add a way to get a web archive in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=51437

        * UIProcess/API/C/WKFrame.cpp:
        (WKFrameGetWebArchive): Added.
        (callGetWebArchiveBlockAndDispose): Added.
        (WKFrameGetWebArchive_b): Added.
        * UIProcess/API/C/WKFrame.h: Added functions above.
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::close): Clear out m_webArchiveCallbacks.
        (WebKit::WebPageProxy::getWebArchiveOfFrame): Added.
        (WebKit::WebPageProxy::didGetWebArchiveOfFrame): Added.
        (WebKit::WebPageProxy::processDidCrash): Clear out m_webArchiveCallbacks.
        * UIProcess/WebPageProxy.h: Added functions above.
        * UIProcess/WebPageProxy.messages.in: Added DidGetWebArchiveOfFrame.
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::getWebArchiveOfFrame): Added.
        * WebProcess/WebPage/WebPage.h: Added function above.
        * WebProcess/WebPage/WebPage.messages.in: Added GetWebArchiveOfFrame.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/UIProcess/API/C/WKFrame.cpp
WebKit2/UIProcess/API/C/WKFrame.h
WebKit2/UIProcess/WebFrameProxy.cpp
WebKit2/UIProcess/WebFrameProxy.h
WebKit2/UIProcess/WebPageProxy.cpp
WebKit2/UIProcess/WebPageProxy.h
WebKit2/UIProcess/WebPageProxy.messages.in
WebKit2/WebProcess/WebPage/WebPage.cpp
WebKit2/WebProcess/WebPage/WebPage.h
WebKit2/WebProcess/WebPage/WebPage.messages.in