Bug 1273390. Part 1 - move some functions to private. r=jya.
MozReview-Commit-ID: 4t2j5H9kh6
--- a/dom/media/platforms/agnostic/WAVDecoder.h
+++ b/dom/media/platforms/agnostic/WAVDecoder.h
@@ -14,35 +14,35 @@ namespace mozilla {
class WaveDataDecoder : public MediaDataDecoder
{
public:
WaveDataDecoder(const AudioInfo& aConfig,
FlushableTaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback);
+ // Return true if mimetype is Wave
+ static bool IsWave(const nsACString& aMimeType);
+
+private:
RefPtr<InitPromise> Init() override;
nsresult Input(MediaRawData* aSample) override;
nsresult Flush() override;
nsresult Drain() override;
nsresult Shutdown() override;
const char* GetDescriptionName() const override
{
return "wave audio decoder";
}
- // Return true if mimetype is Wave
- static bool IsWave(const nsACString& aMimeType);
-
-private:
void Decode (MediaRawData* aSample);
bool DoDecode (MediaRawData* aSample);
void DoDrain ();
const AudioInfo& mInfo;
RefPtr<FlushableTaskQueue> mTaskQueue;
MediaDataDecoderCallback* mCallback;
int64_t mFrames;
};
} // namespace mozilla
-#endif
\ No newline at end of file
+#endif