Bug 1447091: Add #includes to fix non-unified bustage in dom/media. r?gerald draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 19 Mar 2018 11:48:38 -0700
changeset 769527 55ab2e47a69adce6df3adbc226b22d6d70c2e764
parent 769526 5765153afa5bb69b25e05798859522269e0fd365
push id103158
push userdholbert@mozilla.com
push dateMon, 19 Mar 2018 18:48:51 +0000
reviewersgerald
bugs1447091
milestone61.0a1
Bug 1447091: Add #includes to fix non-unified bustage in dom/media. r?gerald This fixes these two errors: FileMediaResource.cpp:30:36: error: invalid use of incomplete type ‘class mozilla::AbstractThread’ mCallback->AbstractMainThread()->Dispatch( MediaTimer.cpp:50:3: error: ‘Unused’ was not declared in this scope Unused << rv; MozReview-Commit-ID: WkPZc22dMF
dom/media/FileMediaResource.cpp
dom/media/MediaTimer.cpp
--- a/dom/media/FileMediaResource.cpp
+++ b/dom/media/FileMediaResource.cpp
@@ -1,15 +1,16 @@
 /* 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 "FileMediaResource.h"
 
+#include "mozilla/AbstractThread.h"
 #include "nsContentUtils.h"
 #include "nsHostObjectProtocolHandler.h"
 #include "nsIFileChannel.h"
 #include "nsIFileStreams.h"
 #include "nsNetUtil.h"
 
 namespace mozilla {
 
--- a/dom/media/MediaTimer.cpp
+++ b/dom/media/MediaTimer.cpp
@@ -4,16 +4,17 @@
  * 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 "MediaTimer.h"
 
 #include "mozilla/DebugOnly.h"
 #include "mozilla/RefPtr.h"
 #include "mozilla/SharedThreadPool.h"
+#include "mozilla/Unused.h"
 #include "nsComponentManagerUtils.h"
 #include "nsThreadUtils.h"
 #include <math.h>
 
 namespace mozilla {
 
 NS_IMPL_ADDREF(MediaTimer)
 NS_IMPL_RELEASE_WITH_DESTROY(MediaTimer, DispatchDestroy())