Bug 1405697 - Move MediaPrefs include from MediaResource.h into cpp file. r=jwwang draft
authorChris Pearce <cpearce@mozilla.com>
Thu, 05 Oct 2017 09:27:15 +0200
changeset 675498 84f9b98e3c64dc1a337a12b714fd4c8bc45429a1
parent 675490 7125dcf91c360e783f6ea6c4e425071c39cd85cf
child 734607 34d38536ee9beba45ab38afc3ba5ea2e8905eda4
push id83135
push userbmo:cpearce@mozilla.com
push dateThu, 05 Oct 2017 10:06:03 +0000
reviewersjwwang
bugs1405697
milestone58.0a1
Bug 1405697 - Move MediaPrefs include from MediaResource.h into cpp file. r=jwwang This moves the include into the file where it's used, and means I don't need to import it into gecko-media crate yet. MozReview-Commit-ID: JnEgtwnLxgO
dom/media/MediaResource.cpp
dom/media/MediaResource.h
dom/media/fmp4/MP4Decoder.cpp
dom/media/hls/HLSDecoder.h
--- a/dom/media/MediaResource.cpp
+++ b/dom/media/MediaResource.cpp
@@ -1,16 +1,17 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim:set ts=2 sw=2 sts=2 et cindent: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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 "MediaResource.h"
 #include "mozilla/DebugOnly.h"
+#include "MediaPrefs.h"
 #include "mozilla/Logging.h"
 #include "mozilla/SystemGroup.h"
 #include "mozilla/ErrorNames.h"
 
 using mozilla::media::TimeUnit;
 
 #undef ILOG
 
--- a/dom/media/MediaResource.h
+++ b/dom/media/MediaResource.h
@@ -3,17 +3,16 @@
  * 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/. */
 
 #if !defined(MediaResource_h_)
 #define MediaResource_h_
 
 #include "Intervals.h"
 #include "MediaData.h"
-#include "MediaPrefs.h"
 #include "mozilla/Attributes.h"
 #include "mozilla/GuardObjects.h"
 #include "mozilla/UniquePtr.h"
 #include "nsISeekableStream.h"
 #include "nsThreadUtils.h"
 
 namespace mozilla {
 
--- a/dom/media/fmp4/MP4Decoder.cpp
+++ b/dom/media/fmp4/MP4Decoder.cpp
@@ -1,16 +1,17 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim:set ts=2 sw=2 sts=2 et cindent: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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 "MP4Decoder.h"
 #include "MediaContainerType.h"
+#include "MediaPrefs.h"
 #include "MP4Demuxer.h"
 #include "nsMimeTypes.h"
 #include "VideoUtils.h"
 #include "PDMFactory.h"
 
 namespace mozilla {
 
 static bool
--- a/dom/media/hls/HLSDecoder.h
+++ b/dom/media/hls/HLSDecoder.h
@@ -3,16 +3,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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/. */
 
 #ifndef HLSDecoder_h_
 #define HLSDecoder_h_
 
 #include "MediaDecoder.h"
+#include "GeneratedJNIWrappers.h"
 
 namespace mozilla {
 
 class HLSResourceCallbacksSupport;
 
 class HLSDecoder final : public MediaDecoder
 {
 public: