-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge ResourceLoadStatisticsStore and ResourceLoadStatisticsDatabaseS…
…tore https://bugs.webkit.org/show_bug.cgi?id=259715 <rdar://113236158> Reviewed by Chris Dumez. Now that we only have a SQLite-based ITP database, we should remove the needless layering created by a separate ResourceLoadStatisticsStore and ResourceLoadStatisticsDatabaseStore child class. This will allow us to reduce complexity by removing a needless child class, but will also remove numerous virtual method calls, type checks, and downcast operations needed to dispatch methods to the child class. * Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp: Removed. * Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp: Many methods moved here from ResourceLoadStatisticsDatabaseStore.cpp. (WebKit::ResourceLoadStatisticsStore::computeImportance): Deleted. * Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h: (WebKit::ResourceLoadStatisticsStore::isDebugModeEnabled const): Deleted. (WebKit::ResourceLoadStatisticsStore::setThirdPartyCookieBlockingMode): Deleted. (WebKit::ResourceLoadStatisticsStore::thirdPartyCookieBlockingMode const): Deleted. (WebKit::ResourceLoadStatisticsStore::setSameSiteStrictEnforcementEnabled): Deleted. (WebKit::ResourceLoadStatisticsStore::isSameSiteStrictEnforcementEnabled const): Deleted. (WebKit::ResourceLoadStatisticsStore::setFirstPartyWebsiteDataRemovalMode): Deleted. (WebKit::ResourceLoadStatisticsStore::setStandaloneApplicationDomain): Deleted. (WebKit::ResourceLoadStatisticsStore::store const): Deleted. (WebKit::ResourceLoadStatisticsStore::isMemoryStore const): Deleted. (WebKit::ResourceLoadStatisticsStore::isDatabaseStore const): Deleted. (WebKit::ResourceLoadStatisticsStore::dataRecordsBeingRemoved const): Deleted. (WebKit::ResourceLoadStatisticsStore::store): Deleted. (WebKit::ResourceLoadStatisticsStore::workQueue): Deleted. (WebKit::ResourceLoadStatisticsStore::classifier): Deleted. (WebKit::ResourceLoadStatisticsStore::parameters const): Deleted. (WebKit::ResourceLoadStatisticsStore::endOfGrandfatheringTimestamp): Deleted. (WebKit::ResourceLoadStatisticsStore::endOfGrandfatheringTimestamp const): Deleted. (WebKit::ResourceLoadStatisticsStore::clearEndOfGrandfatheringTimeStamp): Deleted. (WebKit::ResourceLoadStatisticsStore::debugManualPrevalentResource const): Deleted. (WebKit::ResourceLoadStatisticsStore::debugStaticPrevalentResource const): Deleted. (WebKit::ResourceLoadStatisticsStore::debugLoggingEnabled const): Deleted. (WebKit::ResourceLoadStatisticsStore::debugModeEnabled const): Deleted. (WebKit::ResourceLoadStatisticsStore::firstPartyWebsiteDataRemovalMode const): Deleted. (WebKit::ResourceLoadStatisticsStore::setDebugLogggingEnabled): Deleted. * Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp: (WebKit::WebResourceLoadStatisticsStore::WebResourceLoadStatisticsStore): Update to call method directly, rather than using is<> and downcast<>. (WebKit::WebResourceLoadStatisticsStore::populateMemoryStoreFromDisk): Ditto. (WebKit::WebResourceLoadStatisticsStore::statisticsDatabaseHasAllTables): Ditto. (WebKit::WebResourceLoadStatisticsStore::performDailyTasks): Ditto. (WebKit::WebResourceLoadStatisticsStore::isRelationshipOnlyInDatabaseOnce): Ditto. (WebKit::WebResourceLoadStatisticsStore::scheduleClearInMemoryAndPersistent): Ditto. (WebKit::WebResourceLoadStatisticsStore::domainIDExistsInDatabase): Ditto. (WebKit::WebResourceLoadStatisticsStore::suspend): Ditto. * Source/WebKit/Sources.txt: * Source/WebKit/WebKit.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/266741@main
- Loading branch information
1 parent
a652661
commit f0bb878
Showing
8 changed files
with
3,041 additions
and
2,999 deletions.
There are no files selected for viewing
2,866 changes: 0 additions & 2,866 deletions
2,866
Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp
This file was deleted.
Oops, something went wrong.
2,817 changes: 2,807 additions & 10 deletions
2,817
Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
309 changes: 211 additions & 98 deletions
309
Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsStore.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters