Cache::remove should take a Key instead of an entry
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Mar 2015 21:16:47 +0000 (21:16 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Mar 2015 21:16:47 +0000 (21:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=142878

Reviewed by Antti Koivisto.

* NetworkProcess/cache/NetworkCache.cpp:
(WebKit::NetworkCache::Cache::remove):
* NetworkProcess/cache/NetworkCache.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181756 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp
Source/WebKit2/NetworkProcess/cache/NetworkCache.h

index 8182b28..7af542e 100644 (file)
@@ -1,3 +1,14 @@
+2015-03-19  Anders Carlsson  <andersca@apple.com>
+
+        Cache::remove should take a Key instead of an entry
+        https://bugs.webkit.org/show_bug.cgi?id=142878
+
+        Reviewed by Antti Koivisto.
+
+        * NetworkProcess/cache/NetworkCache.cpp:
+        (WebKit::NetworkCache::Cache::remove):
+        * NetworkProcess/cache/NetworkCache.h:
+
 2015-03-19  Chris Dumez  <cdumez@apple.com>
 
         Clean up DOMTimer related settings
index a0f491a..925ddb0 100644 (file)
@@ -390,11 +390,11 @@ void Cache::update(const WebCore::ResourceRequest& originalRequest, const Entry&
     });
 }
 
-void Cache::remove(const Entry& entry)
+void Cache::remove(const Key& key)
 {
     ASSERT(isEnabled());
 
-    m_storage->remove(entry.storageEntry.key);
+    m_storage->remove(key);
 }
 
 void Cache::traverse(std::function<void (const Entry*)>&& traverseHandler)
index 38496d9..35b9de3 100644 (file)
@@ -102,7 +102,7 @@ public:
     void update(const WebCore::ResourceRequest&, const Entry&, const WebCore::ResourceResponse& validatingResponse);
 
     void traverse(std::function<void (const Entry*)>&&);
-    void remove(const Entry&);
+    void remove(const Key&);
 
     void clear();