RESOLVED FIXED 187165
Stop using lambdas for WebResourceLoadStatisticsStore to interact with its WebsiteDataStore
https://bugs.webkit.org/show_bug.cgi?id=187165
Summary Stop using lambdas for WebResourceLoadStatisticsStore to interact with its We...
Chris Dumez
Reported 2018-06-28 18:33:34 PDT
Stop using lambdas for WebResourceLoadStatisticsStore to interact with its WebsiteDataStore. Instead, WebResourceLoadStatisticsStore now holds a weak pointer to its WebsiteDataStore and is able to call methods on it directly. Reducing the indirection makes the code less complex and more understandable.
Attachments
Patch (15.85 KB, patch)
2018-06-28 18:39 PDT, Chris Dumez
no flags
Patch (15.80 KB, patch)
2018-06-28 18:52 PDT, Chris Dumez
no flags
Patch (16.08 KB, patch)
2018-06-28 18:57 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2018-06-28 18:39:05 PDT
Chris Dumez
Comment 2 2018-06-28 18:52:22 PDT
Chris Dumez
Comment 3 2018-06-28 18:57:35 PDT
Brent Fulgham
Comment 4 2018-06-29 09:26:53 PDT
Comment on attachment 343882 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=343882&action=review r=me > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1480 > + m_resourceLoadStatistics->setStatisticsTestingCallback(WTFMove(callback)); Yes, I like this much better. We only worry about the testing callback in the one case where we need it.
Brent Fulgham
Comment 5 2018-06-29 09:27:10 PDT
Comment on attachment 343882 [details] Patch r=me
Brent Fulgham
Comment 6 2018-06-29 09:27:40 PDT
Comment on attachment 343882 [details] Patch r=me
WebKit Commit Bot
Comment 7 2018-06-29 09:54:12 PDT
Comment on attachment 343882 [details] Patch Clearing flags on attachment: 343882 Committed r233359: <https://trac.webkit.org/changeset/233359>
WebKit Commit Bot
Comment 8 2018-06-29 09:54:14 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2018-06-29 09:55:24 PDT
Note You need to log in before you can comment on or make changes to this bug.