summaryrefslogtreecommitdiffstats
path: root/WebKit/win/WebCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/win/WebCache.cpp')
-rw-r--r--WebKit/win/WebCache.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebKit/win/WebCache.cpp b/WebKit/win/WebCache.cpp
index 2e5c2e9..c7351b0 100644
--- a/WebKit/win/WebCache.cpp
+++ b/WebKit/win/WebCache.cpp
@@ -30,7 +30,9 @@
#include "CFDictionaryPropertyBag.h"
#pragma warning(push, 0)
+#include <WebCore/ApplicationCacheStorage.h>
#include <WebCore/Cache.h>
+#include <WebCore/CrossOriginPreflightResultCache.h>
#pragma warning(pop)
// WebCache ---------------------------------------------------------------------------
@@ -206,6 +208,13 @@ HRESULT STDMETHODCALLTYPE WebCache::empty( void)
return S_OK;
WebCore::cache()->setDisabled(true);
WebCore::cache()->setDisabled(false);
+
+ // Empty the application cache.
+ WebCore::cacheStorage().empty();
+
+ // Empty the Cross-Origin Preflight cache
+ WebCore::CrossOriginPreflightResultCache::shared().empty();
+
return S_OK;
}