gecko-dev/services/sync/modules/engines
Lina Cambridge 6245c3b363 Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly
The tracker base class currently does two things: bump the score in
response to observer notifications, and store a list of changed IDs.
The bookmarks, form autofill, and now bridged trackers need to hack
around this to opt out of persistence, since they handle change
tracking in the storage layer.

This commit keeps the score logic in `Tracker`, but moves all the
persistence code into an intermediate `LegacyTracker` class, and
changes all engines that need persistence to inherit from it.

`ignoreAll` is more interesting. We want new-style stores to emit
observer notifications with change sources, so that the tracker knows
to ignore changes made by Sync. Ignoring all observer notifications
during a sync is a blunter version of this. But, not every new store
supports change sources, so we reimplement `ignoreAll` manually for
ones that don't.

Differential Revision: https://phabricator.services.mozilla.com/D74374
2020-05-13 03:56:53 +00:00
..
addons.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
bookmarks.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
clients.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
extension-storage.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
forms.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
history.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
passwords.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
prefs.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00
tabs.js Bug 1636365 - Split out persistence from Tracker into LegacyTracker. r=markh,rfkelly 2020-05-13 03:56:53 +00:00