summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-07-24 17:03:20 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-07-24 17:03:20 +0200
commit08d4a74d56ca431877819fc4566e27eafe150342 (patch)
treeebd8530838ab390c015c6b7e659a22852c1663ae /Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
parent1de6cd4794bbd5a52189384189a2b8df1848b39b (diff)
downloadqtwebkit-08d4a74d56ca431877819fc4566e27eafe150342.tar.gz
Imported WebKit commit 0fbd41c4e13f5a190faf160bf993eee614e6e18e (http://svn.webkit.org/repository/webkit/trunk@123477)
New snapshot that adapts to latest Qt API changes
Diffstat (limited to 'Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp')
-rw-r--r--Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
index 076d3b6c8..d809d611b 100644
--- a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
+++ b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
@@ -36,6 +36,7 @@
#include "WKBundleAPICast.h"
#include "WebApplicationCacheManager.h"
#include "WebContextMessageKinds.h"
+#include "WebCookieManager.h"
#include "WebCoreArgumentCoders.h"
#include "WebDatabaseManager.h"
#include "WebFrame.h"
@@ -114,6 +115,11 @@ void InjectedBundle::setShouldTrackVisitedLinks(bool shouldTrackVisitedLinks)
WebProcess::shared().setShouldTrackVisitedLinks(shouldTrackVisitedLinks);
}
+void InjectedBundle::setAlwaysAcceptCookies(bool accept)
+{
+ WebCookieManager::shared().setHTTPCookieAcceptPolicy(accept ? HTTPCookieAcceptPolicyAlways : HTTPCookieAcceptPolicyOnlyFromMainDocumentDomain);
+}
+
void InjectedBundle::removeAllVisitedLinks()
{
PageGroup::removeAllVisitedLinks();
@@ -263,12 +269,16 @@ void InjectedBundle::resetOriginAccessWhitelists()
void InjectedBundle::clearAllDatabases()
{
+#if ENABLE(SQL_DATABASE)
WebDatabaseManager::shared().deleteAllDatabases();
+#endif
}
void InjectedBundle::setDatabaseQuota(uint64_t quota)
{
+#if ENABLE(SQL_DATABASE)
WebDatabaseManager::shared().setQuotaForOrigin("file:///", quota);
+#endif
}
void InjectedBundle::clearApplicationCache()