[Release] wrt_0.8.191
[platform/framework/web/wrt.git] / src / view / webkit / bundles / wrt-wk2-bundle.h
index fa83a4f..a4a3da0 100644 (file)
@@ -30,6 +30,7 @@
 #include <WKBundlePage.h>
 #include <dpl/string.h>
 #include <dpl/wrt-dao-ro/widget_dao_read_only.h>
+#include <dpl/wrt-dao-ro/common_dao_types.h>
 #include "page_global_context_container.h"
 
 extern "C" {
@@ -79,7 +80,8 @@ class Bundle
     bool m_encrypted;
     WrtDB::EncryptedFileList m_encryptedFiles;
     WrtDB::WidgetType m_widgetType;
-       bool m_initialized;
+    WrtDB::WidgetSecurityModelVersion m_securityModelVersion;
+    bool m_initialized;
 
     // WKBundlePageResourceLoadClient callback
     static WKURLRequestRef willSendRequestForFrameCallback(
@@ -117,7 +119,7 @@ class Bundle
         const void *clientInfo);
 
     // WKBundlePageDecidePolicyForNavigationActionCallback
-    static WKBundlePagePolicyAction pageDecidePolicyForNavigationActionCallback(
+    static WKBundlePagePolicyAction decidePolicyForNavigationActionCallback(
         WKBundlePageRef page,
         WKBundleFrameRef frame,
         WKBundleNavigationActionRef navigationAction,
@@ -125,8 +127,18 @@ class Bundle
         WKTypeRef* userData,
         const void* clientInfo);
 
+    // WKBundlePageDecidePolicyForNewWindowActionCallback
+    static WKBundlePagePolicyAction decidePolicyForNewWindowActionCallback(
+        WKBundlePageRef page,
+        WKBundleFrameRef frame,
+        WKBundleNavigationActionRef navigationAction,
+        WKURLRequestRef request,
+        WKStringRef frameName,
+        WKTypeRef* userData,
+        const void* clientInfo);
+
     // WKBundlePageDecidePolicyForResponseCallback
-    static WKBundlePagePolicyAction pageDecidePolicyForResponseCallback(
+    static WKBundlePagePolicyAction decidePolicyForResponseCallback(
         WKBundlePageRef page,
         WKBundleFrameRef frame,
         WKURLResponseRef response,
@@ -143,12 +155,13 @@ class Bundle
 
     // WKBundlePageResourceLoadClient
     WKURLRequestRef willSendRequestForFrame(WKURLRequestRef request);
-    WKBundlePagePolicyAction pageDecidePolicyForNavigationAction(
+    WKBundlePagePolicyAction decidePolicyForAction(
+        bool isNewWindow,
         WKBundlePageRef page,
         WKBundleFrameRef frame,
         WKBundleNavigationActionRef navigationAction,
         WKURLRequestRef request,
-        WKTypeRef*                  userData);
+        WKTypeRef* userData);
 
     // basic
     static std::string toString(WKStringRef str);