[WK2] Rename WebURLResponse to API::URLResponse
https://bugs.webkit.org/show_bug.cgi?id=125910
Reviewed by Andreas Kling.
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toAPI):
* Shared/API/c/WKURLResponse.cpp:
(WKURLResponseGetTypeID):
* Shared/API/c/mac/WKURLResponseNS.mm:
(WKURLResponseCreateWithNSURLResponse):
* Shared/APIURLRequest.cpp:
* Shared/APIURLResponse.cpp: Copied from Source/WebKit2/Shared/WebURLResponse.cpp.
(API::URLResponse::URLResponse):
(API::URLResponse::encode):
(API::URLResponse::decode):
* Shared/APIURLResponse.h: Copied from Source/WebKit2/Shared/WebURLResponse.h.
(API::URLResponse::create):
* Shared/UserMessageCoders.h:
(WebKit::UserMessageEncoder::baseEncode):
(WebKit::UserMessageDecoder::baseDecode):
* Shared/WebURLResponse.cpp: Removed.
* Shared/WebURLResponse.h: Removed.
* UIProcess/WebDownloadClient.cpp:
(WebKit::WebDownloadClient::didReceiveResponse):
* UIProcess/WebPolicyClient.cpp:
(WebKit::WebPolicyClient::decidePolicyForResponse):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
(WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit2/ChangeLog b/Source/WebKit2/ChangeLog
index 4d8eed5..a280f66 100644
--- a/Source/WebKit2/ChangeLog
+++ b/Source/WebKit2/ChangeLog
@@ -1,3 +1,36 @@
+2013-12-17 Sam Weinig <sam@webkit.org>
+
+ [WK2] Rename WebURLResponse to API::URLResponse
+ https://bugs.webkit.org/show_bug.cgi?id=125910
+
+ Reviewed by Andreas Kling.
+
+ * Shared/API/c/WKSharedAPICast.h:
+ (WebKit::toAPI):
+ * Shared/API/c/WKURLResponse.cpp:
+ (WKURLResponseGetTypeID):
+ * Shared/API/c/mac/WKURLResponseNS.mm:
+ (WKURLResponseCreateWithNSURLResponse):
+ * Shared/APIURLRequest.cpp:
+ * Shared/APIURLResponse.cpp: Copied from Source/WebKit2/Shared/WebURLResponse.cpp.
+ (API::URLResponse::URLResponse):
+ (API::URLResponse::encode):
+ (API::URLResponse::decode):
+ * Shared/APIURLResponse.h: Copied from Source/WebKit2/Shared/WebURLResponse.h.
+ (API::URLResponse::create):
+ * Shared/UserMessageCoders.h:
+ (WebKit::UserMessageEncoder::baseEncode):
+ (WebKit::UserMessageDecoder::baseDecode):
+ * Shared/WebURLResponse.cpp: Removed.
+ * Shared/WebURLResponse.h: Removed.
+ * UIProcess/WebDownloadClient.cpp:
+ (WebKit::WebDownloadClient::didReceiveResponse):
+ * UIProcess/WebPolicyClient.cpp:
+ (WebKit::WebPolicyClient::decidePolicyForResponse):
+ * WebKit2.xcodeproj/project.pbxproj:
+ * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
+ (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
+
2013-12-19 Nick Diego Yamane <nick.yamane@openbossa.org>
[CoordinatedGraphics] Regressions in WebView's contentScaleFactor/contentPosition
diff --git a/Source/WebKit2/Shared/API/c/WKSharedAPICast.h b/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
index 13b459a..e0d202e 100644
--- a/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
+++ b/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
@@ -29,6 +29,7 @@
#include "APINumber.h"
#include "APIString.h"
#include "APIURLRequest.h"
+#include "APIURLResponse.h"
#include "ImageOptions.h"
#include "SameDocumentNavigationType.h"
#include "WKBase.h"
@@ -47,7 +48,6 @@
#include "WebFindOptions.h"
#include "WebSecurityOrigin.h"
#include "WebURL.h"
-#include "WebURLResponse.h"
#include <WebCore/ContextMenuItem.h>
#include <WebCore/FloatRect.h>
#include <WebCore/FrameLoaderTypes.h>
@@ -80,7 +80,6 @@
class WebImage;
class WebSecurityOrigin;
class WebSerializedScriptValue;
-class WebURLResponse;
class WebUserContentURLPattern;
template<typename APIType> struct APITypeInfo { };
@@ -112,7 +111,7 @@
WK_ADD_API_MAPPING(WKUInt64Ref, API::UInt64)
WK_ADD_API_MAPPING(WKURLRef, WebURL)
WK_ADD_API_MAPPING(WKURLRequestRef, API::URLRequest)
-WK_ADD_API_MAPPING(WKURLResponseRef, WebURLResponse)
+WK_ADD_API_MAPPING(WKURLResponseRef, API::URLResponse)
WK_ADD_API_MAPPING(WKUserContentURLPatternRef, WebUserContentURLPattern)
template<> struct APITypeInfo<WKMutableArrayRef> { typedef API::Array* ImplType; };
@@ -209,9 +208,9 @@
return ProxyingRefPtr<API::URLRequest>(API::URLRequest::create(request));
}
-inline ProxyingRefPtr<WebURLResponse> toAPI(const WebCore::ResourceResponse& response)
+inline ProxyingRefPtr<API::URLResponse> toAPI(const WebCore::ResourceResponse& response)
{
- return ProxyingRefPtr<WebURLResponse>(WebURLResponse::create(response));
+ return ProxyingRefPtr<API::URLResponse>(API::URLResponse::create(response));
}
inline WKSecurityOriginRef toCopiedAPI(WebCore::SecurityOrigin* origin)
diff --git a/Source/WebKit2/Shared/API/c/WKURLResponse.cpp b/Source/WebKit2/Shared/API/c/WKURLResponse.cpp
index 47afca4..b8a8a90 100644
--- a/Source/WebKit2/Shared/API/c/WKURLResponse.cpp
+++ b/Source/WebKit2/Shared/API/c/WKURLResponse.cpp
@@ -26,15 +26,15 @@
#include "config.h"
#include "WKURLResponse.h"
+#include "APIURLResponse.h"
#include "WKAPICast.h"
-#include "WebURLResponse.h"
#include <WebCore/URL.h>
using namespace WebKit;
WKTypeID WKURLResponseGetTypeID()
{
- return toAPI(WebURLResponse::APIType);
+ return toAPI(API::URLResponse::APIType);
}
WKURLRef WKURLResponseCopyURL(WKURLResponseRef responseRef)
diff --git a/Source/WebKit2/Shared/API/c/mac/WKURLResponseNS.mm b/Source/WebKit2/Shared/API/c/mac/WKURLResponseNS.mm
index eb72c88..87211e6 100644
--- a/Source/WebKit2/Shared/API/c/mac/WKURLResponseNS.mm
+++ b/Source/WebKit2/Shared/API/c/mac/WKURLResponseNS.mm
@@ -26,15 +26,15 @@
#import "config.h"
#import "WKURLResponseNS.h"
+#import "APIURLResponse.h"
#import "WKAPICast.h"
-#import "WebURLResponse.h"
using namespace WebKit;
WKURLResponseRef WKURLResponseCreateWithNSURLResponse(NSURLResponse* urlResponse)
{
RetainPtr<NSURLResponse> copiedURLResponse = adoptNS([urlResponse copy]);
- RefPtr<WebURLResponse> response = WebURLResponse::create(copiedURLResponse.get());
+ RefPtr<API::URLResponse> response = API::URLResponse::create(copiedURLResponse.get());
return toAPI(response.release().leakRef());
}
diff --git a/Source/WebKit2/Shared/APIURLRequest.cpp b/Source/WebKit2/Shared/APIURLRequest.cpp
index bb09547..b9165ea 100644
--- a/Source/WebKit2/Shared/APIURLRequest.cpp
+++ b/Source/WebKit2/Shared/APIURLRequest.cpp
@@ -26,9 +26,8 @@
#include "config.h"
#include "APIURLRequest.h"
-#include "ArgumentDecoder.h"
-#include "ArgumentEncoder.h"
#include "WebContext.h"
+#include "WebCoreArgumentCoders.h"
using namespace WebCore;
using namespace WebKit;
diff --git a/Source/WebKit2/Shared/WebURLResponse.cpp b/Source/WebKit2/Shared/APIURLResponse.cpp
similarity index 73%
rename from Source/WebKit2/Shared/WebURLResponse.cpp
rename to Source/WebKit2/Shared/APIURLResponse.cpp
index 223b55b..226d624 100644
--- a/Source/WebKit2/Shared/WebURLResponse.cpp
+++ b/Source/WebKit2/Shared/APIURLResponse.cpp
@@ -24,13 +24,32 @@
*/
#include "config.h"
-#include "WebURLResponse.h"
+#include "APIURLResponse.h"
-namespace WebKit {
+#include "WebCoreArgumentCoders.h"
-WebURLResponse::WebURLResponse(const WebCore::ResourceResponse& response)
+using namespace WebCore;
+
+namespace API {
+
+URLResponse::URLResponse(const WebCore::ResourceResponse& response)
: m_response(response)
{
}
-} // namespace WebKit
+void URLResponse::encode(IPC::ArgumentEncoder& encoder) const
+{
+ encoder << resourceResponse();
+}
+
+bool URLResponse::decode(IPC::ArgumentDecoder& decoder, RefPtr<Object>& result)
+{
+ ResourceResponse response;
+ if (!decoder.decode(response))
+ return false;
+
+ result = create(response);
+ return true;
+}
+
+} // namespace API
diff --git a/Source/WebKit2/Shared/WebURLResponse.h b/Source/WebKit2/Shared/APIURLResponse.h
similarity index 74%
rename from Source/WebKit2/Shared/WebURLResponse.h
rename to Source/WebKit2/Shared/APIURLResponse.h
index 075398b..2790b9f 100644
--- a/Source/WebKit2/Shared/WebURLResponse.h
+++ b/Source/WebKit2/Shared/APIURLResponse.h
@@ -23,30 +23,38 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebURLResponse_h
-#define WebURLResponse_h
+#ifndef APIURLResponse_h
+#define APIURLResponse_h
#include "APIObject.h"
#include <WebCore/ResourceResponse.h>
#include <wtf/Forward.h>
-namespace WebKit {
+namespace IPC {
+class ArgumentDecoder;
+class ArgumentEncoder;
+}
-class WebURLResponse : public API::ObjectImpl<API::Object::Type::URLResponse> {
+namespace API {
+
+class URLResponse : public ObjectImpl<Object::Type::URLResponse> {
public:
- static PassRefPtr<WebURLResponse> create(const WebCore::ResourceResponse& response)
+ static PassRefPtr<URLResponse> create(const WebCore::ResourceResponse& response)
{
- return adoptRef(new WebURLResponse(response));
+ return adoptRef(new URLResponse(response));
}
const WebCore::ResourceResponse& resourceResponse() const { return m_response; }
+ void encode(IPC::ArgumentEncoder&) const;
+ static bool decode(IPC::ArgumentDecoder&, RefPtr<Object>&);
+
private:
- explicit WebURLResponse(const WebCore::ResourceResponse&);
+ explicit URLResponse(const WebCore::ResourceResponse&);
WebCore::ResourceResponse m_response;
};
-} // namespace WebKit
+} // namespace API
-#endif // WebURLResponse_h
+#endif // APIURLResponse_h
diff --git a/Source/WebKit2/Shared/UserMessageCoders.h b/Source/WebKit2/Shared/UserMessageCoders.h
index 874d720..0090abf 100644
--- a/Source/WebKit2/Shared/UserMessageCoders.h
+++ b/Source/WebKit2/Shared/UserMessageCoders.h
@@ -32,6 +32,7 @@
#include "APINumber.h"
#include "APIString.h"
#include "APIURLRequest.h"
+#include "APIURLResponse.h"
#include "ArgumentDecoder.h"
#include "ArgumentEncoder.h"
#include "DataReference.h"
@@ -45,7 +46,6 @@
#include "WebRenderObject.h"
#include "WebSerializedScriptValue.h"
#include "WebURL.h"
-#include "WebURLResponse.h"
#include "WebUserContentURLPattern.h"
namespace WebKit {
@@ -65,7 +65,7 @@
// - API::UInt64 -> API::UInt64
// - WebURL -> WebURL
// - API::URLRequest -> API::URLRequest
-// - WebURLResponse -> WebURLResponse
+// - API::URLResponse -> API::URLResponse
// - WebError -> WebError
template<typename Owner>
@@ -182,7 +182,7 @@
return true;
}
case API::Object::Type::URLResponse: {
- WebURLResponse* urlResponseObject = static_cast<WebURLResponse*>(m_root);
+ API::URLResponse* urlResponseObject = static_cast<API::URLResponse*>(m_root);
encoder << urlResponseObject->resourceResponse();
return true;
}
@@ -254,7 +254,7 @@
// - API::UInt64 -> API::UInt64
// - WebURL -> WebURL
// - API::URLRequest -> API::URLRequest
-// - WebURLResponse -> WebURLResponse
+// - API::URLResponse -> API::URLResponse
// - WebError -> WebError
template<typename Owner>
@@ -471,7 +471,7 @@
WebCore::ResourceResponse response;
if (!decoder.decode(response))
return false;
- coder.m_root = WebURLResponse::create(response);
+ coder.m_root = API::URLResponse::create(response);
break;
}
case API::Object::Type::UserContentURLPattern: {
diff --git a/Source/WebKit2/UIProcess/WebDownloadClient.cpp b/Source/WebKit2/UIProcess/WebDownloadClient.cpp
index 462d2c5..58b8450 100644
--- a/Source/WebKit2/UIProcess/WebDownloadClient.cpp
+++ b/Source/WebKit2/UIProcess/WebDownloadClient.cpp
@@ -26,8 +26,8 @@
#include "config.h"
#include "WebDownloadClient.h"
+#include "APIURLResponse.h"
#include "WKAPICast.h"
-#include "WebURLResponse.h"
#include "WKRetainPtr.h"
using namespace WebCore;
@@ -55,7 +55,7 @@
if (!m_client.didReceiveResponse)
return;
- m_client.didReceiveResponse(toAPI(webContext), toAPI(downloadProxy), toAPI(WebURLResponse::create(response).get()), m_client.base.clientInfo);
+ m_client.didReceiveResponse(toAPI(webContext), toAPI(downloadProxy), toAPI(API::URLResponse::create(response).get()), m_client.base.clientInfo);
}
void WebDownloadClient::didReceiveData(WebContext* webContext, DownloadProxy* downloadProxy, uint64_t length)
diff --git a/Source/WebKit2/UIProcess/WebPolicyClient.cpp b/Source/WebKit2/UIProcess/WebPolicyClient.cpp
index 84f8550..f9de92a 100644
--- a/Source/WebKit2/UIProcess/WebPolicyClient.cpp
+++ b/Source/WebKit2/UIProcess/WebPolicyClient.cpp
@@ -68,7 +68,7 @@
if (!m_client.decidePolicyForResponse_deprecatedForUseWithV0 && !m_client.decidePolicyForResponse)
return false;
- RefPtr<WebURLResponse> response = WebURLResponse::create(resourceResponse);
+ RefPtr<API::URLResponse> response = API::URLResponse::create(resourceResponse);
RefPtr<API::URLRequest> request = API::URLRequest::create(resourceRequest);
if (m_client.decidePolicyForResponse_deprecatedForUseWithV0)
diff --git a/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj b/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
index ad25f96..3f5196b 100644
--- a/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
+++ b/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
@@ -1081,8 +1081,8 @@
BC8F2F2B16273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8F2F2916273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h */; settings = {ATTRIBUTES = (Public, ); }; };
BC8F2F2E16273ACC005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = BC8F2F2D16273ACB005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h */; };
BC9099801256A98200083756 /* WKStringPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = BC90997F1256A98200083756 /* WKStringPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
- BC90A1D2122DD55E00CC8C50 /* WebURLResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = BC90A1D0122DD55E00CC8C50 /* WebURLResponse.h */; };
- BC90A1D3122DD55E00CC8C50 /* WebURLResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC90A1D1122DD55E00CC8C50 /* WebURLResponse.cpp */; };
+ BC90A1D2122DD55E00CC8C50 /* APIURLResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = BC90A1D0122DD55E00CC8C50 /* APIURLResponse.h */; };
+ BC90A1D3122DD55E00CC8C50 /* APIURLResponse.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC90A1D1122DD55E00CC8C50 /* APIURLResponse.cpp */; };
BC963D6B113DD19200574BE2 /* WebPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC963D6A113DD19200574BE2 /* WebPage.cpp */; };
BC963D6E113DD1A500574BE2 /* WebPageMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC963D6D113DD1A500574BE2 /* WebPageMac.mm */; };
BC989D81161A7E5D000D46D3 /* WKWebProcessPlugIn.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC989D7F161A7E5B000D46D3 /* WKWebProcessPlugIn.mm */; };
@@ -2722,8 +2722,8 @@
BC8F2F2916273A2C005FACB5 /* WKWebProcessPlugInBrowserContextController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInBrowserContextController.h; sourceTree = "<group>"; };
BC8F2F2D16273ACB005FACB5 /* WKWebProcessPlugInBrowserContextControllerInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebProcessPlugInBrowserContextControllerInternal.h; sourceTree = "<group>"; };
BC90997F1256A98200083756 /* WKStringPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKStringPrivate.h; sourceTree = "<group>"; };
- BC90A1D0122DD55E00CC8C50 /* WebURLResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebURLResponse.h; sourceTree = "<group>"; };
- BC90A1D1122DD55E00CC8C50 /* WebURLResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebURLResponse.cpp; sourceTree = "<group>"; };
+ BC90A1D0122DD55E00CC8C50 /* APIURLResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIURLResponse.h; sourceTree = "<group>"; };
+ BC90A1D1122DD55E00CC8C50 /* APIURLResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = APIURLResponse.cpp; sourceTree = "<group>"; };
BC963D6A113DD19200574BE2 /* WebPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebPage.cpp; sourceTree = "<group>"; };
BC963D6D113DD1A500574BE2 /* WebPageMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPageMac.mm; sourceTree = "<group>"; };
BC989D7F161A7E5B000D46D3 /* WKWebProcessPlugIn.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKWebProcessPlugIn.mm; sourceTree = "<group>"; };
@@ -3513,6 +3513,8 @@
BCF04C8E11FF9F6E00F86A58 /* APIString.h */,
BCE2315C122C30CA00D5C35A /* APIURLRequest.cpp */,
BCE2315B122C30CA00D5C35A /* APIURLRequest.h */,
+ BC90A1D1122DD55E00CC8C50 /* APIURLResponse.cpp */,
+ BC90A1D0122DD55E00CC8C50 /* APIURLResponse.h */,
A7D792D51767CB6E00881CBE /* ActivityAssertion.cpp */,
A7D792D41767CB0900881CBE /* ActivityAssertion.h */,
515E7725183DD6F60007203F /* AsyncRequest.cpp */,
@@ -3642,8 +3644,6 @@
A72D5D7F1236CBA800A88B15 /* WebSerializedScriptValue.h */,
C0337DD7127A51B6008FF4F4 /* WebTouchEvent.cpp */,
BCDB86C01200FB97007254BE /* WebURL.h */,
- BC90A1D1122DD55E00CC8C50 /* WebURLResponse.cpp */,
- BC90A1D0122DD55E00CC8C50 /* WebURLResponse.h */,
F6113E24126CE1820057D0A7 /* WebUserContentURLPattern.h */,
C0337DD0127A2980008FF4F4 /* WebWheelEvent.cpp */,
);
@@ -6186,7 +6186,7 @@
BCDB86C11200FB97007254BE /* WebURL.h in Headers */,
51C96119183D294700D2002E /* WebIDBServerConnectionMessages.h in Headers */,
BCE2315D122C30CA00D5C35A /* APIURLRequest.h in Headers */,
- BC90A1D2122DD55E00CC8C50 /* WebURLResponse.h in Headers */,
+ BC90A1D2122DD55E00CC8C50 /* APIURLResponse.h in Headers */,
F6113E25126CE1820057D0A7 /* WebUserContentURLPattern.h in Headers */,
29CD55AA128E294F00133C85 /* WKAccessibilityWebPageObject.h in Headers */,
BCDDB32D124EC2E10048D13C /* WKAPICast.h in Headers */,
@@ -7553,7 +7553,7 @@
1A594ABA112A1FB6009DE7C7 /* WebUIClient.cpp in Sources */,
BCA0EF8012331E78007D3CFB /* WebUndoStep.cpp in Sources */,
BCE2315E122C30CA00D5C35A /* APIURLRequest.cpp in Sources */,
- BC90A1D3122DD55E00CC8C50 /* WebURLResponse.cpp in Sources */,
+ BC90A1D3122DD55E00CC8C50 /* APIURLResponse.cpp in Sources */,
C0337DD1127A2980008FF4F4 /* WebWheelEvent.cpp in Sources */,
51FCB18517BBFE0300394CD8 /* AsynchronousNetworkLoaderClient.cpp in Sources */,
29CD55AB128E294F00133C85 /* WKAccessibilityWebPageObject.mm in Sources */,
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
index baa7003..4f486cd 100644
--- a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
+++ b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
@@ -65,7 +65,7 @@
if (!m_client.decidePolicyForResponse)
return WKBundlePagePolicyActionPassThrough;
- RefPtr<WebURLResponse> response = WebURLResponse::create(resourceResponse);
+ RefPtr<API::URLResponse> response = API::URLResponse::create(resourceResponse);
RefPtr<API::URLRequest> request = API::URLRequest::create(resourceRequest);
WKTypeRef userDataToPass = 0;