Bug 1273390. Part 1 - move some functions to private. r=jya. draft 1273390_WaveDataDecoder_Flush
authorJW Wang <jwwang@mozilla.com>
Tue, 17 May 2016 14:35:42 +0800
branch1273390_WaveDataDecoder_Flush
changeset 367669 0f9cf8926c0add19fd65685fe3101935b64b039e
parent 367573 a884b96685aa13b65601feddb24e5f85ba861561
child 367670 a0d552c74f1b5839daaeb52de092b81935aea1cf
push id18315
push userjwwang@mozilla.com
push dateTue, 17 May 2016 06:58:32 +0000
reviewersjya
bugs1273390
milestone49.0a1
Bug 1273390. Part 1 - move some functions to private. r=jya. MozReview-Commit-ID: 4t2j5H9kh6
dom/media/platforms/agnostic/WAVDecoder.h
--- 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