mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
3e894ac30e
This commit wraps just enough of the mozStorage API to support the bookmarks mirror. It's not complete: for example, there's no way to open, clone, or close a connection, because the mirror handles that from JS. The wrapper also omits shutdown blocking and retrying on `SQLITE_BUSY`. This commit also changes the behavior of sync and async mozStorage connections. Async (`mozIStorageAsyncConnection`) methods may be called from any thread on any connection. Sync (`mozIStorageConnection`) methods may be called from any thread on a sync connection, and from background threads on an async connection. All connections now QI to `mozIStorageConnection`, but attempting to call a sync method on an async connection from the main thread throws. Finally, this commit exposes an `OpenedConnection::unsafeRawConnection` getter in Sqlite.jsm, for JS code to access the underlying connection. Differential Revision: https://phabricator.services.mozilla.com/D20073 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |