summaryrefslogtreecommitdiffstats
path: root/media/base/cdm_callback_promise.cc
Commit message (Collapse)AuthorAgeFilesLines
* media: Reject pending CDM promise during destruction.xhwang2016-03-011-2/+9
| | | | | | | | | | | | There are legit cases where a CDM promise could be destructed before it's fulfilled. For example, a promise could be bound into a callback and the callback is dropped. BUG=585356 Review URL: https://codereview.chromium.org/1729063003 Cr-Commit-Position: refs/heads/master@{#378588}
* Switch to standard integer types in media/.Avi Drissman2015-12-191-1/+1
| | | | | | | | | BUG=138542 TBR=dalecurtis@chromium.org Review URL: https://codereview.chromium.org/1534273002 . Cr-Commit-Position: refs/heads/master@{#366242}
* Remove GetUsableKeyIds()jrummell2014-12-191-1/+0
| | | | | | | | | | | | As this was never called from blink, and is no longer part of the EME spec, removing this functionality. BUG=428384 TEST=existing EME tests pass Review URL: https://codereview.chromium.org/814083002 Cr-Commit-Position: refs/heads/master@{#309279}
* Refactor CdmPromise and related classesjrummell2014-10-071-0/+43
Move the implementation from CdmPromiseTemplate into a new templated class CdmCallbackPromise class. CdmResultPromise can now override resolve() and reject() without having to be concerned with the callbacks. Also convert the templates into variadic templates to avoid the specialization for <void> (now just <>). BUG=358271 TEST=existing EME tests still pass Review URL: https://codereview.chromium.org/604283003 Cr-Commit-Position: refs/heads/master@{#298554}