fune/mobile/android/android-components/docs
Lina Butler 9950994d0d Bug 1895171 - Queue outgoing synced tabs commands. r=markh,jonalmeida,007,android-reviewers
This commit adopts the new `RemoteCommandStore` interface to queue
and flush outgoing tab management commands. It works like this:

* `DeviceCommandQueue` provides a generic interface for
  queueing and flushing device commands. Any queueable command can
  implement the `DeviceCommandQueue.Type` marker interface.
* `RemoteTabsCommandQueue` specializes `DeviceCommandQueue` for
  remote tabs commands. The implementation wraps the Rust
  `RemoteCommandStore` interface.
* `SyncedTabsCommands` connects a `RemoteTabsCommandQueue`
  to an `FxaAccountManager` for sending the commands.
* `BackgroundServices` observes the `SyncedTabsCommands` queue, and
  schedules a `SyncedTabsCommandsFlushWorker` to flush the queue
  when a command is added.
* The synced tabs `DefaultPresenter` also observes the
  `SyncedTabsCommands` queue, and refreshes the list of tabs when
  the queue is updated.

The queue allows for retries if the command can't be sent, for eventual
expiration of commands that haven't been sent, and for undoing a close,
though the latter two aren't implemented in this commit.

Differential Revision: https://phabricator.services.mozilla.com/D210887
2024-06-01 02:15:15 +00:00
..
_archive
_data
_includes Bug 1881094 - 4. remove and revise prettier exclusions for firefox-android r=android-reviewers,frontend-codestyle-reviewers,gl,webcompat-reviewers,twisniewski 2024-05-07 20:24:38 +00:00
_layouts Bug 1881094 - 4. remove and revise prettier exclusions for firefox-android r=android-reviewers,frontend-codestyle-reviewers,gl,webcompat-reviewers,twisniewski 2024-05-07 20:24:38 +00:00
_posts
assets Bug 1881094 - 8. remove some eslint exclusions for firefox-android, using mach lint --fix r=android-reviewers,frontend-codestyle-reviewers,webcompat-reviewers,denschub,Gijs,gl 2024-05-14 13:59:26 +00:00
contribute Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl 2024-04-04 22:19:32 +00:00
rfcs Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl 2024-04-04 22:19:32 +00:00
ui
404.html
_config.yml
blog.md
changelog.md Bug 1895171 - Queue outgoing synced tabs commands. r=markh,jonalmeida,007,android-reviewers 2024-06-01 02:15:15 +00:00
changelog_archive.md
CNAME
components.md
contributing.md
Gemfile
Gemfile.lock
index.md