Bug 1402824 - Add missing includes in PrioritizedEventQueue to fix non-unified build. r=billm draft
authorPhilippe Normand <philn@igalia.com>
Mon, 25 Sep 2017 10:50:04 +0100
changeset 670437 54b56317b2876db2ed679e9f47ffb87fdf83cdd2
parent 670436 671ffe885ae7220bff746d433f55196519d05b8c
child 670438 545e60bdec4e186a03cb20e342e561e104abcd98
push id81629
push userbmo:cpearce@mozilla.com
push dateTue, 26 Sep 2017 12:03:30 +0000
reviewersbillm
bugs1402824
milestone58.0a1
Bug 1402824 - Add missing includes in PrioritizedEventQueue to fix non-unified build. r=billm InputEventStatistics::Get() requires the InputEventStatistics.h #include. MakeScopeExit() requires the ScopeExit.h #include. LabeledEventQueue.h is required for the PrioritizedEventQueue class. MozReview-Commit-ID: 7gRwhV3YQXw
xpcom/threads/PrioritizedEventQueue.cpp
xpcom/threads/PrioritizedEventQueue.h
--- a/xpcom/threads/PrioritizedEventQueue.cpp
+++ b/xpcom/threads/PrioritizedEventQueue.cpp
@@ -1,18 +1,20 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* 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 "PrioritizedEventQueue.h"
 #include "mozilla/EventQueue.h"
+#include "mozilla/ScopeExit.h"
 #include "nsThreadManager.h"
 #include "nsXPCOMPrivate.h" // for gXPCOMThreadsShutDown
+#include "InputEventStatistics.h"
 
 using namespace mozilla;
 
 template<class InnerQueueT>
 PrioritizedEventQueue<InnerQueueT>::PrioritizedEventQueue(UniquePtr<InnerQueueT> aHighQueue,
                                                           UniquePtr<InnerQueueT> aInputQueue,
                                                           UniquePtr<InnerQueueT> aNormalQueue,
                                                           UniquePtr<InnerQueueT> aIdleQueue,
--- a/xpcom/threads/PrioritizedEventQueue.h
+++ b/xpcom/threads/PrioritizedEventQueue.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 mozilla_PrioritizedEventQueue_h
 #define mozilla_PrioritizedEventQueue_h
 
 #include "mozilla/AbstractEventQueue.h"
+#include "LabeledEventQueue.h"
 #include "mozilla/TimeStamp.h"
 #include "mozilla/TypeTraits.h"
 #include "mozilla/UniquePtr.h"
 #include "nsCOMPtr.h"
 #include "nsIIdlePeriod.h"
 
 class nsIRunnable;