зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1580659 - part8 : trimming public methods of AudioChannelAgent. r=chunmin
To hide some functions from `AudioChannelAgent` to avoid an access from `AudioChannelAgentCallback` (eg. media element, audio destination node...), and only allow `AudioChannelService` to use those functions. Differential Revision: https://phabricator.services.mozilla.com/D45755 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6b7faa2225
Коммит
c829506a99
|
@ -37,14 +37,7 @@ class AudioChannelAgent : public nsIAudioChannelAgent {
|
|||
// should apply mute state to its callback.
|
||||
void PullInitialUpdate();
|
||||
|
||||
void WindowVolumeChanged(float aVolume, bool aMuted);
|
||||
void WindowSuspendChanged(nsSuspendedTypes aSuspend);
|
||||
void WindowAudioCaptureChanged(uint64_t aInnerWindowID, bool aCapture);
|
||||
|
||||
nsPIDOMWindowOuter* Window() const { return mWindow; }
|
||||
|
||||
uint64_t WindowID() const;
|
||||
uint64_t InnerWindowID() const;
|
||||
|
||||
bool IsWindowAudioCapturingEnabled() const;
|
||||
bool IsPlayingStarted() const;
|
||||
|
@ -53,6 +46,13 @@ class AudioChannelAgent : public nsIAudioChannelAgent {
|
|||
private:
|
||||
virtual ~AudioChannelAgent();
|
||||
|
||||
friend class AudioChannelService;
|
||||
void WindowVolumeChanged(float aVolume, bool aMuted);
|
||||
void WindowSuspendChanged(nsSuspendedTypes aSuspend);
|
||||
void WindowAudioCaptureChanged(uint64_t aInnerWindowID, bool aCapture);
|
||||
|
||||
nsPIDOMWindowOuter* Window() const { return mWindow; }
|
||||
uint64_t InnerWindowID() const;
|
||||
AudioPlaybackConfig GetMediaConfig() const;
|
||||
bool IsDisposableSuspend(nsSuspendedTypes aSuspend) const;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче