Bug 1580659 - part1 : use AudioChannelAgent directly. r=chunmin

`nsIAudioChannelAgent` was created a common interface for a usage of in both js and C++ before, now we have no any JS code would use `nsIAudioChannelAgent`, it's only used in C++ code.

Therefore, in a coming refactoring (bug1580662), we will remove `nsIAudioChannelAgent` and use `AudioChannelAgent` as the only interface. Here we can make these classes start to reference `AudioChannelAgent`, instead of `nsIAudioChannelAgent`.

Differential Revision: https://phabricator.services.mozilla.com/D45748

--HG--
extra : moz-landing-system : lando
This commit is contained in:
alwu 2019-09-24 06:55:29 +00:00
Родитель b6a02eb65b
Коммит ba0d878e47
6 изменённых файлов: 6 добавлений и 9 удалений

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

@ -13,7 +13,6 @@
#include "mozilla/dom/OfflineAudioCompletionEvent.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/BaseAudioContextBinding.h"
#include "AudioChannelAgent.h"
#include "AudioChannelService.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"

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

@ -9,7 +9,7 @@
#include "AudioChannelService.h"
#include "AudioNode.h"
#include "nsIAudioChannelAgent.h"
#include "AudioChannelAgent.h"
#include "mozilla/TimeStamp.h"
namespace mozilla {
@ -80,7 +80,7 @@ class AudioDestinationNode final : public AudioNode,
SelfReference<AudioDestinationNode> mOfflineRenderingRef;
uint32_t mFramesToProduce;
nsCOMPtr<nsIAudioChannelAgent> mAudioChannelAgent;
RefPtr<AudioChannelAgent> mAudioChannelAgent;
RefPtr<MediaInputPort> mCaptureStreamPort;
RefPtr<Promise> mOfflineRenderingPromise;

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

@ -4,7 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "AudioChannelAgent.h"
#include "AudioChannelService.h"
#include "AudioSegment.h"
#include "nsSpeechTask.h"

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

@ -8,7 +8,7 @@
#define mozilla_dom_nsSpeechTask_h
#include "SpeechSynthesisUtterance.h"
#include "nsIAudioChannelAgent.h"
#include "AudioChannelAgent.h"
#include "nsISpeechService.h"
namespace mozilla {
@ -109,7 +109,7 @@ class nsSpeechTask : public nsISpeechTask,
nsCOMPtr<nsISpeechTaskCallback> mCallback;
nsCOMPtr<nsIAudioChannelAgent> mAudioChannelAgent;
RefPtr<mozilla::dom::AudioChannelAgent> mAudioChannelAgent;
RefPtr<SpeechSynthesis> mSpeechSynthesis;

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

@ -34,7 +34,6 @@
#include "nsILoadContext.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/HTMLObjectElementBinding.h"
#include "AudioChannelAgent.h"
#include "AudioChannelService.h"
using namespace mozilla;

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

@ -17,7 +17,7 @@
#include "nsHashKeys.h"
#include <prinrval.h>
#include "js/TypeDecls.h"
#include "nsIAudioChannelAgent.h"
#include "AudioChannelAgent.h"
#include "mozilla/EventForwards.h"
#include "mozilla/TimeStamp.h"
@ -297,7 +297,7 @@ class nsNPAPIPluginInstance final
char** mCachedParamNames;
char** mCachedParamValues;
nsCOMPtr<nsIAudioChannelAgent> mAudioChannelAgent;
RefPtr<mozilla::dom::AudioChannelAgent> mAudioChannelAgent;
bool mMuted;
};