[WK2] Rename WebURLResponse to API::URLResponse
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Dec 2013 21:32:15 +0000 (21:32 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Dec 2013 21:32:15 +0000 (21:32 +0000)
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: https://svn.webkit.org/repository/webkit/trunk@160853 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 files changed:
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/c/WKSharedAPICast.h
Source/WebKit2/Shared/API/c/WKURLResponse.cpp
Source/WebKit2/Shared/API/c/mac/WKURLResponseNS.mm
Source/WebKit2/Shared/APIURLRequest.cpp
Source/WebKit2/Shared/APIURLResponse.cpp [moved from Source/WebKit2/Shared/WebURLResponse.cpp with 73% similarity]
Source/WebKit2/Shared/APIURLResponse.h [moved from Source/WebKit2/Shared/WebURLResponse.h with 74% similarity]
Source/WebKit2/Shared/UserMessageCoders.h
Source/WebKit2/UIProcess/WebDownloadClient.cpp
Source/WebKit2/UIProcess/WebPolicyClient.cpp
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp

index 4d8eed58701111d4e479633100725e97f392dd75..a280f66e0852995ccdfc9e5722111b90959c858f 100644 (file)
@@ -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
index 13b459a0fde38d1e53dae6b2ce3cd15e731f69f4..e0d202eac5bea937ddc231f5741e300581e5d081 100644 (file)
@@ -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 WebGraphicsContext;
 class WebImage;
 class WebSecurityOrigin;
 class WebSerializedScriptValue;
-class WebURLResponse;
 class WebUserContentURLPattern;
 
 template<typename APIType> struct APITypeInfo { };
@@ -112,7 +111,7 @@ WK_ADD_API_MAPPING(WKTypeRef, API::Object)
 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 @@ inline ProxyingRefPtr<API::URLRequest> toAPI(const WebCore::ResourceRequest& req
     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)
index 47afca40ad49ec4573507fb0429d4f586b501c3f..b8a8a90bcd3c345cd4756527731432cfca017c87 100644 (file)
 #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)
index eb72c881168add4c515ea1263681c120cc1d2bd7..87211e6491e5e2dfaa6f81d38721398c3f665bea 100644 (file)
 #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());
 }
 
index bb09547dd94e42e49a7bef5234eb2b3bb627b9a6..b9165ea065d6dbfb1a6085175d082b11b8f41174 100644 (file)
@@ -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;
similarity index 73%
rename from Source/WebKit2/Shared/WebURLResponse.cpp
rename to Source/WebKit2/Shared/APIURLResponse.cpp
index 223b55b2a3b0dd4bbddd2ef1b364b79e324c8de5..226d624cb5d040dd42f2e7167c5b29c0e2c841d3 100644 (file)
  */
 
 #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
similarity index 74%
rename from Source/WebKit2/Shared/WebURLResponse.h
rename to Source/WebKit2/Shared/APIURLResponse.h
index 075398bdf6c8ea6fed20e781499a518257bde1d0..2790b9fbe3f9c51bfdfa4215496e398daf9f4fdc 100644 (file)
  * 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
index 874d720983a9f4a8846898e9dfd80fa7d040048a..0090abf329b20d92e523ba6c533c5c038221c061 100644 (file)
@@ -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 @@ namespace WebKit {
 //   - 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 @@ public:
             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 @@ protected:
 //   - 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 @@ public:
             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: {
index 462d2c5c0220ac4a4e97d65e11758fdcdd1b11a0..58b84507a2cfc64ecabe959766551136bba9893f 100644 (file)
@@ -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 @@ void WebDownloadClient::didReceiveResponse(WebContext* webContext, DownloadProxy
     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)
index 84f855040b58be474ecd2c28cfb1bbd7db5026ba..f9de92a9c11eed4474da2d09ad1ae088dbc8142e 100644 (file)
@@ -68,7 +68,7 @@ bool WebPolicyClient::decidePolicyForResponse(WebPageProxy* page, WebFrameProxy*
     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)
index ad25f96734ce4a3c47a5161706d3af1198047b4b..3f5196beb9c3c5e38dfb4cd6ad6b51343182ebd6 100644 (file)
                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 */; };
                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>"; };
                                BCF04C8E11FF9F6E00F86A58 /* APIString.h */,
                                BCE2315C122C30CA00D5C35A /* APIURLRequest.cpp */,
                                BCE2315B122C30CA00D5C35A /* APIURLRequest.h */,
+                               BC90A1D1122DD55E00CC8C50 /* APIURLResponse.cpp */,
+                               BC90A1D0122DD55E00CC8C50 /* APIURLResponse.h */,
                                A7D792D51767CB6E00881CBE /* ActivityAssertion.cpp */,
                                A7D792D41767CB0900881CBE /* ActivityAssertion.h */,
                                515E7725183DD6F60007203F /* AsyncRequest.cpp */,
                                A72D5D7F1236CBA800A88B15 /* WebSerializedScriptValue.h */,
                                C0337DD7127A51B6008FF4F4 /* WebTouchEvent.cpp */,
                                BCDB86C01200FB97007254BE /* WebURL.h */,
-                               BC90A1D1122DD55E00CC8C50 /* WebURLResponse.cpp */,
-                               BC90A1D0122DD55E00CC8C50 /* WebURLResponse.h */,
                                F6113E24126CE1820057D0A7 /* WebUserContentURLPattern.h */,
                                C0337DD0127A2980008FF4F4 /* WebWheelEvent.cpp */,
                        );
                                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 */,
                                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 */,
index baa7003e4018534b4e5b50479076d6de2b3b615a..4f486cde4843f690793b62ba5ff975d42ed24be8 100644 (file)
@@ -65,7 +65,7 @@ WKBundlePagePolicyAction InjectedBundlePagePolicyClient::decidePolicyForResponse
     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;