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:
Alastor Wu 2019-09-24 06:55:33 +00:00
Родитель 6b7faa2225
Коммит c829506a99
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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;