gecko-dev/dom/u2f
J.C. Jones 4b548ed05e Bug 1297552 - Use MozPromise to run U2F operations in parallel. r=keeler
This patch sets up the U2F system to support multiple nsIU2FToken
"authenticators" simultaneously, such as having both a USB and a Bluetooth Smart
implementation enabled at the same time. It also paves the way to support
timeout interruptions (for Bug 1301793).

- Executes operations across a list of authenticators.
- Uses runnables, via MozPromise and SharedThreadPool.
- Remove nsNSSShutDownPreventionLock from U2F*Task and move to U2F*Runnable
- Review updates
- Some of the review updates from earlier changeset are ... painful to merge
  back before this one, so I'm just tacking them on here.

It's still missing some things, though:
- It's not actually executing the operations in parallel yet, as invoking
  methods on NSSU2FTokenRemote from a worker thread throws exceptions while
  obtaining ContentChild::GetSingleton().

MozReview-Commit-ID: EUdZQesASo2
***
Bug 1297552 - Updates per review r?keeler


MozReview-Commit-ID: EHIWM74tfYG

--HG--
extra : transplant_source : %F9%9E%9E%5B7%19R0%7D%C1%B1%FB%BD%97%26%B2%A3%9CTg
2016-10-12 20:56:56 -07:00
..
tests Bug 1297552 - Only permit U2F operations in e10s mode r=keeler 2016-10-07 17:28:52 -07:00
NSSU2FTokenRemote.cpp Bug 1275479 - Refactor U2F Token Interface (Part 1). r=keeler 2016-05-31 20:51:24 -07:00
NSSU2FTokenRemote.h Bug 1297552 - Use MozPromise to run U2F operations in parallel. r=keeler 2016-10-12 20:56:56 -07:00
U2F.cpp Bug 1297552 - Use MozPromise to run U2F operations in parallel. r=keeler 2016-10-12 20:56:56 -07:00
U2F.h Bug 1297552 - Use MozPromise to run U2F operations in parallel. r=keeler 2016-10-12 20:56:56 -07:00
USBToken.cpp
USBToken.h
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00