[GTK] Fix build after r209558
authorgns@gnome.org <gns@gnome.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Dec 2016 14:05:03 +0000 (14:05 +0000)
committergns@gnome.org <gns@gnome.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Dec 2016 14:05:03 +0000 (14:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=165653

Unreviewed build fix.

* UIProcess/API/APIPolicyClient.h: include WebsitePolicies.h.
* UIProcess/API/gtk/WebKitPolicyClient.cpp: ditto.
* UIProcess/API/gtk/WebKitPolicyDecision.cpp:
(webkit_policy_decision_use):  pass empty structure to new required argument.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209604 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/APIPolicyClient.h
Source/WebKit2/UIProcess/API/gtk/WebKitPolicyClient.cpp
Source/WebKit2/UIProcess/API/gtk/WebKitPolicyDecision.cpp

index 4f22da0..e47439c 100644 (file)
@@ -1,3 +1,15 @@
+2016-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
+
+        [GTK] Fix build after r209558
+        https://bugs.webkit.org/show_bug.cgi?id=165653
+
+        Unreviewed build fix.
+
+        * UIProcess/API/APIPolicyClient.h: include WebsitePolicies.h.
+        * UIProcess/API/gtk/WebKitPolicyClient.cpp: ditto.
+        * UIProcess/API/gtk/WebKitPolicyDecision.cpp:
+        (webkit_policy_decision_use):  pass empty structure to new required argument.
+
 2016-12-09  Gavin Barraclough  <barraclough@apple.com>
 
         Revert - Add _WKIconLoadingDelegate SPI
index 7ba47db..6dc0871 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "WebEvent.h"
 #include "WebFramePolicyListenerProxy.h"
+#include "WebsitePolicies.h"
 #include <WebCore/FrameLoaderTypes.h>
 #include <wtf/Forward.h>
 
index c8dda7d..243f409 100644 (file)
@@ -25,6 +25,7 @@
 #include "WebKitResponsePolicyDecisionPrivate.h"
 #include "WebKitWebViewBasePrivate.h"
 #include "WebKitWebViewPrivate.h"
+#include "WebsitePolicies.h"
 #include <wtf/glib/GRefPtr.h>
 #include <wtf/text/CString.h>
 
index ee44eae..6887289 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "WebFramePolicyListenerProxy.h"
 #include "WebKitPolicyDecisionPrivate.h"
+#include "WebsitePolicies.h"
 
 using namespace WebKit;
 
@@ -79,7 +80,7 @@ void webkit_policy_decision_use(WebKitPolicyDecision* decision)
     if (decision->priv->madePolicyDecision)
         return;
 
-    decision->priv->listener->use();
+    decision->priv->listener->use({ });
     decision->priv->madePolicyDecision = true;
 }