summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp')
-rw-r--r--Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp b/Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp
index 08914ed81..f964e4981 100644
--- a/Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp
+++ b/Source/WebKit2/UIProcess/soup/WebCookieManagerProxySoup.cpp
@@ -33,7 +33,16 @@ namespace WebKit {
void WebCookieManagerProxy::setCookiePersistentStorage(const String& storagePath, uint32_t storageType)
{
- m_webContext->sendToAllProcessesRelaunchingThemIfNecessary(Messages::WebCookieManager::SetCookiePersistentStorage(storagePath, storageType));
+ context()->sendToAllProcessesRelaunchingThemIfNecessary(Messages::WebCookieManager::SetCookiePersistentStorage(storagePath, storageType));
+
+ m_cookiePersistentStoragePath = storagePath;
+ m_cookiePersistentStorageType = static_cast<SoupCookiePersistentStorageType>(storageType);
+}
+
+void WebCookieManagerProxy::getCookiePersistentStorage(String& storagePath, uint32_t& storageType) const
+{
+ storagePath = m_cookiePersistentStoragePath;
+ storageType = static_cast<uint32_t>(m_cookiePersistentStorageType);
}
}