Add URLRequest API for WebKit2
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 00:51:30 +0000 (00:51 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 00:51:30 +0000 (00:51 +0000)
commit0f2c32c2d2f4eb3d6bdff897795c61b7086c123d
tree0581597e3ef43e85f2ca7dd558d2115038027b09
parent874fe5e3d071acc815493fdb43a0bd1e6c7b4212
Add URLRequest API for WebKit2
https://bugs.webkit.org/show_bug.cgi?id=44910

Reviewed by Anders Carlsson.

Add WebURLRequest class and WKURLRequestRef C API to go with it. Right now,
instance of WKURLRequestRef are manipulated via platform types, a la the
WKStringRef and WKURLRef types.

- Pipes WKPageLoadURLRequest through to the WebProcess.

* Shared/APIObject.h:
* Shared/CoreIPCSupport/WebPageMessageKinds.h:
* Shared/WebCoreArgumentCoders.h:
* Shared/WebURLRequest.cpp: Added.
(WebKit::WebURLRequest::WebURLRequest):
* Shared/WebURLRequest.h: Added.
(WebKit::WebURLRequest::create):
(WebKit::WebURLRequest::resourceRequest):
(WebKit::WebURLRequest::type):
* Shared/mac/WebCoreArgumentCodersMac.mm: Added.
(CoreIPC::encodeResourceRequest):
(CoreIPC::decodeResourceRequest):
* Shared/mac/WebURLRequestMac.mm: Added.
(WebKit::WebURLRequest::WebURLRequest):
(WebKit::WebURLRequest::platformRequest):
* Shared/qt/WebCoreArgumentCodersQt.cpp: Added.
(CoreIPC::encodeResourceRequest):
(CoreIPC::decodeResourceRequest):
* Shared/qt/WebURLRequestQt.cpp: Added.
(WebKit::WebURLRequest::WebURLRequest):
(WebKit::WebURLRequest::platformRequest):
* Shared/win/WebCoreArgumentCodersWin.cpp: Added.
(CoreIPC::encodeResourceRequest):
(CoreIPC::decodeResourceRequest):
* Shared/win/WebURLRequestWin.cpp: Added.
(WebKit::WebURLRequest::WebURLRequest):
(WebKit::WebURLRequest::platformRequest):
* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKBase.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageLoadURLRequest):
* UIProcess/API/C/WKPage.h:
* UIProcess/API/C/WKURLRequest.cpp: Added.
(WKURLRequestGetTypeID):
* UIProcess/API/C/WKURLRequest.h: Added.
* UIProcess/API/C/WebKit2.h:
* UIProcess/API/C/cf/WKURLRequestCF.cpp: Added.
(WKURLRequestCreateWithCFURLRequest):
(WKURLRequestCopyCFURLRequest):
* UIProcess/API/C/cf/WKURLRequestCF.h: Added.
* UIProcess/API/C/mac: Added.
* UIProcess/API/C/mac/WKURLRequestNS.h: Added.
* UIProcess/API/C/mac/WKURLRequestNS.mm: Added.
(WKURLRequestCreateWithNSURLRequest):
(WKURLRequestCopyNSURLRequest):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::loadURL):
(WebKit::WebPageProxy::loadURLRequest):
* UIProcess/WebPageProxy.h:
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::loadURL):
(WebKit::WebPage::loadURLRequest):
(WebKit::WebPage::didReceiveMessage):
* WebProcess/WebPage/WebPage.h:
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
31 files changed:
WebKit2/ChangeLog
WebKit2/Shared/APIObject.h
WebKit2/Shared/CoreIPCSupport/WebPageMessageKinds.h
WebKit2/Shared/WebCoreArgumentCoders.h
WebKit2/Shared/WebURLRequest.cpp [new file with mode: 0644]
WebKit2/Shared/WebURLRequest.h [new file with mode: 0644]
WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm [new file with mode: 0644]
WebKit2/Shared/mac/WebURLRequestMac.mm [new file with mode: 0644]
WebKit2/Shared/qt/WebCoreArgumentCodersQt.cpp [new file with mode: 0644]
WebKit2/Shared/qt/WebURLRequestQt.cpp [new file with mode: 0644]
WebKit2/Shared/win/WebCoreArgumentCodersWin.cpp [new file with mode: 0644]
WebKit2/Shared/win/WebURLRequestWin.cpp [new file with mode: 0644]
WebKit2/UIProcess/API/C/WKAPICast.h
WebKit2/UIProcess/API/C/WKBase.h
WebKit2/UIProcess/API/C/WKPage.cpp
WebKit2/UIProcess/API/C/WKPage.h
WebKit2/UIProcess/API/C/WKURLRequest.cpp [new file with mode: 0644]
WebKit2/UIProcess/API/C/WKURLRequest.h [new file with mode: 0644]
WebKit2/UIProcess/API/C/WebKit2.h
WebKit2/UIProcess/API/C/cf/WKURLRequestCF.cpp [new file with mode: 0644]
WebKit2/UIProcess/API/C/cf/WKURLRequestCF.h [new file with mode: 0644]
WebKit2/UIProcess/API/C/mac/WKURLRequestNS.h [new file with mode: 0644]
WebKit2/UIProcess/API/C/mac/WKURLRequestNS.mm [new file with mode: 0644]
WebKit2/UIProcess/WebPageProxy.cpp
WebKit2/UIProcess/WebPageProxy.h
WebKit2/WebKit2.pro
WebKit2/WebKit2.xcodeproj/project.pbxproj
WebKit2/WebProcess/WebPage/WebPage.cpp
WebKit2/WebProcess/WebPage/WebPage.h
WebKit2/win/WebKit2.vcproj
WebKit2/win/WebKit2Generated.make