12018-03-14 John Wilander <wilander@apple.com>
2
3 Resource Load Statistics: Add clearing of storage access to WebResourceLoadStatisticsStore::clearInMemory()
4 https://bugs.webkit.org/show_bug.cgi?id=183641
5 <rdar://problem/38469497>
6
7 Reviewed by Brent Fulgham and Chris Dumez.
8
9 This change is to stabilize existing layout tests by removing
10 all storage access entries on a call to
11 WebResourceLoadStatisticsStore::clearInMemory().
12 See Ryan Haddad's comment in https://bugs.webkit.org/show_bug.cgi?id=183620.
13
14 Almost all of the code changes are piping to get this
15 call from the WebResourceLoadStatisticsStore to
16 WebCore::NetworkStorageSession where entries reside.
17
18 * NetworkProcess/NetworkProcess.cpp:
19 (WebKit::NetworkProcess::removeAllStorageAccess):
20 * NetworkProcess/NetworkProcess.h:
21 * NetworkProcess/NetworkProcess.messages.in:
22 * UIProcess/Network/NetworkProcessProxy.cpp:
23 (WebKit::NetworkProcessProxy::removeAllStorageAccess):
24 * UIProcess/Network/NetworkProcessProxy.h:
25 * UIProcess/WebResourceLoadStatisticsStore.cpp:
26 (WebKit::WebResourceLoadStatisticsStore::WebResourceLoadStatisticsStore):
27 (WebKit::WebResourceLoadStatisticsStore::removeAllStorageAccess):
28 (WebKit::WebResourceLoadStatisticsStore::clearInMemory):
29 Now also clears all storage access entries in the network process.
30 * UIProcess/WebResourceLoadStatisticsStore.h:
31 * UIProcess/WebsiteData/WebsiteDataStore.cpp:
32 (WebKit::WebsiteDataStore::removeAllStorageAccessHandler):
33 (WebKit::WebsiteDataStore::enableResourceLoadStatisticsAndSetTestingCallback):
34 * UIProcess/WebsiteData/WebsiteDataStore.h:
35