gecko-dev/dom/media/mediasource
Gerald Squelart 1cc4e2c254 Bug 1329319 - Allow NewRunnableMethod to method of a non-refcounted base class - r=froydnj
This is done by storing the object pointer based on the exact pointee type,
instead of as hinted by the method-pointer, which could be a non-refcounted
base class.

The stored pointer type is statically-checked to be derived from (or the same
as) the class type from the method-pointer, to prevent misuses.

One change had to be done in TrackBuffersManager, as it was passing another
type and relying on implicit pointer conversions. A simple `.get()` to pass
the raw pointer type (to be stored in a RefPtr) fixed that one issue.

MozReview-Commit-ID: 4kH0XdjB5Rk

--HG--
extra : rebase_source : 40ad68820cfce469ecda272f430062f05dfcd09f
2017-01-10 10:49:08 +11:00
..
gtest Bug 1320895 - Test ADTS frame size calculation. r=gerald 2016-11-30 14:38:52 -08:00
test Bug 1319295. Part 3 - enable dormant for the test. r=jya 2016-12-20 17:05:25 +08:00
AsyncEventRunner.h Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
AutoTaskQueue.h Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-13 20:12:15 -07:00
ContainerParser.cpp Bug 1322587: [MSE] P2. Allow additional top-level boxes. r=gerald 2016-12-09 09:21:21 -10:00
ContainerParser.h Bug 1314533: [MSE] P6. Allow to detect error during preliminary container parsing. r=gerald 2016-11-04 23:09:47 +11:00
MediaSource.cpp Bug 1286738 - part4-fixWebMAudio: audio/webm doesn't need the IsWebMForced() check. r=jya 2016-10-26 17:31:22 +08:00
MediaSource.h Bug 1299072: P11. Use MediaResult with AppendBuffer promises. r=gerald 2016-09-12 08:54:10 +10:00
MediaSourceDecoder.cpp Bug 1298606: [MSE] P2. Properly determine next frame status in ended state. r=gerald 2016-08-27 22:27:22 +12:00
MediaSourceDecoder.h Bug 1311872. Part 1 - remove dormant code from MediaDecoder and its friends. We will let MDSM solely decide when to enter/exit dormant. r=cpearce,jya 2016-10-20 15:20:25 +08:00
MediaSourceDemuxer.cpp Bug 1313497 - Pass TimeUnit by const& in MediaDataDemuxer - r=jya 2016-11-13 15:13:51 +11:00
MediaSourceDemuxer.h Bug 1313497 - Pass TimeUnit by const& in MediaDataDemuxer - r=jya 2016-11-13 15:13:51 +11:00
MediaSourceResource.h
MediaSourceUtils.cpp
MediaSourceUtils.h
moz.build Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE 2016-09-21 08:44:11 +02:00
ResourceQueue.cpp Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
ResourceQueue.h
SourceBuffer.cpp Bug 1311872. Part 1 - remove dormant code from MediaDecoder and its friends. We will let MDSM solely decide when to enter/exit dormant. r=cpearce,jya 2016-10-20 15:20:25 +08:00
SourceBuffer.h Bug 1299072: P11. Use MediaResult with AppendBuffer promises. r=gerald 2016-09-12 08:54:10 +10:00
SourceBufferAttributes.h Bug 1259274: [MSE] P3. Refactor handling of tasks so they only ever run concurrently. r=gerald 2016-03-27 20:20:40 +11:00
SourceBufferList.cpp Bug 1297037: [MSE] Update Duration Change algorithm as per latest spec. r=gerald 2016-08-26 16:39:36 +12:00
SourceBufferList.h Bug 1297037: [MSE] Update Duration Change algorithm as per latest spec. r=gerald 2016-08-26 16:39:36 +12:00
SourceBufferResource.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
SourceBufferResource.h Bug 1296453: [MSE] P2. Clean up SourceBufferResource. r=gerald 2016-08-23 17:38:46 +12:00
SourceBufferTask.h Bug 1313497 - AppendBufferTask can take SourceBufferAttributes by const& - r=jya 2016-11-13 16:39:47 +11:00
TrackBuffersManager.cpp Bug 1329319 - Allow NewRunnableMethod to method of a non-refcounted base class - r=froydnj 2017-01-10 10:49:08 +11:00
TrackBuffersManager.h Bug 1313497 - Use InvokeAsync with Storages in TrackBuffersManager - r=jya 2016-11-13 16:37:24 +11:00