Bug 1383628. P3 - devirtualize Load() which has no overrides. draft
authorJW Wang <jwwang@mozilla.com>
Thu, 03 Aug 2017 17:48:26 +0800
changeset 642341 3265d73695a18ad24d63b82042936856ad1a8d5c
parent 642340 0d9dfe70507aec20bf54a7bce9d75b28c389af95
child 642342 0adc20143b54947770fc8f5f0c54e83423c510d6
push id72707
push userjwwang@mozilla.com
push dateTue, 08 Aug 2017 02:32:36 +0000
bugs1383628
milestone57.0a1
Bug 1383628. P3 - devirtualize Load() which has no overrides. MozReview-Commit-ID: EZ9jcHiWGZb
dom/media/ChannelMediaDecoder.h
--- a/dom/media/ChannelMediaDecoder.h
+++ b/dom/media/ChannelMediaDecoder.h
@@ -62,21 +62,21 @@ public:
 
   MediaResource* GetResource() const override final;
 
   void Shutdown() override;
 
   // Create a new decoder of the same type as this one.
   already_AddRefed<ChannelMediaDecoder> Clone(MediaDecoderInit& aInit);
 
-  virtual nsresult Load(nsIChannel* aChannel,
-                        bool aIsPrivateBrowsing,
-                        nsIStreamListener** aStreamListener);
+  nsresult Load(nsIChannel* aChannel,
+                bool aIsPrivateBrowsing,
+                nsIStreamListener** aStreamListener);
 
 private:
   virtual ChannelMediaDecoder* CloneImpl(MediaDecoderInit& aInit) = 0;
   nsresult OpenResource(nsIStreamListener** aStreamListener);
-  virtual nsresult Load(MediaResource* aOriginal);
+  nsresult Load(MediaResource* aOriginal);
 };
 
 } // namespace mozilla
 
 #endif // ChannelMediaDecoder_h_