Bug 1402824 - Add missing includes in PrioritizedEventQueue to fix non-unified build. r=billm
☠☠ backed out by 6baa4aec27ab ☠ ☠
authorPhilippe Normand <philn@igalia.com>
Mon, 25 Sep 2017 10:50:04 +0100
changeset 670572 ef139c527822ef3b5117439aa8cc3a5e396e5fa8
parent 670571 0ffa251376725d07041471ab8d343508d5c11525
child 670573 52d49783fdd03096c3dc7e57d7f4dc07bf8c7580
push id81678
push userkgupta@mozilla.com
push dateTue, 26 Sep 2017 17:28:53 +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 "mozilla/LabeledEventQueue.h"
 #include "mozilla/TimeStamp.h"
 #include "mozilla/TypeTraits.h"
 #include "mozilla/UniquePtr.h"
 #include "nsCOMPtr.h"
 #include "nsIIdlePeriod.h"
 
 class nsIRunnable;