Title: [217979] trunk/Source/WebKit2
Revision
217979
Author
[email protected]
Date
2017-06-09 05:18:32 -0700 (Fri, 09 Jun 2017)

Log Message

Use WTF::Function instead of std::function in SpeculativeLoadManager::ExpiringEntry
https://bugs.webkit.org/show_bug.cgi?id=173125

Reviewed by Antti Koivisto.

* NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
(WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
(WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (217978 => 217979)


--- trunk/Source/WebKit2/ChangeLog	2017-06-09 11:44:18 UTC (rev 217978)
+++ trunk/Source/WebKit2/ChangeLog	2017-06-09 12:18:32 UTC (rev 217979)
@@ -1,3 +1,14 @@
+2017-06-09  Chris Dumez  <[email protected]>
+
+        Use WTF::Function instead of std::function in SpeculativeLoadManager::ExpiringEntry
+        https://bugs.webkit.org/show_bug.cgi?id=173125
+
+        Reviewed by Antti Koivisto.
+
+        * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
+        (WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
+        (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):
+
 2017-06-09  Daewoong Jang  <[email protected]>
 
         Use WTF::getCurrentProcessID() instead of getpid()

Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp (217978 => 217979)


--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp	2017-06-09 11:44:18 UTC (rev 217978)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp	2017-06-09 12:18:32 UTC (rev 217979)
@@ -124,7 +124,7 @@
 class SpeculativeLoadManager::ExpiringEntry {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    explicit ExpiringEntry(std::function<void()>&& expirationHandler)
+    explicit ExpiringEntry(WTF::Function<void()>&& expirationHandler)
         : m_lifetimeTimer(WTFMove(expirationHandler))
     {
         m_lifetimeTimer.startOneShot(preloadedEntryLifetime);
@@ -137,7 +137,7 @@
 class SpeculativeLoadManager::PreloadedEntry : private ExpiringEntry {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    PreloadedEntry(std::unique_ptr<Entry> entry, std::optional<ResourceRequest>&& speculativeValidationRequest, std::function<void()>&& lifetimeReachedHandler)
+    PreloadedEntry(std::unique_ptr<Entry> entry, std::optional<ResourceRequest>&& speculativeValidationRequest, WTF::Function<void()>&& lifetimeReachedHandler)
         : ExpiringEntry(WTFMove(lifetimeReachedHandler))
         , m_entry(WTFMove(entry))
         , m_speculativeValidationRequest(WTFMove(speculativeValidationRequest))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to