зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
fmp4_muxer | ||
ContainerWriter.h | ||
EncodedFrameContainer.h | ||
MediaEncoder.cpp | ||
MediaEncoder.h | ||
OmxTrackEncoder.cpp | ||
OmxTrackEncoder.h | ||
OpusTrackEncoder.cpp | ||
OpusTrackEncoder.h | ||
TrackEncoder.cpp | ||
TrackEncoder.h | ||
TrackMetadataBase.h | ||
VP8TrackEncoder.cpp | ||
VP8TrackEncoder.h | ||
moz.build |