#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" {
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(
const void *clientInfo);
// WKBundlePageDecidePolicyForNavigationActionCallback
- static WKBundlePagePolicyAction pageDecidePolicyForNavigationActionCallback(
+ static WKBundlePagePolicyAction decidePolicyForNavigationActionCallback(
WKBundlePageRef page,
WKBundleFrameRef frame,
WKBundleNavigationActionRef navigationAction,
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,
// 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);