diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp')
-rw-r--r-- | Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp index a067e3f5d..2cb977cd8 100644 --- a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp +++ b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp @@ -28,7 +28,10 @@ #include "APIError.h" #include "APIURLRequest.h" +#include "InjectedBundleNavigationAction.h" #include "WKBundleAPICast.h" +#include "WebFrame.h" +#include "WebPage.h" using namespace WebCore; @@ -39,10 +42,10 @@ WKBundlePagePolicyAction InjectedBundlePagePolicyClient::decidePolicyForNavigati if (!m_client.decidePolicyForNavigationAction) return WKBundlePagePolicyActionPassThrough; - RefPtr<API::URLRequest> request = API::URLRequest::create(resourceRequest); + Ref<API::URLRequest> request = API::URLRequest::create(resourceRequest); WKTypeRef userDataToPass = 0; - WKBundlePagePolicyAction policy = m_client.decidePolicyForNavigationAction(toAPI(page), toAPI(frame), toAPI(action), toAPI(request.get()), &userDataToPass, m_client.base.clientInfo); + WKBundlePagePolicyAction policy = m_client.decidePolicyForNavigationAction(toAPI(page), toAPI(frame), toAPI(action), toAPI(request.ptr()), &userDataToPass, m_client.base.clientInfo); userData = adoptRef(toImpl(userDataToPass)); return policy; } @@ -52,10 +55,10 @@ WKBundlePagePolicyAction InjectedBundlePagePolicyClient::decidePolicyForNewWindo if (!m_client.decidePolicyForNewWindowAction) return WKBundlePagePolicyActionPassThrough; - RefPtr<API::URLRequest> request = API::URLRequest::create(resourceRequest); + Ref<API::URLRequest> request = API::URLRequest::create(resourceRequest); WKTypeRef userDataToPass = 0; - WKBundlePagePolicyAction policy = m_client.decidePolicyForNewWindowAction(toAPI(page), toAPI(frame), toAPI(action), toAPI(request.get()), toAPI(frameName.impl()), &userDataToPass, m_client.base.clientInfo); + WKBundlePagePolicyAction policy = m_client.decidePolicyForNewWindowAction(toAPI(page), toAPI(frame), toAPI(action), toAPI(request.ptr()), toAPI(frameName.impl()), &userDataToPass, m_client.base.clientInfo); userData = adoptRef(toImpl(userDataToPass)); return policy; } @@ -65,11 +68,11 @@ WKBundlePagePolicyAction InjectedBundlePagePolicyClient::decidePolicyForResponse if (!m_client.decidePolicyForResponse) return WKBundlePagePolicyActionPassThrough; - RefPtr<API::URLResponse> response = API::URLResponse::create(resourceResponse); - RefPtr<API::URLRequest> request = API::URLRequest::create(resourceRequest); + Ref<API::URLResponse> response = API::URLResponse::create(resourceResponse); + Ref<API::URLRequest> request = API::URLRequest::create(resourceRequest); WKTypeRef userDataToPass = 0; - WKBundlePagePolicyAction policy = m_client.decidePolicyForResponse(toAPI(page), toAPI(frame), toAPI(response.get()), toAPI(request.get()), &userDataToPass, m_client.base.clientInfo); + WKBundlePagePolicyAction policy = m_client.decidePolicyForResponse(toAPI(page), toAPI(frame), toAPI(response.ptr()), toAPI(request.ptr()), &userDataToPass, m_client.base.clientInfo); userData = adoptRef(toImpl(userDataToPass)); return policy; } |