mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
be74876e25
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 |
||
---|---|---|
.. | ||
dash_dashinit.mp4 | ||
GMPTestMonitor.h | ||
hello.rs | ||
id3v2header.mp3 | ||
mediasource_test.mp4 | ||
MockMediaDecoderOwner.h | ||
MockMediaResource.cpp | ||
MockMediaResource.h | ||
moz.build | ||
noise_vbr.mp3 | ||
noise.mp3 | ||
short-zero-in-moov.mp4 | ||
short-zero-inband.mov | ||
small-shot-false-positive.mp3 | ||
small-shot.mp3 | ||
test_case_1224361.vp8.ivf | ||
test_case_1224363.vp8.ivf | ||
test_case_1224369.vp8.ivf | ||
test.webm | ||
TestAudioCompactor.cpp | ||
TestEME.cpp | ||
TestGMPCrossOrigin.cpp | ||
TestGMPRemoveAndDelete.cpp | ||
TestGMPUtils.cpp | ||
TestIntervalSet.cpp | ||
TestMediaDataDecoder.cpp | ||
TestMediaEventSource.cpp | ||
TestMediaFormatReader.cpp | ||
TestMozPromise.cpp | ||
TestMP3Demuxer.cpp | ||
TestMP4Demuxer.cpp | ||
TestMP4Reader.cpp | ||
TestRust.cpp | ||
TestTimeUnit.cpp | ||
TestTrackEncoder.cpp | ||
TestVideoSegment.cpp | ||
TestVideoTrackEncoder.cpp | ||
TestVPXDecoding.cpp | ||
TestWebMBuffered.cpp | ||
TestWebMWriter.cpp |