gecko-dev/dom/media/gtest
Andreas Pehrson be74876e25 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU

--HG--
extra : rebase_source : 296e269bb46fc5a85a9c3f90dfc0dc40e53572bc
2016-04-06 14:56:44 +02:00
..
dash_dashinit.mp4
GMPTestMonitor.h
hello.rs
id3v2header.mp3
mediasource_test.mp4
MockMediaDecoderOwner.h Bug 1246521: P1. Add MediaDecoderOwner::HasError method. r=gerald 2016-02-08 16:31:42 +11:00
MockMediaResource.cpp Bug 1254858: P4. Allow to pass mimetype in constructor. r=kentuckyfriedtakahe 2016-03-09 21:21:57 +11:00
MockMediaResource.h Bug 1254858: P4. Allow to pass mimetype in constructor. r=kentuckyfriedtakahe 2016-03-09 21:21:57 +11:00
moz.build Bug 1215115 - part3: Fix gtest. Remove TestVorbisTrackEncoder.cpp. r=rillian 2016-04-01 11:04:08 +08:00
noise_vbr.mp3
noise.mp3
short-zero-in-moov.mp4
short-zero-inband.mov Bug 1244523: [mp4] P4. Add gtest. r=kentuckyfriedtakahe 2016-02-02 16:27:49 +11:00
small-shot-false-positive.mp3 Bug 1256590 - Part 2 - Add a test case for skipping over false positive syncs at the beginning of an MP3 file. r=esawin 2016-03-20 22:08:45 +01:00
small-shot.mp3 Bug 1219178 - [6.1] Add small test file case. r=jya 2015-11-24 15:02:34 +01:00
test_case_1224361.vp8.ivf Bug 1224361 - Added vp8/ivf test case - r=rillian 2015-12-03 14:14:46 +11:00
test_case_1224363.vp8.ivf Bug 1224363 - Added vp8/ivf test case - r=rillian 2015-12-03 14:14:45 +11:00
test_case_1224369.vp8.ivf Bug 1224369 - p2: Added vp8/ivf test case - r=rillian 2015-12-03 14:14:46 +11:00
test.webm
TestAudioCompactor.cpp Bug 1240411: P9. Clean up media headers. r=jwwang 2016-01-19 19:47:36 +11:00
TestEME.cpp
TestGMPCrossOrigin.cpp Bug 1240411: P9. Clean up media headers. r=jwwang 2016-01-19 19:47:36 +11:00
TestGMPRemoveAndDelete.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TestGMPUtils.cpp
TestIntervalSet.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TestMediaDataDecoder.cpp Bug 1254858: P6. Add VP9 decoding gtest. r=kentuckyfriedtakahe 2016-03-10 11:53:39 +11:00
TestMediaEventSource.cpp Bug 1219984. Part 2 - add support for multiple arguments. r=kinetik. 2015-11-02 10:48:01 +08:00
TestMediaFormatReader.cpp Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
TestMozPromise.cpp Bug 1250829 - add customized assertions for completion promises to facilitate promise chaining. r=bobbyholley. 2016-03-18 11:27:19 +08:00
TestMP3Demuxer.cpp Bug 1256590 - Part 2 - Add a test case for skipping over false positive syncs at the beginning of an MP3 file. r=esawin 2016-03-20 22:08:45 +01:00
TestMP4Demuxer.cpp Bug 1255626: [gtest] Properly shutdown task queue should error occurs. r=gerald 2016-03-11 11:19:45 +11:00
TestMP4Reader.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TestRust.cpp
TestTimeUnit.cpp Bug 1222866: P2. Add gtest checking on seconds -> microseconds -> seconds. r=gerald 2015-11-20 22:59:51 +11:00
TestTrackEncoder.cpp
TestVideoSegment.cpp Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup 2016-04-06 14:56:44 +02:00
TestVideoTrackEncoder.cpp Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup 2016-04-06 14:56:44 +02:00
TestVPXDecoding.cpp Bug 1224361 - Added vp8/ivf test case - r=rillian 2015-12-03 14:14:46 +11:00
TestWebMBuffered.cpp Bug 1231855 - Avoid inserting out of (timecode) order entries in WebMBufferedParser. r=jya 2016-01-05 14:50:50 +13:00
TestWebMWriter.cpp Bug 1215115 - part3: Fix gtest. Remove TestVorbisTrackEncoder.cpp. r=rillian 2016-04-01 11:04:08 +08:00