SpeculativeLoad should use CompletionHandler, as remarked in https://bugs.webkit.org/show_bug.cgi?id=201461 review.
Created attachment 380638 [details] Patch
Comment on attachment 380638 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380638&action=review > Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:45 > +SpeculativeLoad::SpeculativeLoad(Cache& cache, const GlobalFrameID& globalFrameID, const ResourceRequest& request, std::unique_ptr<NetworkCache::Entry> cacheEntryForValidation, WTF::CompletionHandler<void(std::unique_ptr<NetworkCache::Entry>)>&& completionHandler) No WTF:: please. Same comment applies everywhere below. > Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:-46 > - typedef Function<void (std::unique_ptr<NetworkCache::Entry>)> RevalidationCompletionHandler; Why did you drop the typedef? I would have kept it and simply used a CompletionHandler instead of a Function.
Created attachment 380648 [details] Patch
Comment on attachment 380638 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380638&action=review >> Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:45 >> +SpeculativeLoad::SpeculativeLoad(Cache& cache, const GlobalFrameID& globalFrameID, const ResourceRequest& request, std::unique_ptr<NetworkCache::Entry> cacheEntryForValidation, WTF::CompletionHandler<void(std::unique_ptr<NetworkCache::Entry>)>&& completionHandler) > > No WTF:: please. Same comment applies everywhere below. Fixed. >> Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:-46 >> - typedef Function<void (std::unique_ptr<NetworkCache::Entry>)> RevalidationCompletionHandler; > > Why did you drop the typedef? I would have kept it and simply used a CompletionHandler instead of a Function. I saw another such usage of CompletionHandler and assumed that was the way to go.
Comment on attachment 380648 [details] Patch Clearing flags on attachment: 380648 Committed r250974: <https://trac.webkit.org/changeset/250974>
All reviewed patches have been landed. Closing bug.
<rdar://problem/56157710>