Bug 1394656 - Don't include nsCOMPtr.h in SharedBuffer.h as its unused. r?jwwang draft
authorChris Pearce <cpearce@mozilla.com>
Tue, 29 Aug 2017 11:09:06 +1200
changeset 654654 c856befc4acf5a93e2c292a607662d4781dd3847
parent 654653 3b321db0b68033752e2387c3ffe3c1b803fe34dc
child 654658 9ccebe257a18d7f39fb320895462372721af3774
push id76631
push userbmo:cpearce@mozilla.com
push dateTue, 29 Aug 2017 03:05:23 +0000
reviewersjwwang
bugs1394656
milestone57.0a1
Bug 1394656 - Don't include nsCOMPtr.h in SharedBuffer.h as its unused. r?jwwang Including nsCOMPtr also pulls in cycle collection stuff, which complicates the include graph. MozReview-Commit-ID: 7YqrkwrVfds
dom/media/SharedBuffer.h
--- a/dom/media/SharedBuffer.h
+++ b/dom/media/SharedBuffer.h
@@ -3,17 +3,18 @@
  * 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 MOZILLA_SHAREDBUFFER_H_
 #define MOZILLA_SHAREDBUFFER_H_
 
 #include "mozilla/CheckedInt.h"
 #include "mozilla/mozalloc.h"
-#include "nsCOMPtr.h"
+#include "mozilla/MemoryReporting.h"
+#include "nsISupportsImpl.h"
 
 namespace mozilla {
 
 class AudioBlockBuffer;
 
 /**
  * Base class for objects with a thread-safe refcount and a virtual
  * destructor.