diff --git a/dom/animation/KeyframeEffect.cpp b/dom/animation/KeyframeEffect.cpp index 515ea866256b..0cf2eae4ab3d 100644 --- a/dom/animation/KeyframeEffect.cpp +++ b/dom/animation/KeyframeEffect.cpp @@ -36,7 +36,6 @@ #include "nsCSSPseudoElements.h" // For PseudoStyleType #include "nsDOMMutationObserver.h" // For nsAutoAnimationMutationBatch #include "nsIFrame.h" -#include "nsIScriptError.h" #include "nsPresContextInlines.h" #include "nsRefreshDriver.h" diff --git a/dom/audiochannel/AudioChannelAgent.cpp b/dom/audiochannel/AudioChannelAgent.cpp index a1a2458e5cdb..83fa59e9d5be 100644 --- a/dom/audiochannel/AudioChannelAgent.cpp +++ b/dom/audiochannel/AudioChannelAgent.cpp @@ -8,7 +8,6 @@ #include "nsContentUtils.h" #include "mozilla/dom/Document.h" #include "nsPIDOMWindow.h" -#include "nsIURI.h" using namespace mozilla::dom; diff --git a/dom/audiochannel/AudioChannelService.cpp b/dom/audiochannel/AudioChannelService.cpp index d74225692f7a..dbef58744257 100644 --- a/dom/audiochannel/AudioChannelService.cpp +++ b/dom/audiochannel/AudioChannelService.cpp @@ -13,7 +13,6 @@ #include "mozilla/Unused.h" #include "nsContentUtils.h" -#include "nsIScriptSecurityManager.h" #include "nsISupportsPrimitives.h" #include "nsThreadUtils.h" #include "nsHashPropertyBag.h" diff --git a/dom/base/BarProps.cpp b/dom/base/BarProps.cpp index 952830df9103..4c7cf1b7acd8 100644 --- a/dom/base/BarProps.cpp +++ b/dom/base/BarProps.cpp @@ -8,7 +8,6 @@ #include "mozilla/dom/BarPropBinding.h" #include "nsContentUtils.h" #include "nsGlobalWindow.h" -#include "nsIDocShell.h" #include "nsIScrollable.h" #include "nsIWebBrowserChrome.h" diff --git a/dom/base/CharacterData.cpp b/dom/base/CharacterData.cpp index 3cdfc9d4bcc7..d9a385eb96a2 100644 --- a/dom/base/CharacterData.cpp +++ b/dom/base/CharacterData.cpp @@ -23,7 +23,6 @@ #include "mozilla/dom/Document.h" #include "nsReadableUtils.h" #include "mozilla/InternalMutationEvent.h" -#include "nsIURI.h" #include "nsCOMPtr.h" #include "nsDOMString.h" #include "nsChangeHint.h" diff --git a/dom/base/ContentProcessMessageManager.h b/dom/base/ContentProcessMessageManager.h index 0cd193f37c51..a86022a2857e 100644 --- a/dom/base/ContentProcessMessageManager.h +++ b/dom/base/ContentProcessMessageManager.h @@ -13,8 +13,6 @@ #include "nsFrameMessageManager.h" #include "nsIScriptContext.h" #include "nsIScriptContext.h" -#include "nsIClassInfo.h" -#include "nsIRunnable.h" #include "nsServiceManagerUtils.h" #include "nsWeakReference.h" #include "nsWrapperCache.h" diff --git a/dom/base/DOMParser.cpp b/dom/base/DOMParser.cpp index 83d158d6c30a..9e52f954c376 100644 --- a/dom/base/DOMParser.cpp +++ b/dom/base/DOMParser.cpp @@ -12,8 +12,6 @@ #include "SystemPrincipal.h" #include "nsIStreamListener.h" #include "nsStringStream.h" -#include "nsIScriptError.h" -#include "nsIScriptSecurityManager.h" #include "nsCRT.h" #include "nsStreamUtils.h" #include "nsContentUtils.h" diff --git a/dom/base/DispatcherTrait.cpp b/dom/base/DispatcherTrait.cpp index 9d2bdb57550d..aea3e53bf33c 100644 --- a/dom/base/DispatcherTrait.cpp +++ b/dom/base/DispatcherTrait.cpp @@ -8,7 +8,6 @@ #include "mozilla/AbstractThread.h" #include "mozilla/SchedulerGroup.h" -#include "nsINamed.h" using namespace mozilla; using namespace mozilla::dom; diff --git a/dom/base/DocGroup.cpp b/dom/base/DocGroup.cpp index 565d2fb7a40c..69691f287760 100644 --- a/dom/base/DocGroup.cpp +++ b/dom/base/DocGroup.cpp @@ -12,7 +12,6 @@ #include "mozilla/ThrottledEventQueue.h" #include "mozilla/StaticPrefs_dom.h" #include "mozilla/Telemetry.h" -#include "nsIDocShell.h" #include "nsDOMMutationObserver.h" #include "nsProxyRelease.h" #if defined(XP_WIN) diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index 1f98f8fa0181..95b7300e6a9e 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -138,7 +138,6 @@ #include "mozilla/dom/PromiseNativeHandler.h" #include "mozilla/dom/TreeWalker.h" -#include "nsIServiceManager.h" #include "mozilla/dom/ServiceWorkerManager.h" #include "imgLoader.h" @@ -176,7 +175,6 @@ #include "nsPIDOMWindow.h" #include "nsFocusManager.h" -#include "nsICookiePermission.h" #include "nsICookieService.h" #include "nsBidiUtils.h" @@ -198,7 +196,6 @@ #include "nsDOMCID.h" #include "jsapi.h" -#include "nsIXPConnect.h" #include "xpcpublic.h" #include "nsCCUncollectableMarker.h" #include "nsIContentPolicy.h" @@ -256,7 +253,6 @@ #include "mozilla/Preferences.h" -#include "imgILoader.h" #include "imgRequestProxy.h" #include "nsWrapperCacheInlines.h" #include "nsSandboxFlags.h" @@ -295,12 +291,10 @@ #include "nsIDocumentEncoder.h" #include "nsIDocumentActivity.h" #include "nsIStructuredCloneContainer.h" -#include "nsIMutableArray.h" #include "mozilla/dom/DOMStringList.h" #include "nsWindowSizes.h" #include "mozilla/dom/Location.h" #include "mozilla/dom/FontFaceSet.h" -#include "nsISupportsPrimitives.h" #include "mozilla/ServoStyleSet.h" #include "mozilla/StyleSheet.h" #include "mozilla/StyleSheetInlines.h" diff --git a/dom/base/Document.h b/dom/base/Document.h index 04dc98c4a8ce..87e7164d84c1 100644 --- a/dom/base/Document.h +++ b/dom/base/Document.h @@ -30,10 +30,8 @@ #include "nsIProgressEventSink.h" #include "nsIRadioGroupContainer.h" #include "nsIScriptObjectPrincipal.h" -#include "nsIScriptGlobalObject.h" // for member (in nsCOMPtr) -#include "nsIServiceManager.h" -#include "nsIURI.h" // for use in inline functions -#include "nsIUUIDGenerator.h" +#include "nsIScriptGlobalObject.h" // for member (in nsCOMPtr) +#include "nsIURI.h" // for use in inline functions #include "nsIWebProgressListener.h" // for nsIWebProgressListener #include "nsIWeakReferenceUtils.h" // for nsWeakPtr #include "nsPIDOMWindow.h" // for use in inline functions @@ -88,7 +86,6 @@ class imgIRequest; class nsCachableElementsByNameNodeList; class nsCommandManager; class nsContentList; -class nsIDocShell; class nsDocShell; class nsDOMNavigationTiming; class nsFrameLoader; diff --git a/dom/base/DocumentType.cpp b/dom/base/DocumentType.cpp index c8f9f647305d..c0133bb1d8fc 100644 --- a/dom/base/DocumentType.cpp +++ b/dom/base/DocumentType.cpp @@ -13,7 +13,6 @@ #include "nsCOMPtr.h" #include "nsDOMString.h" #include "nsNodeInfoManager.h" -#include "nsIXPConnect.h" #include "xpcpublic.h" #include "nsWrapperCacheInlines.h" #include "mozilla/dom/DocumentTypeBinding.h" diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index f3f7e3050321..a38100922909 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -35,7 +35,6 @@ #include "nsFlexContainerFrame.h" #include "nsFocusManager.h" #include "nsIScriptGlobalObject.h" -#include "nsIURL.h" #include "nsContainerFrame.h" #include "nsIAnonymousContentCreator.h" #include "nsPresContext.h" @@ -43,7 +42,6 @@ #include "nsString.h" #include "nsUnicharUtils.h" #include "nsDOMCID.h" -#include "nsIServiceManager.h" #include "nsDOMCSSAttrDeclaration.h" #include "nsNameSpaceManager.h" #include "nsContentList.h" @@ -51,7 +49,6 @@ #include "nsDOMTokenList.h" #include "nsError.h" #include "nsDOMString.h" -#include "nsIScriptSecurityManager.h" #include "mozilla/dom/AnimatableBinding.h" #include "mozilla/dom/FeaturePolicyUtils.h" #include "mozilla/dom/HTMLDivElement.h" @@ -103,16 +100,11 @@ #include "nsGkAtoms.h" #include "ChildIterator.h" -#include "nsIDOMEventListener.h" -#include "nsIWebNavigation.h" -#include "nsIBaseWindow.h" #include "nsIWidget.h" #include "nsNodeInfoManager.h" -#include "nsICategoryManager.h" #include "nsGenericHTMLElement.h" #include "nsContentCreatorFunctions.h" -#include "nsIControllers.h" #include "nsView.h" #include "nsViewManager.h" #include "nsIScrollableFrame.h" @@ -164,7 +156,6 @@ #include "nsIAutoCompletePopup.h" #include "nsISpeculativeConnect.h" -#include "nsIIOService.h" #include "nsBlockFrame.h" #include "DOMMatrix.h" diff --git a/dom/base/EventSource.cpp b/dom/base/EventSource.cpp index cf218544f754..dc03d1e4f7c1 100644 --- a/dom/base/EventSource.cpp +++ b/dom/base/EventSource.cpp @@ -39,7 +39,6 @@ #include "nsIThreadRetargetableRequest.h" #include "nsIAsyncVerifyRedirectCallback.h" #include "nsIScriptError.h" -#include "nsIContentSecurityPolicy.h" #include "nsContentUtils.h" #include "mozilla/Preferences.h" #include "xpcpublic.h" diff --git a/dom/base/EventSource.h b/dom/base/EventSource.h index a9f89cfe7adc..0cb8218f6e4e 100644 --- a/dom/base/EventSource.h +++ b/dom/base/EventSource.h @@ -16,12 +16,6 @@ #include "mozilla/Attributes.h" #include "mozilla/DOMEventTargetHelper.h" -#include "nsIObserver.h" -#include "nsIStreamListener.h" -#include "nsIChannelEventSink.h" -#include "nsIInterfaceRequestor.h" -#include "nsITimer.h" -#include "nsIHttpChannel.h" #include "nsDeque.h" class nsIGlobalObject; diff --git a/dom/base/FragmentOrElement.cpp b/dom/base/FragmentOrElement.cpp index 3f96f568a525..5efe1fe85ab3 100644 --- a/dom/base/FragmentOrElement.cpp +++ b/dom/base/FragmentOrElement.cpp @@ -39,7 +39,6 @@ #include "nsIDocumentEncoder.h" #include "nsFocusManager.h" #include "nsIScriptGlobalObject.h" -#include "nsIURL.h" #include "nsNetUtil.h" #include "nsIFrame.h" #include "nsIAnonymousContentCreator.h" @@ -48,14 +47,12 @@ #include "nsString.h" #include "nsUnicharUtils.h" #include "nsDOMCID.h" -#include "nsIServiceManager.h" #include "nsDOMCSSAttrDeclaration.h" #include "nsNameSpaceManager.h" #include "nsContentList.h" #include "nsDOMTokenList.h" #include "nsError.h" #include "nsDOMString.h" -#include "nsIScriptSecurityManager.h" #include "mozilla/InternalMutationEvent.h" #include "mozilla/MouseEvents.h" #include "nsAttrValueOrString.h" @@ -78,16 +75,11 @@ #include "nsContentCID.h" #include "nsWindowSizes.h" -#include "nsIDOMEventListener.h" -#include "nsIWebNavigation.h" -#include "nsIBaseWindow.h" #include "nsIWidget.h" #include "nsNodeInfoManager.h" -#include "nsICategoryManager.h" #include "nsGenericHTMLElement.h" #include "nsContentCreatorFunctions.h" -#include "nsIControllers.h" #include "nsView.h" #include "nsViewManager.h" #include "nsIScrollableFrame.h" @@ -104,7 +96,6 @@ #include "nsWrapperCacheInlines.h" #include "nsCycleCollector.h" #include "xpcpublic.h" -#include "nsIScriptError.h" #include "mozilla/Telemetry.h" #include "mozilla/CORSMode.h" diff --git a/dom/base/FuzzingFunctions.cpp b/dom/base/FuzzingFunctions.cpp index 5e88b6e878f6..6415045c9272 100644 --- a/dom/base/FuzzingFunctions.cpp +++ b/dom/base/FuzzingFunctions.cpp @@ -8,7 +8,6 @@ #include "nsJSEnvironment.h" #include "js/GCAPI.h" -#include "mozIDOMWindow.h" #include "mozilla/dom/KeyboardEvent.h" #include "mozilla/ErrorResult.h" #include "mozilla/TextEvents.h" diff --git a/dom/base/IdleRequest.cpp b/dom/base/IdleRequest.cpp index 1d0c37dc324e..2530f7f83db0 100644 --- a/dom/base/IdleRequest.cpp +++ b/dom/base/IdleRequest.cpp @@ -13,7 +13,6 @@ #include "mozilla/dom/WindowBinding.h" #include "nsComponentManagerUtils.h" #include "nsGlobalWindow.h" -#include "nsISupportsPrimitives.h" #include "nsPIDOMWindow.h" namespace mozilla { diff --git a/dom/base/IdleRequest.h b/dom/base/IdleRequest.h index 0b89be731cc5..2761da79f6d2 100644 --- a/dom/base/IdleRequest.h +++ b/dom/base/IdleRequest.h @@ -14,7 +14,6 @@ #include "nsCycleCollectionParticipant.h" #include "nsDOMNavigationTiming.h" #include "nsICancelableRunnable.h" -#include "nsIRunnable.h" #include "nsString.h" class nsPIDOMWindowInner; diff --git a/dom/base/InProcessBrowserChildMessageManager.cpp b/dom/base/InProcessBrowserChildMessageManager.cpp index e12d33351be6..b298255e14da 100644 --- a/dom/base/InProcessBrowserChildMessageManager.cpp +++ b/dom/base/InProcessBrowserChildMessageManager.cpp @@ -7,10 +7,7 @@ #include "InProcessBrowserChildMessageManager.h" #include "nsContentUtils.h" #include "nsDocShell.h" -#include "nsIScriptSecurityManager.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsIComponentManager.h" -#include "nsIServiceManager.h" #include "nsComponentManagerUtils.h" #include "nsFrameLoader.h" #include "nsFrameLoaderOwner.h" diff --git a/dom/base/InProcessBrowserChildMessageManager.h b/dom/base/InProcessBrowserChildMessageManager.h index 9711504be8f2..1a3dc22c9b24 100644 --- a/dom/base/InProcessBrowserChildMessageManager.h +++ b/dom/base/InProcessBrowserChildMessageManager.h @@ -16,10 +16,8 @@ #include "nsIScriptContext.h" #include "nsIScriptObjectPrincipal.h" #include "nsIScriptContext.h" -#include "nsIClassInfo.h" #include "nsDocShell.h" #include "nsCOMArray.h" -#include "nsIRunnable.h" #include "nsWeakReference.h" namespace mozilla { diff --git a/dom/base/Link.cpp b/dom/base/Link.cpp index bc10e011da3c..1e260a99bafa 100644 --- a/dom/base/Link.cpp +++ b/dom/base/Link.cpp @@ -15,8 +15,6 @@ #include "nsIURL.h" #include "nsIURIMutator.h" #include "nsISizeOf.h" -#include "nsIDocShell.h" -#include "nsIPrefetchService.h" #include "nsStyleLinkElement.h" #include "nsEscape.h" diff --git a/dom/base/Link.h b/dom/base/Link.h index e9ed875dc130..f5a88e51f208 100644 --- a/dom/base/Link.h +++ b/dom/base/Link.h @@ -13,7 +13,6 @@ #include "mozilla/MemoryReporting.h" #include "nsIContent.h" // for nsLinkState -#include "nsIContentPolicy.h" namespace mozilla { diff --git a/dom/base/Location.cpp b/dom/base/Location.cpp index 45630bdddf25..4ca6b715fb2d 100644 --- a/dom/base/Location.cpp +++ b/dom/base/Location.cpp @@ -5,14 +5,12 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "Location.h" -#include "nsIScriptSecurityManager.h" #include "nsIScriptObjectPrincipal.h" #include "nsIScriptContext.h" #include "nsDocShellLoadState.h" #include "nsIWebNavigation.h" #include "nsIURIFixup.h" #include "nsIURL.h" -#include "nsIURIMutator.h" #include "nsIJARURI.h" #include "nsNetUtil.h" #include "nsCOMPtr.h" @@ -20,7 +18,6 @@ #include "nsPresContext.h" #include "nsError.h" #include "nsReadableUtils.h" -#include "nsITextToSubURI.h" #include "nsJSUtils.h" #include "nsContentUtils.h" #include "nsDocShell.h" diff --git a/dom/base/MozQueryInterface.cpp b/dom/base/MozQueryInterface.cpp index c86eb4da7f96..7c2fb930f292 100644 --- a/dom/base/MozQueryInterface.cpp +++ b/dom/base/MozQueryInterface.cpp @@ -6,7 +6,6 @@ #include "ChromeUtils.h" #include "MozQueryInterface.h" -#include "nsIException.h" #include diff --git a/dom/base/MutationObservers.cpp b/dom/base/MutationObservers.cpp index ab9a0f608491..cec5967626c7 100644 --- a/dom/base/MutationObservers.cpp +++ b/dom/base/MutationObservers.cpp @@ -16,7 +16,6 @@ #include "mozilla/dom/Element.h" #include "nsIMutationObserver.h" #include "mozilla/EventListenerManager.h" -#include "nsIXPConnect.h" #include "PLDHashTable.h" #include "nsCOMArray.h" #include "nsPIDOMWindow.h" diff --git a/dom/base/Navigator.cpp b/dom/base/Navigator.cpp index d7d6013f58a1..8acdd5c27bfb 100644 --- a/dom/base/Navigator.cpp +++ b/dom/base/Navigator.cpp @@ -20,13 +20,9 @@ #include "nsIClassOfService.h" #include "nsIHttpProtocolHandler.h" #include "nsIContentPolicy.h" -#include "nsIContentSecurityPolicy.h" #include "nsContentPolicyUtils.h" #include "nsISupportsPriority.h" -#include "nsICachingChannel.h" #include "nsIWebProtocolHandlerRegistrar.h" -#include "nsICookiePermission.h" -#include "nsIScriptSecurityManager.h" #include "nsCharSeparatedTokenizer.h" #include "nsContentUtils.h" #include "nsUnicharUtils.h" @@ -69,12 +65,9 @@ #include "nsStringStream.h" #include "nsComponentManagerUtils.h" #include "nsICookieService.h" -#include "nsIStringStream.h" #include "nsIHttpChannel.h" -#include "nsIHttpChannelInternal.h" #include "nsStreamUtils.h" #include "WidgetUtils.h" -#include "nsIPresentationService.h" #include "nsIScriptError.h" #include "ReferrerInfo.h" #include "PermissionDelegateHandler.h" @@ -86,7 +79,6 @@ #include "mozilla/dom/MediaDevices.h" #include "MediaManager.h" -#include "nsIDOMGlobalPropertyInitializer.h" #include "nsJSUtils.h" #include "mozilla/dom/NavigatorBinding.h" diff --git a/dom/base/ScreenOrientation.cpp b/dom/base/ScreenOrientation.cpp index 91d3cee831bb..c40dd34102e9 100644 --- a/dom/base/ScreenOrientation.cpp +++ b/dom/base/ScreenOrientation.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "ScreenOrientation.h" -#include "nsIDeviceSensors.h" #include "nsIDocShell.h" #include "mozilla/dom/Document.h" #include "nsGlobalWindow.h" diff --git a/dom/base/Selection.cpp b/dom/base/Selection.cpp index e994aac44363..6874ac9a41c8 100644 --- a/dom/base/Selection.cpp +++ b/dom/base/Selection.cpp @@ -63,10 +63,8 @@ #include "nsISelectionController.h" //for the enums #include "nsCopySupport.h" -#include "nsIClipboard.h" #include "nsIFrameInlines.h" #include "nsRefreshDriver.h" -#include "nsIBidiKeyboard.h" #include "nsError.h" #include "nsViewManager.h" diff --git a/dom/base/Selection.h b/dom/base/Selection.h index 17f13a38fbd7..772c27d5b6e8 100644 --- a/dom/base/Selection.h +++ b/dom/base/Selection.h @@ -7,8 +7,6 @@ #ifndef mozilla_Selection_h__ #define mozilla_Selection_h__ -#include "nsIWeakReference.h" - #include "mozilla/AccessibleCaretEventHub.h" #include "mozilla/AutoRestore.h" #include "mozilla/PresShell.h" diff --git a/dom/base/TabGroup.cpp b/dom/base/TabGroup.cpp index b58931c76c24..0d5b688ece0a 100644 --- a/dom/base/TabGroup.cpp +++ b/dom/base/TabGroup.cpp @@ -16,8 +16,6 @@ #include "mozilla/Telemetry.h" #include "mozilla/ThrottledEventQueue.h" #include "nsIDocShell.h" -#include "nsIEffectiveTLDService.h" -#include "nsIURI.h" namespace mozilla { namespace dom { diff --git a/dom/base/TabGroup.h b/dom/base/TabGroup.h index 30d0e0a25ff4..bbfaf1580b23 100644 --- a/dom/base/TabGroup.h +++ b/dom/base/TabGroup.h @@ -9,7 +9,6 @@ #include "nsHashKeys.h" #include "nsISupportsImpl.h" -#include "nsIPrincipal.h" #include "nsTHashtable.h" #include "nsString.h" diff --git a/dom/base/ThirdPartyUtil.cpp b/dom/base/ThirdPartyUtil.cpp index 424c56349792..9f183623cf57 100644 --- a/dom/base/ThirdPartyUtil.cpp +++ b/dom/base/ThirdPartyUtil.cpp @@ -10,7 +10,6 @@ #include "nsNetCID.h" #include "nsNetUtil.h" #include "nsIChannel.h" -#include "nsIServiceManager.h" #include "nsIHttpChannelInternal.h" #include "nsILoadContext.h" #include "nsIPrincipal.h" diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index 4f2236476a84..a4db9f8f8409 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -13,7 +13,6 @@ #include "mozilla/Telemetry.h" #include "mozilla/ThrottledEventQueue.h" #include "mozilla/TimeStamp.h" -#include "nsIDocShell.h" #include "nsINamed.h" #include "mozilla/dom/DocGroup.h" #include "mozilla/dom/PopupBlocker.h" diff --git a/dom/base/nsContentAreaDragDrop.cpp b/dom/base/nsContentAreaDragDrop.cpp index d41dbddb23d5..864d3e9deda3 100644 --- a/dom/base/nsContentAreaDragDrop.cpp +++ b/dom/base/nsContentAreaDragDrop.cpp @@ -26,8 +26,6 @@ #include "nsIFile.h" #include "nsFrameLoader.h" #include "nsFrameLoaderOwner.h" -#include "nsIWebNavigation.h" -#include "nsIDocShell.h" #include "nsIContent.h" #include "nsIContentInlines.h" #include "nsIImageLoadingContent.h" @@ -35,7 +33,6 @@ #include "nsIURL.h" #include "nsIURIMutator.h" #include "mozilla/dom/Document.h" -#include "nsIScriptSecurityManager.h" #include "nsIPrincipal.h" #include "nsIDocShellTreeItem.h" #include "nsIWebBrowserPersist.h" diff --git a/dom/base/nsContentAreaDragDrop.h b/dom/base/nsContentAreaDragDrop.h index 0978891a641b..50b3043d3a3c 100644 --- a/dom/base/nsContentAreaDragDrop.h +++ b/dom/base/nsContentAreaDragDrop.h @@ -9,7 +9,6 @@ #include "nsCOMPtr.h" -#include "nsIDOMEventListener.h" #include "nsITransferable.h" #include "nsIContentSecurityPolicy.h" diff --git a/dom/base/nsContentPermissionHelper.h b/dom/base/nsContentPermissionHelper.h index 1db01a20600a..2b26c19663af 100644 --- a/dom/base/nsContentPermissionHelper.h +++ b/dom/base/nsContentPermissionHelper.h @@ -12,7 +12,6 @@ #include "nsIMutableArray.h" #include "mozilla/dom/PContentPermissionRequestChild.h" #include "mozilla/dom/ipc/IdType.h" -#include "nsIDOMEventListener.h" #include "PermissionDelegateHandler.h" // Microsoft's API Name hackery sucks diff --git a/dom/base/nsContentPolicy.cpp b/dom/base/nsContentPolicy.cpp index 9e34d8efaf19..d3977c0c60ad 100644 --- a/dom/base/nsContentPolicy.cpp +++ b/dom/base/nsContentPolicy.cpp @@ -16,11 +16,9 @@ #include "mozilla/dom/nsCSPService.h" #include "nsContentPolicy.h" #include "nsIURI.h" -#include "nsIDocShell.h" #include "nsIBrowserChild.h" #include "nsIContent.h" #include "nsIImageLoadingContent.h" -#include "nsILoadContext.h" #include "nsCOMArray.h" #include "nsContentUtils.h" #include "mozilla/dom/nsMixedContentBlocker.h" diff --git a/dom/base/nsContentPolicyUtils.h b/dom/base/nsContentPolicyUtils.h index ddf5ebb32fce..7195f1cccde3 100644 --- a/dom/base/nsContentPolicyUtils.h +++ b/dom/base/nsContentPolicyUtils.h @@ -19,7 +19,6 @@ #include "nsContentUtils.h" #include "nsIContentPolicy.h" #include "nsIContent.h" -#include "nsIScriptSecurityManager.h" #include "nsIURI.h" #include "nsServiceManagerUtils.h" #include "nsStringFwd.h" diff --git a/dom/base/nsContentSink.cpp b/dom/base/nsContentSink.cpp index e037d59f9754..3a23c486c2e4 100644 --- a/dom/base/nsContentSink.cpp +++ b/dom/base/nsContentSink.cpp @@ -34,9 +34,7 @@ #include "nsNetCID.h" #include "nsIOfflineCacheUpdate.h" #include "nsIApplicationCache.h" -#include "nsIApplicationCacheContainer.h" #include "nsIApplicationCacheChannel.h" -#include "nsIScriptSecurityManager.h" #include "nsICookieService.h" #include "nsContentUtils.h" #include "nsNodeInfoManager.h" diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index a80f0f8406fb..ddd5448848f6 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -145,13 +145,11 @@ #include "nsHtml5StringParser.h" #include "nsHTMLDocument.h" #include "nsHTMLTags.h" -#include "nsIAddonPolicyService.h" #include "nsIAnonymousContentCreator.h" #include "nsIAsyncVerifyRedirectCallback.h" #include "nsICategoryManager.h" #include "nsIChannelEventSink.h" #include "nsICharsetDetectionObserver.h" -#include "nsIChromeRegistry.h" #include "nsIConsoleService.h" #include "nsIContent.h" #include "nsIContentInlines.h" @@ -162,7 +160,6 @@ #include "nsIDocShellTreeOwner.h" #include "mozilla/dom/Document.h" #include "nsIDocumentEncoder.h" -#include "nsIDOMChromeWindow.h" #include "nsIDOMWindowUtils.h" #include "nsIDragService.h" #include "nsIFormControl.h" @@ -179,7 +176,6 @@ #include "nsILoadContext.h" #include "nsILoadGroup.h" #include "nsIMemoryReporter.h" -#include "nsIMIMEHeaderParam.h" #include "nsIMIMEService.h" #include "nsINode.h" #include "mozilla/dom/NodeInfo.h" @@ -191,7 +187,6 @@ #include "nsIParser.h" #include "nsIParserUtils.h" #include "nsIPermissionManager.h" -#include "nsIPluginHost.h" #include "nsIRequest.h" #include "nsIRunnable.h" #include "nsIScriptContext.h" @@ -206,7 +201,7 @@ #include "nsIURI.h" #include "nsIURIMutator.h" #include "nsIURIWithSpecialOrigin.h" -#include "nsIURL.h" +#include "nsIUUIDGenerator.h" #include "nsIWebNavigation.h" #include "nsIWidget.h" #include "nsIWindowMediator.h" @@ -242,8 +237,6 @@ #include "HTMLSplitOnSpacesTokenizer.h" #include "InProcessBrowserChildMessageManager.h" #include "nsContentTypeParser.h" -#include "nsICookiePermission.h" -#include "nsICookieService.h" #include "ThirdPartyUtil.h" #include "mozilla/EnumSet.h" #include "mozilla/BloomFilter.h" diff --git a/dom/base/nsCopySupport.cpp b/dom/base/nsCopySupport.cpp index 86a14c72ed67..875e00d3ee33 100644 --- a/dom/base/nsCopySupport.cpp +++ b/dom/base/nsCopySupport.cpp @@ -8,8 +8,6 @@ #include "nsIDocumentEncoder.h" #include "nsISupports.h" #include "nsIContent.h" -#include "nsIComponentManager.h" -#include "nsIServiceManager.h" #include "nsIClipboard.h" #include "nsIFormControl.h" #include "nsWidgetsCID.h" @@ -23,7 +21,6 @@ #include "nsIDocShell.h" #include "nsIContentViewerEdit.h" -#include "nsIClipboardHelper.h" #include "nsISelectionController.h" #include "nsPIDOMWindow.h" @@ -32,8 +29,6 @@ #include "nsGkAtoms.h" #include "nsIFrame.h" #include "nsIURI.h" -#include "nsIURIMutator.h" -#include "nsISimpleEnumerator.h" #include "nsGenericHTMLElement.h" // image copy stuff diff --git a/dom/base/nsDOMCID.h b/dom/base/nsDOMCID.h index b4386a043bdb..fab3d37674f8 100644 --- a/dom/base/nsDOMCID.h +++ b/dom/base/nsDOMCID.h @@ -8,8 +8,6 @@ #define nsDOMCID_h__ #include "nsISupports.h" -#include "nsIFactory.h" -#include "nsIComponentManager.h" #define NS_DOM_SCRIPT_OBJECT_FACTORY_CID \ { /* 9eb760f0-4380-11d2-b328-00805f8a3859 */ \ diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp index 46379ce73d20..37dee7d90550 100644 --- a/dom/base/nsDOMWindowUtils.cpp +++ b/dom/base/nsDOMWindowUtils.cpp @@ -61,7 +61,6 @@ #include "nsComputedDOMStyle.h" #include "nsCSSProps.h" #include "nsIDocShell.h" -#include "nsIContentViewer.h" #include "mozilla/StyleAnimationValue.h" #include "mozilla/dom/File.h" #include "mozilla/dom/FileBinding.h" @@ -92,7 +91,6 @@ #include "nsPrintfCString.h" #include "nsViewportInfo.h" #include "nsIFormControl.h" -#include "nsIScriptError.h" //#include "nsWidgetsCID.h" #include "FrameLayerBuilder.h" #include "nsDisplayList.h" @@ -102,7 +100,6 @@ #include "nsIInterfaceRequestorUtils.h" #include "GeckoProfiler.h" #include "mozilla/Preferences.h" -#include "nsIStyleSheetService.h" #include "nsContentPermissionHelper.h" #include "nsCSSPseudoElements.h" // for PseudoStyleType #include "nsNetUtil.h" diff --git a/dom/base/nsDocumentEncoder.cpp b/dom/base/nsDocumentEncoder.cpp index e7ad6e189a05..9e5d91092c7f 100644 --- a/dom/base/nsDocumentEncoder.cpp +++ b/dom/base/nsDocumentEncoder.cpp @@ -14,7 +14,6 @@ #include #include "nscore.h" -#include "nsIFactory.h" #include "nsISupports.h" #include "mozilla/dom/Document.h" #include "nsCOMPtr.h" @@ -27,9 +26,7 @@ #include "nsIContent.h" #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" -#include "nsIScriptSecurityManager.h" #include "mozilla/dom/Selection.h" -#include "nsITransferable.h" // for kUnicodeMime #include "nsContentUtils.h" #include "nsElementTable.h" #include "nsUnicharUtils.h" diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index ac7418f88765..7399d7d8fd63 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -15,7 +15,6 @@ #include "nsContentUtils.h" #include "ContentParent.h" #include "nsPIDOMWindow.h" -#include "nsIDOMChromeWindow.h" #include "nsIDocShell.h" #include "nsIDocShellTreeOwner.h" #include "nsIFormControl.h" diff --git a/dom/base/nsFocusManager.h b/dom/base/nsFocusManager.h index 89a3fa96588d..d3ba6add328f 100644 --- a/dom/base/nsFocusManager.h +++ b/dom/base/nsFocusManager.h @@ -23,7 +23,6 @@ #define FOCUSMANAGER_CONTRACTID "@mozilla.org/focus-manager;1" class nsIContent; -class nsIDocShellTreeItem; class nsPIDOMWindowOuter; namespace mozilla { diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index 6c3126824a29..9b4599d03f69 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -14,7 +14,6 @@ #include "prenv.h" #include "nsDocShell.h" -#include "nsIDOMMozBrowserFrame.h" #include "nsIContentInlines.h" #include "nsIContentViewer.h" #include "mozilla/dom/Document.h" @@ -27,7 +26,6 @@ #include "nsIBaseWindow.h" #include "nsIBrowser.h" #include "nsContentUtils.h" -#include "nsIXPConnect.h" #include "nsUnicharUtils.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptSecurityManager.h" @@ -38,10 +36,8 @@ #include "nsIScrollableFrame.h" #include "nsSubDocumentFrame.h" #include "nsError.h" -#include "nsISHistory.h" #include "nsIAppWindow.h" #include "nsIMozBrowserFrame.h" -#include "nsISHistory.h" #include "nsIScriptError.h" #include "nsGlobalWindow.h" #include "nsHTMLDocument.h" @@ -54,7 +50,6 @@ #include "ReferrerInfo.h" #include "nsIURI.h" -#include "nsIURL.h" #include "nsNetUtil.h" #include "nsGkAtoms.h" diff --git a/dom/base/nsFrameMessageManager.cpp b/dom/base/nsFrameMessageManager.cpp index 9feb50fb772b..2a47ef52b1c5 100644 --- a/dom/base/nsFrameMessageManager.cpp +++ b/dom/base/nsFrameMessageManager.cpp @@ -22,12 +22,10 @@ #include "mozilla/dom/ScriptLoader.h" #include "nsFrameLoader.h" #include "nsIInputStream.h" -#include "nsIXULRuntime.h" #include "nsIScriptError.h" #include "nsIConsoleService.h" #include "nsIMemoryReporter.h" #include "nsIProtocolHandler.h" -#include "nsIScriptSecurityManager.h" #include "xpcpublic.h" #include "js/CompilationAndEvaluation.h" #include "js/JSON.h" diff --git a/dom/base/nsFrameMessageManager.h b/dom/base/nsFrameMessageManager.h index f5d80996090c..f4b56d49374f 100644 --- a/dom/base/nsFrameMessageManager.h +++ b/dom/base/nsFrameMessageManager.h @@ -17,7 +17,6 @@ #include "nsCycleCollectionParticipant.h" #include "nsTArray.h" #include "nsIPrincipal.h" -#include "nsIXPConnect.h" #include "nsDataHashtable.h" #include "nsClassHashtable.h" #include "mozilla/Services.h" diff --git a/dom/base/nsGlobalWindowCommands.cpp b/dom/base/nsGlobalWindowCommands.cpp index aca1121af3e6..f0aa34c5f742 100644 --- a/dom/base/nsGlobalWindowCommands.cpp +++ b/dom/base/nsGlobalWindowCommands.cpp @@ -6,7 +6,6 @@ #include "nsGlobalWindowCommands.h" -#include "nsIComponentManager.h" #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" #include "nsCommandParams.h" diff --git a/dom/base/nsGlobalWindowInner.cpp b/dom/base/nsGlobalWindowInner.cpp index 83a52214d781..a74004735f2d 100644 --- a/dom/base/nsGlobalWindowInner.cpp +++ b/dom/base/nsGlobalWindowInner.cpp @@ -59,8 +59,6 @@ #include "nsIDocShellTreeOwner.h" #include "nsIDocumentLoader.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsIPermission.h" -#include "nsIPermissionManager.h" #include "nsIScriptContext.h" #include "nsIController.h" #include "nsISlowScriptDebug.h" @@ -127,34 +125,22 @@ #include "mozilla/dom/Document.h" #include "Crypto.h" #include "nsDOMString.h" -#include "nsIEmbeddingSiteWindow.h" #include "nsThreadUtils.h" #include "nsILoadContext.h" #include "nsIScrollableFrame.h" #include "nsView.h" #include "nsViewManager.h" -#include "nsISelectionController.h" #include "nsIPrompt.h" -#include "nsIPromptService.h" -#include "nsIPromptFactory.h" #include "nsIAddonPolicyService.h" -#include "nsIWritablePropertyBag2.h" #include "nsIWebNavigation.h" #include "nsIWebBrowserChrome.h" -#include "nsIWebBrowserFind.h" // For window.find() -#include "nsIWindowMediator.h" // For window.find() #include "nsDOMCID.h" #include "nsDOMWindowUtils.h" -#include "nsIWindowWatcher.h" -#include "nsPIWindowWatcher.h" -#include "nsIContentViewer.h" -#include "nsIScriptError.h" #include "nsIControllers.h" #include "nsGlobalWindowCommands.h" #include "nsQueryObject.h" #include "nsContentUtils.h" #include "nsCSSProps.h" -#include "nsIURIFixup.h" #include "mozilla/EventDispatcher.h" #include "mozilla/EventStateManager.h" #include "nsIObserverService.h" @@ -166,9 +152,7 @@ # include "nsMenuPopupFrame.h" #endif #include "mozilla/dom/CustomEvent.h" -#include "nsIJARChannel.h" #include "nsIScreenManager.h" -#include "nsIEffectiveTLDService.h" #include "nsICSSDeclaration.h" #include "xpcprivate.h" @@ -187,7 +171,6 @@ #include "mozilla/dom/Element.h" #include "mozilla/dom/Selection.h" #include "nsFrameLoader.h" -#include "nsISupportsPrimitives.h" #include "nsXPCOMCID.h" #include "mozilla/Logging.h" #include "prenv.h" diff --git a/dom/base/nsGlobalWindowInner.h b/dom/base/nsGlobalWindowInner.h index 2ec7b6d23b3a..37f0f805cf86 100644 --- a/dom/base/nsGlobalWindowInner.h +++ b/dom/base/nsGlobalWindowInner.h @@ -28,7 +28,6 @@ #include "nsIDOMChromeWindow.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptObjectPrincipal.h" -#include "nsITimer.h" #include "mozilla/EventListenerManager.h" #include "nsIPrincipal.h" #include "nsSize.h" diff --git a/dom/base/nsGlobalWindowOuter.cpp b/dom/base/nsGlobalWindowOuter.cpp index 56e402c57986..2ac0250f7047 100644 --- a/dom/base/nsGlobalWindowOuter.cpp +++ b/dom/base/nsGlobalWindowOuter.cpp @@ -16,11 +16,9 @@ #include "nsScreen.h" #include "nsHistory.h" #include "nsDOMNavigationTiming.h" -#include "nsICookieService.h" #include "nsIDOMStorageManager.h" #include "nsIPermission.h" #include "nsIPermissionManager.h" -#include "nsIPrefBranch.h" #include "nsISecureBrowserUI.h" #include "nsIWebProgressListener.h" #include "mozilla/AntiTrackingCommon.h" @@ -55,7 +53,6 @@ #include "nsIInterfaceRequestorUtils.h" #include "nsIPermissionManager.h" #include "nsIScriptContext.h" -#include "nsISlowScriptDebug.h" #include "nsWindowMemoryReporter.h" #include "nsWindowSizes.h" #include "WindowNamedPropertiesHandler.h" @@ -126,16 +123,13 @@ #include "nsIScrollableFrame.h" #include "nsView.h" #include "nsViewManager.h" -#include "nsISelectionController.h" #include "nsIPrompt.h" #include "nsIPromptService.h" #include "nsIPromptFactory.h" -#include "nsIAddonPolicyService.h" #include "nsIWritablePropertyBag2.h" #include "nsIWebNavigation.h" #include "nsIWebBrowserChrome.h" #include "nsIWebBrowserFind.h" // For window.find() -#include "nsIWindowMediator.h" // For window.find() #include "nsComputedDOMStyle.h" #include "nsDOMCID.h" #include "nsDOMWindowUtils.h" @@ -155,12 +149,9 @@ #include "nsIObserverService.h" #include "nsFocusManager.h" #include "nsIAppWindow.h" -#include "nsITimedChannel.h" #include "nsServiceManagerUtils.h" #include "mozilla/dom/CustomEvent.h" -#include "nsIJARChannel.h" #include "nsIScreenManager.h" -#include "nsIEffectiveTLDService.h" #include "nsIClassifiedChannel.h" #include "xpcprivate.h" @@ -183,7 +174,6 @@ #include "mozilla/dom/Element.h" #include "mozilla/dom/Selection.h" #include "nsFrameLoader.h" -#include "nsISupportsPrimitives.h" #include "nsXPCOMCID.h" #include "mozilla/Logging.h" #include "prenv.h" diff --git a/dom/base/nsGlobalWindowOuter.h b/dom/base/nsGlobalWindowOuter.h index 36e6db1e2e72..c2098ddf4f04 100644 --- a/dom/base/nsGlobalWindowOuter.h +++ b/dom/base/nsGlobalWindowOuter.h @@ -30,7 +30,6 @@ #include "nsIObserver.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptObjectPrincipal.h" -#include "nsITimer.h" #include "mozilla/EventListenerManager.h" #include "nsIPrincipal.h" #include "nsSize.h" diff --git a/dom/base/nsHTMLContentSerializer.cpp b/dom/base/nsHTMLContentSerializer.cpp index 294c07f8f531..906456f44150 100644 --- a/dom/base/nsHTMLContentSerializer.cpp +++ b/dom/base/nsHTMLContentSerializer.cpp @@ -18,7 +18,6 @@ #include "nsNameSpaceManager.h" #include "nsString.h" #include "nsUnicharUtils.h" -#include "nsIServiceManager.h" #include "nsIDocumentEncoder.h" #include "nsGkAtoms.h" #include "nsIURI.h" @@ -28,9 +27,6 @@ #include "nsContentUtils.h" #include "nsIScriptElement.h" #include "nsAttrName.h" -#include "nsIDocShell.h" -#include "nsIEditor.h" -#include "nsIHTMLEditor.h" #include "mozilla/dom/Element.h" #include "nsParserConstants.h" diff --git a/dom/base/nsHistory.cpp b/dom/base/nsHistory.cpp index e4dd32ce8741..eddb2c08e5fd 100644 --- a/dom/base/nsHistory.cpp +++ b/dom/base/nsHistory.cpp @@ -13,10 +13,8 @@ #include "mozilla/dom/DocumentInlines.h" #include "nsIDocShell.h" #include "nsIWebNavigation.h" -#include "nsIURI.h" #include "nsReadableUtils.h" #include "nsContentUtils.h" -#include "nsISHistory.h" #include "mozilla/dom/Location.h" #include "mozilla/RefPtr.h" #include "mozilla/StaticPrefs_dom.h" diff --git a/dom/base/nsINode.cpp b/dom/base/nsINode.cpp index 1deec3861649..f76186025dbf 100644 --- a/dom/base/nsINode.cpp +++ b/dom/base/nsINode.cpp @@ -63,25 +63,16 @@ #include "nsGkAtoms.h" #include "nsIAnonymousContentCreator.h" #include "nsAtom.h" -#include "nsIBaseWindow.h" -#include "nsICategoryManager.h" #include "nsIContentInlines.h" -#include "nsIControllers.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/DocumentInlines.h" -#include "nsIDOMEventListener.h" #include "nsIFrameInlines.h" #include "mozilla/dom/NodeInfo.h" #include "mozilla/dom/NodeInfoInlines.h" -#include "nsIScriptError.h" #include "nsIScriptGlobalObject.h" -#include "nsIScriptSecurityManager.h" #include "nsIScrollableFrame.h" -#include "nsIServiceManager.h" -#include "nsIURL.h" #include "nsView.h" #include "nsViewManager.h" -#include "nsIWebNavigation.h" #include "nsIWidget.h" #include "nsLayoutUtils.h" #include "nsNameSpaceManager.h" diff --git a/dom/base/nsINode.h b/dom/base/nsINode.h index ca99f00854d1..97a464ea23e2 100644 --- a/dom/base/nsINode.h +++ b/dom/base/nsINode.h @@ -12,7 +12,6 @@ #include "nsCOMPtr.h" // for member, local #include "nsGkAtoms.h" // for nsGkAtoms::baseURIProperty #include "mozilla/dom/NodeInfo.h" // member (in nsCOMPtr) -#include "nsIVariant.h" // for use in GetUserData() #include "nsIWeakReference.h" #include "nsNodeInfoManager.h" // for use in NodePrincipal() #include "nsPropertyTable.h" // for typedefs diff --git a/dom/base/nsImageLoadingContent.cpp b/dom/base/nsImageLoadingContent.cpp index 28ffb8bb1f0a..81019a500a5b 100644 --- a/dom/base/nsImageLoadingContent.cpp +++ b/dom/base/nsImageLoadingContent.cpp @@ -20,7 +20,6 @@ #include "nsContentList.h" #include "nsContentPolicyUtils.h" #include "nsIURI.h" -#include "nsILoadGroup.h" #include "imgIContainer.h" #include "imgLoader.h" #include "imgRequestProxy.h" diff --git a/dom/base/nsImageLoadingContent.h b/dom/base/nsImageLoadingContent.h index df7be8268ad5..ad1a74a64df5 100644 --- a/dom/base/nsImageLoadingContent.h +++ b/dom/base/nsImageLoadingContent.h @@ -21,7 +21,6 @@ #include "nsIImageLoadingContent.h" #include "nsIRequest.h" #include "mozilla/ErrorResult.h" -#include "nsIContentPolicy.h" #include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/Promise.h" #include "nsAttrValue.h" diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index e53a49f2c2db..d50baf82b15d 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -8,11 +8,8 @@ #include "nsJSEnvironment.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptObjectPrincipal.h" -#include "nsIDOMChromeWindow.h" #include "nsPIDOMWindow.h" -#include "nsIScriptSecurityManager.h" #include "nsDOMCID.h" -#include "nsIServiceManager.h" #include "nsIXPConnect.h" #include "nsCOMPtr.h" #include "nsISupportsPrimitives.h" @@ -23,10 +20,8 @@ #include "nsIDocShellTreeItem.h" #include "nsPresContext.h" #include "nsIConsoleService.h" -#include "nsIScriptError.h" #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsIPrompt.h" #include "nsIObserverService.h" #include "nsITimer.h" #include "nsAtom.h" @@ -35,7 +30,6 @@ #include "nsIContent.h" #include "nsCycleCollector.h" #include "nsXPCOMCIDInternal.h" -#include "nsIXULRuntime.h" #include "nsTextFormatter.h" #ifdef XP_WIN # include @@ -50,8 +44,6 @@ #include "js/SliceBudget.h" #include "js/Wrapper.h" #include "nsIArray.h" -#include "nsIObjectInputStream.h" -#include "nsIObjectOutputStream.h" #include "WrapperFactory.h" #include "nsGlobalWindow.h" #include "mozilla/AutoRestore.h" @@ -90,7 +82,6 @@ #include "nsCycleCollectionNoteRootCallback.h" #include "GeckoProfiler.h" #include "mozilla/IdleTaskRunner.h" -#include "nsIDocShell.h" #include "nsViewManager.h" #include "mozilla/EventStateManager.h" @@ -2142,7 +2133,6 @@ void nsJSContext::MaybePokeCC() { } if (ShouldTriggerCC(nsCycleCollector_suspectedCount())) { - // We can kill some objects before running forgetSkippable. nsCycleCollector_dispatchDeferredDeletion(); diff --git a/dom/base/nsJSEnvironment.h b/dom/base/nsJSEnvironment.h index 5691d1faad74..ad933c212ba5 100644 --- a/dom/base/nsJSEnvironment.h +++ b/dom/base/nsJSEnvironment.h @@ -9,10 +9,8 @@ #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" -#include "nsIObserver.h" #include "prtime.h" #include "nsCycleCollectionParticipant.h" -#include "nsIXPConnect.h" #include "nsIArray.h" #include "mozilla/Attributes.h" #include "mozilla/TimeStamp.h" diff --git a/dom/base/nsJSUtils.cpp b/dom/base/nsJSUtils.cpp index dcdccb81f14b..c2c141238c31 100644 --- a/dom/base/nsJSUtils.cpp +++ b/dom/base/nsJSUtils.cpp @@ -22,9 +22,7 @@ #include "nsIScriptContext.h" #include "nsIScriptElement.h" #include "nsIScriptGlobalObject.h" -#include "nsIXPConnect.h" #include "nsCOMPtr.h" -#include "nsIScriptSecurityManager.h" #include "nsPIDOMWindow.h" #include "GeckoProfiler.h" #include "nsJSPrincipals.h" diff --git a/dom/base/nsMimeTypeArray.cpp b/dom/base/nsMimeTypeArray.cpp index 6eb71c29c477..2c94705ffd0d 100644 --- a/dom/base/nsMimeTypeArray.cpp +++ b/dom/base/nsMimeTypeArray.cpp @@ -10,8 +10,6 @@ #include "mozilla/dom/MimeTypeBinding.h" #include "nsPIDOMWindow.h" #include "nsPluginArray.h" -#include "nsIMIMEService.h" -#include "nsIMIMEInfo.h" #include "mozilla/dom/Navigator.h" #include "nsServiceManagerUtils.h" #include "nsContentUtils.h" diff --git a/dom/base/nsNoDataProtocolContentPolicy.cpp b/dom/base/nsNoDataProtocolContentPolicy.cpp index b8ff2dfa194d..ab4aa5e26333 100644 --- a/dom/base/nsNoDataProtocolContentPolicy.cpp +++ b/dom/base/nsNoDataProtocolContentPolicy.cpp @@ -13,8 +13,6 @@ #include "nsNoDataProtocolContentPolicy.h" #include "nsString.h" #include "nsIProtocolHandler.h" -#include "nsIIOService.h" -#include "nsIExternalProtocolHandler.h" #include "nsIURI.h" #include "nsNetUtil.h" #include "nsContentUtils.h" diff --git a/dom/base/nsNodeInfoManager.cpp b/dom/base/nsNodeInfoManager.cpp index 48cd0188f595..a0e6931f8739 100644 --- a/dom/base/nsNodeInfoManager.cpp +++ b/dom/base/nsNodeInfoManager.cpp @@ -19,7 +19,6 @@ #include "nsString.h" #include "nsAtom.h" #include "nsIPrincipal.h" -#include "nsIURI.h" #include "nsContentUtils.h" #include "nsReadableUtils.h" #include "nsGkAtoms.h" diff --git a/dom/base/nsObjectLoadingContent.cpp b/dom/base/nsObjectLoadingContent.cpp index 5b63dfc71c12..64f56c661005 100644 --- a/dom/base/nsObjectLoadingContent.cpp +++ b/dom/base/nsObjectLoadingContent.cpp @@ -28,12 +28,8 @@ #include "nsJSNPRuntime.h" #include "nsINestedURI.h" #include "nsScriptSecurityManager.h" -#include "nsIScriptSecurityManager.h" -#include "nsIStreamConverterService.h" #include "nsIURILoader.h" #include "nsIURL.h" -#include "nsIWebNavigation.h" -#include "nsIWebNavigationInfo.h" #include "nsIScriptChannel.h" #include "nsIBlocklistService.h" #include "nsIAsyncVerifyRedirectCallback.h" @@ -65,7 +61,6 @@ #include "nsObjectLoadingContent.h" #include "mozAutoDocUpdate.h" -#include "nsIContentSecurityPolicy.h" #include "GeckoProfiler.h" #include "nsPluginFrame.h" #include "nsWrapperCacheInlines.h" diff --git a/dom/base/nsObjectLoadingContent.h b/dom/base/nsObjectLoadingContent.h index b72cde4f25c6..0998818dfe50 100644 --- a/dom/base/nsObjectLoadingContent.h +++ b/dom/base/nsObjectLoadingContent.h @@ -18,10 +18,8 @@ #include "nsImageLoadingContent.h" #include "nsIStreamListener.h" #include "nsIChannelEventSink.h" -#include "nsIContentPolicy.h" #include "nsIObjectLoadingContent.h" #include "nsIRunnable.h" -#include "nsIThreadInternal.h" #include "nsIFrame.h" #include "nsFrameLoaderOwner.h" diff --git a/dom/base/nsPlainTextSerializer.cpp b/dom/base/nsPlainTextSerializer.cpp index e3e21b16bf08..3e4cd08e69c9 100644 --- a/dom/base/nsPlainTextSerializer.cpp +++ b/dom/base/nsPlainTextSerializer.cpp @@ -15,7 +15,6 @@ #include #include "nsPrintfCString.h" -#include "nsIServiceManager.h" #include "nsDebug.h" #include "nsGkAtoms.h" #include "nsNameSpaceManager.h" diff --git a/dom/base/nsPluginArray.cpp b/dom/base/nsPluginArray.cpp index 7a0a43a2543a..cde0b8cf5911 100644 --- a/dom/base/nsPluginArray.cpp +++ b/dom/base/nsPluginArray.cpp @@ -12,7 +12,6 @@ #include "nsMimeTypeArray.h" #include "Navigator.h" -#include "nsIDocShell.h" #include "nsIWebNavigation.h" #include "nsPluginHost.h" #include "nsPluginTags.h" diff --git a/dom/base/nsTextNode.cpp b/dom/base/nsTextNode.cpp index c0ad7de9610e..a6a9b2d8214f 100644 --- a/dom/base/nsTextNode.cpp +++ b/dom/base/nsTextNode.cpp @@ -13,7 +13,6 @@ #include "nsContentUtils.h" #include "mozilla/dom/DirectionalityUtils.h" #include "mozilla/dom/Document.h" -#include "nsIDOMEventListener.h" #include "nsThreadUtils.h" #include "nsStubMutationObserver.h" #include "mozilla/IntegerPrintfMacros.h" diff --git a/dom/base/nsXHTMLContentSerializer.cpp b/dom/base/nsXHTMLContentSerializer.cpp index 2bdf26eecfec..2ff4a055af93 100644 --- a/dom/base/nsXHTMLContentSerializer.cpp +++ b/dom/base/nsXHTMLContentSerializer.cpp @@ -19,7 +19,6 @@ #include "nsNameSpaceManager.h" #include "nsString.h" #include "nsUnicharUtils.h" -#include "nsIServiceManager.h" #include "nsIDocumentEncoder.h" #include "nsGkAtoms.h" #include "nsIURI.h" diff --git a/dom/base/test/gtest/TestParser.cpp b/dom/base/test/gtest/TestParser.cpp index 0c260a0d4da5..fd70ed2c8fb9 100644 --- a/dom/base/test/gtest/TestParser.cpp +++ b/dom/base/test/gtest/TestParser.cpp @@ -5,7 +5,6 @@ #include "gtest/gtest.h" #include "nsCOMPtr.h" -#include "nsISupportsPrimitives.h" #include "nsString.h" #include "mozilla/dom/DOMParser.h" #include "mozilla/dom/Document.h" diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp index 39e99efbfd06..ff615ddf02c4 100644 --- a/dom/bindings/BindingUtils.cpp +++ b/dom/bindings/BindingUtils.cpp @@ -26,10 +26,8 @@ #include "nsContentUtils.h" #include "nsGlobalWindow.h" #include "nsHTMLTags.h" -#include "nsIDocShell.h" #include "nsIDOMGlobalPropertyInitializer.h" #include "nsINode.h" -#include "nsIPermissionManager.h" #include "nsIPrincipal.h" #include "nsIURIFixup.h" #include "nsIXPConnect.h" diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h index e8014d6b39b8..20166bbce28b 100644 --- a/dom/bindings/BindingUtils.h +++ b/dom/bindings/BindingUtils.h @@ -35,7 +35,7 @@ #include "nsAutoPtr.h" #include "mozilla/dom/Document.h" #include "nsIGlobalObject.h" -#include "nsIXPConnect.h" +#include "nsIVariant.h" #include "nsJSUtils.h" #include "nsISupportsImpl.h" #include "xpcObjectHelper.h" diff --git a/dom/bindings/CallbackObject.cpp b/dom/bindings/CallbackObject.cpp index 0babb98b8c7c..633827caafa2 100644 --- a/dom/bindings/CallbackObject.cpp +++ b/dom/bindings/CallbackObject.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/BindingUtils.h" #include "jsfriendapi.h" #include "nsIScriptGlobalObject.h" -#include "nsIXPConnect.h" #include "nsIScriptContext.h" #include "nsPIDOMWindow.h" #include "nsJSUtils.h" diff --git a/dom/bindings/WebIDLGlobalNameHash.cpp b/dom/bindings/WebIDLGlobalNameHash.cpp index 4c209658faeb..02b6627e76de 100644 --- a/dom/bindings/WebIDLGlobalNameHash.cpp +++ b/dom/bindings/WebIDLGlobalNameHash.cpp @@ -21,7 +21,6 @@ #include "mozilla/dom/PrototypeList.h" #include "mozilla/dom/RegisterBindings.h" #include "nsGlobalWindow.h" -#include "nsIMemoryReporter.h" #include "nsTHashtable.h" #include "WrapperFactory.h" diff --git a/dom/bindings/nsScriptError.cpp b/dom/bindings/nsScriptError.cpp index 0f7a7e8bae09..6ba05b2f8bb8 100644 --- a/dom/bindings/nsScriptError.cpp +++ b/dom/bindings/nsScriptError.cpp @@ -16,11 +16,8 @@ #include "nsGlobalWindow.h" #include "nsNetUtil.h" #include "nsPIDOMWindow.h" -#include "nsILoadContext.h" -#include "nsIDocShell.h" #include "nsIMutableArray.h" #include "nsIScriptError.h" -#include "nsISensitiveInfoHiddenURI.h" static_assert(nsIScriptError::errorFlag == JSREPORT_ERROR && nsIScriptError::warningFlag == JSREPORT_WARNING && diff --git a/dom/broadcastchannel/BroadcastChannel.cpp b/dom/broadcastchannel/BroadcastChannel.cpp index 7e25c6c0590e..0a1e3a3451ce 100644 --- a/dom/broadcastchannel/BroadcastChannel.cpp +++ b/dom/broadcastchannel/BroadcastChannel.cpp @@ -21,9 +21,7 @@ #include "nsContentUtils.h" #include "nsIBFCacheEntry.h" -#include "nsICookieService.h" #include "mozilla/dom/Document.h" -#include "nsISupportsPrimitives.h" #ifdef XP_WIN # undef PostMessage diff --git a/dom/broadcastchannel/BroadcastChannelParent.cpp b/dom/broadcastchannel/BroadcastChannelParent.cpp index 14470ee432b2..f9e476aee6ac 100644 --- a/dom/broadcastchannel/BroadcastChannelParent.cpp +++ b/dom/broadcastchannel/BroadcastChannelParent.cpp @@ -11,7 +11,6 @@ #include "mozilla/ipc/BackgroundParent.h" #include "mozilla/ipc/IPCStreamUtils.h" #include "mozilla/Unused.h" -#include "nsIScriptSecurityManager.h" namespace mozilla { diff --git a/dom/cache/CacheStorage.cpp b/dom/cache/CacheStorage.cpp index ab17c51bbc52..c7efb234f1cd 100644 --- a/dom/cache/CacheStorage.cpp +++ b/dom/cache/CacheStorage.cpp @@ -30,7 +30,6 @@ #include "nsContentUtils.h" #include "mozilla/dom/Document.h" #include "nsIGlobalObject.h" -#include "nsIScriptSecurityManager.h" #include "nsMixedContentBlocker.h" #include "nsURLParsers.h" diff --git a/dom/cache/Context.cpp b/dom/cache/Context.cpp index 5822dc07b7f0..383a49f983c5 100644 --- a/dom/cache/Context.cpp +++ b/dom/cache/Context.cpp @@ -13,7 +13,6 @@ #include "mozilla/dom/cache/ManagerId.h" #include "mozilla/dom/quota/QuotaManager.h" #include "mozIStorageConnection.h" -#include "nsIFile.h" #include "nsIPrincipal.h" #include "nsIRunnable.h" #include "nsThreadUtils.h" diff --git a/dom/cache/DBSchema.cpp b/dom/cache/DBSchema.cpp index 2a0ad21c49aa..fca0db7353dc 100644 --- a/dom/cache/DBSchema.cpp +++ b/dom/cache/DBSchema.cpp @@ -20,7 +20,6 @@ #include "mozilla/net/MozURL.h" #include "mozIStorageConnection.h" #include "mozIStorageStatement.h" -#include "mozIThirdPartyUtil.h" #include "mozStorageHelper.h" #include "nsCOMPtr.h" #include "nsCRT.h" diff --git a/dom/cache/FileUtils.cpp b/dom/cache/FileUtils.cpp index f722047d6ed8..d4e2d7cd1cc4 100644 --- a/dom/cache/FileUtils.cpp +++ b/dom/cache/FileUtils.cpp @@ -18,7 +18,6 @@ #include "nsIUUIDGenerator.h" #include "nsNetCID.h" #include "nsNetUtil.h" -#include "nsISimpleEnumerator.h" #include "nsServiceManagerUtils.h" #include "nsString.h" #include "nsThreadUtils.h" diff --git a/dom/cache/QuotaClient.cpp b/dom/cache/QuotaClient.cpp index 0d72426704a9..7573b3108cf7 100644 --- a/dom/cache/QuotaClient.cpp +++ b/dom/cache/QuotaClient.cpp @@ -16,7 +16,6 @@ #include "mozilla/Telemetry.h" #include "mozilla/Unused.h" #include "nsIFile.h" -#include "nsISimpleEnumerator.h" #include "nsThreadUtils.h" namespace { diff --git a/dom/cache/SavedTypes.h b/dom/cache/SavedTypes.h index c292f75d6aaa..4eac46640a1f 100644 --- a/dom/cache/SavedTypes.h +++ b/dom/cache/SavedTypes.h @@ -14,7 +14,6 @@ #include "mozilla/dom/cache/Types.h" #include "nsCOMPtr.h" #include "nsID.h" -#include "nsIOutputStream.h" namespace mozilla { namespace dom { diff --git a/dom/cache/TypeUtils.cpp b/dom/cache/TypeUtils.cpp index b582d8b57ca0..a75167846255 100644 --- a/dom/cache/TypeUtils.cpp +++ b/dom/cache/TypeUtils.cpp @@ -19,8 +19,6 @@ #include "mozilla/ipc/PFileDescriptorSetChild.h" #include "mozilla/ipc/InputStreamUtils.h" #include "nsCOMPtr.h" -#include "nsIAsyncInputStream.h" -#include "nsIAsyncOutputStream.h" #include "nsIIPCSerializableInputStream.h" #include "nsQueryObject.h" #include "nsPromiseFlatString.h" diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index a51128a50aaf..141e5487f791 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -9,7 +9,6 @@ #include "nsXULElement.h" #include "nsAutoPtr.h" -#include "nsIServiceManager.h" #include "nsMathUtils.h" #include "SVGImageContext.h" @@ -109,7 +108,6 @@ #include "mozilla/dom/SVGMatrix.h" #include "mozilla/FloatingPoint.h" #include "nsGlobalWindow.h" -#include "nsIScreenManager.h" #include "nsFilterInstance.h" #include "nsDeviceContext.h" #include "nsFontMetrics.h" diff --git a/dom/canvas/CanvasRenderingContext2D.h b/dom/canvas/CanvasRenderingContext2D.h index f3f0c397d5c1..b7bd2e7e129b 100644 --- a/dom/canvas/CanvasRenderingContext2D.h +++ b/dom/canvas/CanvasRenderingContext2D.h @@ -22,7 +22,6 @@ #include "mozilla/PresShell.h" #include "mozilla/UniquePtr.h" #include "gfx2DGlue.h" -#include "imgIEncoder.h" #include "nsLayoutUtils.h" #include "mozilla/EnumeratedArray.h" #include "FilterSupport.h" diff --git a/dom/canvas/CanvasUtils.cpp b/dom/canvas/CanvasUtils.cpp index 25cc9351ab24..486692801494 100644 --- a/dom/canvas/CanvasUtils.cpp +++ b/dom/canvas/CanvasUtils.cpp @@ -6,9 +6,6 @@ #include #include -#include "nsIServiceManager.h" - -#include "nsIConsoleService.h" #include "nsICanvasRenderingContextInternal.h" #include "nsIHTMLCollection.h" #include "mozilla/dom/BrowserChild.h" @@ -34,7 +31,6 @@ #include "nsContentUtils.h" #include "nsUnicharUtils.h" #include "nsPrintfCString.h" -#include "nsIConsoleService.h" #include "jsapi.h" #define TOPIC_CANVAS_PERMISSIONS_PROMPT "canvas-permissions-prompt" diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index abae83ac5a58..cb305e68a76a 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -42,12 +42,8 @@ #include "nsDisplayList.h" #include "nsError.h" #include "nsIClassInfoImpl.h" -#include "nsIConsoleService.h" #include "nsIGfxInfo.h" -#include "nsIObserverService.h" -#include "nsIVariant.h" #include "nsIWidget.h" -#include "nsIXPConnect.h" #include "nsServiceManagerUtils.h" #include "SVGObserverUtils.h" #include "prenv.h" diff --git a/dom/canvas/WebGLContext.h b/dom/canvas/WebGLContext.h index 224e90775926..1f9559397e2f 100644 --- a/dom/canvas/WebGLContext.h +++ b/dom/canvas/WebGLContext.h @@ -40,9 +40,7 @@ #include "WebGLStrongTypes.h" // Generated -#include "nsIDOMEventListener.h" #include "nsICanvasRenderingContextInternal.h" -#include "nsIObserver.h" #include "mozilla/dom/HTMLCanvasElement.h" #include "nsWrapperCache.h" #include "nsLayoutUtils.h" diff --git a/dom/canvas/WebGLContextUtils.cpp b/dom/canvas/WebGLContextUtils.cpp index 30522c37e0bc..eb56268da15c 100644 --- a/dom/canvas/WebGLContextUtils.cpp +++ b/dom/canvas/WebGLContextUtils.cpp @@ -13,8 +13,6 @@ #include "mozilla/gfx/Logging.h" #include "mozilla/Preferences.h" #include "mozilla/Sprintf.h" -#include "nsIScriptSecurityManager.h" -#include "nsIVariant.h" #include "nsPrintfCString.h" #include "nsServiceManagerUtils.h" #include diff --git a/dom/canvas/WebGLContextValidate.cpp b/dom/canvas/WebGLContextValidate.cpp index b6c188674399..47c675ab9dce 100644 --- a/dom/canvas/WebGLContextValidate.cpp +++ b/dom/canvas/WebGLContextValidate.cpp @@ -13,7 +13,6 @@ #include "mozilla/CheckedInt.h" #include "mozilla/Preferences.h" #include "mozilla/StaticPrefs_webgl.h" -#include "nsIObserverService.h" #include "nsPrintfCString.h" #include "WebGLActiveInfo.h" #include "WebGLBuffer.h" diff --git a/dom/canvas/nsICanvasRenderingContextInternal.h b/dom/canvas/nsICanvasRenderingContextInternal.h index f1fa878b18f5..ad80dbda43d3 100644 --- a/dom/canvas/nsICanvasRenderingContextInternal.h +++ b/dom/canvas/nsICanvasRenderingContextInternal.h @@ -9,7 +9,6 @@ #include "mozilla/gfx/2D.h" #include "nsISupports.h" #include "nsIInputStream.h" -#include "nsIDocShell.h" #include "nsRefreshDriver.h" #include "mozilla/dom/HTMLCanvasElement.h" #include "mozilla/dom/OffscreenCanvas.h" @@ -26,6 +25,7 @@ } class nsDisplayListBuilder; +class nsIDocShell; namespace mozilla { class PresShell; diff --git a/dom/clients/manager/ClientChannelHelper.cpp b/dom/clients/manager/ClientChannelHelper.cpp index 1c747d803cbd..248ad469c9a6 100644 --- a/dom/clients/manager/ClientChannelHelper.cpp +++ b/dom/clients/manager/ClientChannelHelper.cpp @@ -15,7 +15,6 @@ #include "nsIAsyncVerifyRedirectCallback.h" #include "nsIChannel.h" #include "nsIChannelEventSink.h" -#include "nsIDocShell.h" #include "nsIHttpChannelInternal.h" #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" diff --git a/dom/commandhandler/nsBaseCommandController.cpp b/dom/commandhandler/nsBaseCommandController.cpp index 7b513f82c8df..3d3f1eacb66c 100644 --- a/dom/commandhandler/nsBaseCommandController.cpp +++ b/dom/commandhandler/nsBaseCommandController.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsString.h" -#include "nsIComponentManager.h" #include "nsIWeakReferenceUtils.h" #include "nsBaseCommandController.h" #include "nsControllerCommandTable.h" diff --git a/dom/commandhandler/nsCommandManager.cpp b/dom/commandhandler/nsCommandManager.cpp index 5003ba36f3fb..234406db0b78 100644 --- a/dom/commandhandler/nsCommandManager.cpp +++ b/dom/commandhandler/nsCommandManager.cpp @@ -10,15 +10,11 @@ #include "nsIControllers.h" #include "nsIObserver.h" -#include "nsIComponentManager.h" - #include "nsServiceManagerUtils.h" -#include "nsIScriptSecurityManager.h" #include "nsContentUtils.h" #include "nsPIDOMWindow.h" #include "nsPIWindowRoot.h" -#include "nsIFocusManager.h" #include "nsCOMArray.h" diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp index c2e7249ee6cf..24b76485ab30 100644 --- a/dom/console/Console.cpp +++ b/dom/console/Console.cpp @@ -44,7 +44,6 @@ #include "nsIInterfaceRequestorUtils.h" #include "nsILoadContext.h" #include "nsISensitiveInfoHiddenURI.h" -#include "nsIServiceManager.h" #include "nsISupportsPrimitives.h" #include "nsIWebNavigation.h" #include "nsIXPConnect.h" diff --git a/dom/console/ConsoleReportCollector.cpp b/dom/console/ConsoleReportCollector.cpp index c64a5bb98667..91137b369e83 100644 --- a/dom/console/ConsoleReportCollector.cpp +++ b/dom/console/ConsoleReportCollector.cpp @@ -7,7 +7,6 @@ #include "mozilla/ConsoleReportCollector.h" #include "ConsoleUtils.h" -#include "nsIConsoleService.h" #include "nsIScriptError.h" #include "nsNetUtil.h" diff --git a/dom/events/Clipboard.cpp b/dom/events/Clipboard.cpp index 0f3419ca8a04..286f33dc13ee 100644 --- a/dom/events/Clipboard.cpp +++ b/dom/events/Clipboard.cpp @@ -13,7 +13,6 @@ #include "mozilla/dom/DataTransferItemList.h" #include "mozilla/dom/DataTransferItem.h" #include "nsIClipboard.h" -#include "nsISupportsPrimitives.h" #include "nsComponentManagerUtils.h" #include "nsITransferable.h" #include "nsArrayUtils.h" diff --git a/dom/events/ContentEventHandler.h b/dom/events/ContentEventHandler.h index 34105af7e7de..6d64a57e2bae 100644 --- a/dom/events/ContentEventHandler.h +++ b/dom/events/ContentEventHandler.h @@ -12,7 +12,6 @@ #include "nsCOMPtr.h" #include "nsIFrame.h" #include "nsINode.h" -#include "nsISelectionController.h" class nsPresContext; class nsRange; diff --git a/dom/events/CustomEvent.cpp b/dom/events/CustomEvent.cpp index 39b47911ab58..d3556c72ce38 100644 --- a/dom/events/CustomEvent.cpp +++ b/dom/events/CustomEvent.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/BindingUtils.h" #include "nsContentUtils.h" -#include "nsIXPConnect.h" using namespace mozilla; using namespace mozilla::dom; diff --git a/dom/events/DataTransfer.cpp b/dom/events/DataTransfer.cpp index eb7203aede30..a1ed8db26c5a 100644 --- a/dom/events/DataTransfer.cpp +++ b/dom/events/DataTransfer.cpp @@ -19,6 +19,7 @@ #include "nsError.h" #include "nsIDragService.h" #include "nsIClipboard.h" +#include "nsIXPConnect.h" #include "nsContentUtils.h" #include "nsIContent.h" #include "nsIObjectInputStream.h" diff --git a/dom/events/DataTransferItemList.cpp b/dom/events/DataTransferItemList.cpp index e9a057994731..b43cc2618021 100644 --- a/dom/events/DataTransferItemList.cpp +++ b/dom/events/DataTransferItemList.cpp @@ -8,11 +8,9 @@ #include "nsContentUtils.h" #include "nsIGlobalObject.h" -#include "nsIClipboard.h" #include "nsIScriptObjectPrincipal.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptContext.h" -#include "nsISupportsPrimitives.h" #include "nsQueryObject.h" #include "nsVariant.h" #include "mozilla/ContentEvents.h" diff --git a/dom/events/EventListenerManager.cpp b/dom/events/EventListenerManager.cpp index db6b013378a5..f2f08a81de33 100644 --- a/dom/events/EventListenerManager.cpp +++ b/dom/events/EventListenerManager.cpp @@ -44,11 +44,8 @@ #include "nsIContent.h" #include "nsIContentSecurityPolicy.h" #include "mozilla/dom/Document.h" -#include "nsIDOMEventListener.h" #include "nsIScriptGlobalObject.h" #include "nsISupports.h" -#include "nsISupportsPrimitives.h" -#include "nsIXPConnect.h" #include "nsJSUtils.h" #include "nsNameSpaceManager.h" #include "nsPIDOMWindow.h" diff --git a/dom/events/EventListenerManager.h b/dom/events/EventListenerManager.h index e3807e6e5119..5b770c1772fe 100644 --- a/dom/events/EventListenerManager.h +++ b/dom/events/EventListenerManager.h @@ -18,7 +18,6 @@ #include "nsTObserverArray.h" #include "nsTArray.h" -class nsIDocShell; class nsIEventListenerInfo; class nsPIDOMWindowInner; class JSTracer; diff --git a/dom/events/EventListenerService.cpp b/dom/events/EventListenerService.cpp index d97eee705c98..ee2233eeb357 100644 --- a/dom/events/EventListenerService.cpp +++ b/dom/events/EventListenerService.cpp @@ -14,7 +14,6 @@ #include "mozilla/dom/ScriptSettings.h" #include "nsArrayUtils.h" #include "nsCOMArray.h" -#include "nsIXPConnect.h" #include "nsJSUtils.h" #include "nsMemory.h" #include "nsServiceManagerUtils.h" diff --git a/dom/events/EventListenerService.h b/dom/events/EventListenerService.h index 8a7471d8d9e3..e2788993c0ba 100644 --- a/dom/events/EventListenerService.h +++ b/dom/events/EventListenerService.h @@ -11,7 +11,6 @@ #include "mozilla/Attributes.h" #include "nsAutoPtr.h" #include "nsCycleCollectionParticipant.h" -#include "nsIDOMEventListener.h" #include "nsIEventListenerService.h" #include "nsString.h" #include "nsTObserverArray.h" diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp index d8d2e00f8d24..29ac77b36c03 100644 --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -74,7 +74,6 @@ #include "nsIObserverService.h" #include "nsIDocShell.h" -#include "nsIMozBrowserFrame.h" #include "nsSubDocumentFrame.h" #include "nsLayoutUtils.h" @@ -97,7 +96,6 @@ # include "nsTreeBodyFrame.h" #endif #include "nsIController.h" -#include "nsICommandParams.h" #include "mozilla/Services.h" #include "mozilla/dom/ContentParent.h" #include "mozilla/dom/HTMLLabelElement.h" @@ -107,7 +105,6 @@ #include "mozilla/LookAndFeel.h" #include "GeckoProfiler.h" #include "Units.h" -#include "nsIObjectLoadingContent.h" #ifdef XP_MACOSX # import diff --git a/dom/events/GlobalKeyListener.cpp b/dom/events/GlobalKeyListener.cpp index 18f95eb2b380..ecb16a132f12 100644 --- a/dom/events/GlobalKeyListener.cpp +++ b/dom/events/GlobalKeyListener.cpp @@ -8,15 +8,12 @@ #include "GlobalKeyListener.h" #include "nsIContent.h" #include "nsAtom.h" -#include "nsIServiceManager.h" #include "nsGkAtoms.h" #include "nsFocusManager.h" -#include "nsIURI.h" #include "nsNetUtil.h" #include "nsContentUtils.h" #include "nsPIDOMWindow.h" #include "nsIDocShell.h" -#include "nsISelectionController.h" #include "mozilla/EventListenerManager.h" #include "mozilla/EventStateManager.h" #include "mozilla/HTMLEditor.h" diff --git a/dom/events/IMEStateManager.cpp b/dom/events/IMEStateManager.cpp index 4c26650f87d2..f3da730e2cd1 100644 --- a/dom/events/IMEStateManager.cpp +++ b/dom/events/IMEStateManager.cpp @@ -38,7 +38,6 @@ #include "nsIForm.h" #include "nsIFormControl.h" #include "nsINode.h" -#include "nsIObserverService.h" #include "nsISupports.h" #include "nsPresContext.h" diff --git a/dom/events/JSEventHandler.cpp b/dom/events/JSEventHandler.cpp index a32fc6363772..6ca716ea9a72 100644 --- a/dom/events/JSEventHandler.cpp +++ b/dom/events/JSEventHandler.cpp @@ -5,12 +5,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsJSUtils.h" #include "nsString.h" -#include "nsIServiceManager.h" -#include "nsIScriptSecurityManager.h" #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" -#include "nsIXPConnect.h" -#include "nsIMutableArray.h" #include "nsVariant.h" #include "nsGkAtoms.h" #include "xpcpublic.h" diff --git a/dom/events/KeyEventHandler.cpp b/dom/events/KeyEventHandler.cpp index 4fc142218fde..0f52a463e0f9 100644 --- a/dom/events/KeyEventHandler.cpp +++ b/dom/events/KeyEventHandler.cpp @@ -19,19 +19,15 @@ #include "nsIController.h" #include "nsIControllers.h" #include "nsXULElement.h" -#include "nsIURI.h" #include "nsFocusManager.h" #include "nsIFormControl.h" -#include "nsIDOMEventListener.h" #include "nsPIDOMWindow.h" #include "nsPIWindowRoot.h" -#include "nsIServiceManager.h" #include "nsIScriptError.h" #include "nsIWeakReferenceUtils.h" #include "nsString.h" #include "nsReadableUtils.h" #include "nsGkAtoms.h" -#include "nsIXPConnect.h" #include "nsDOMCID.h" #include "nsUnicharUtils.h" #include "nsCRT.h" diff --git a/dom/events/TextComposition.h b/dom/events/TextComposition.h index 6b79f49a662e..74d6b42f102e 100644 --- a/dom/events/TextComposition.h +++ b/dom/events/TextComposition.h @@ -9,7 +9,6 @@ #include "nsCOMPtr.h" #include "nsINode.h" -#include "nsIWeakReference.h" #include "nsIWidget.h" #include "nsTArray.h" #include "nsThreadUtils.h" diff --git a/dom/fetch/Fetch.cpp b/dom/fetch/Fetch.cpp index dfbfb0ccad4f..66be64ffe651 100644 --- a/dom/fetch/Fetch.cpp +++ b/dom/fetch/Fetch.cpp @@ -8,7 +8,6 @@ #include "mozilla/dom/Document.h" #include "nsIGlobalObject.h" -#include "nsIStreamLoader.h" #include "nsCharSeparatedTokenizer.h" #include "nsDOMString.h" diff --git a/dom/fetch/Fetch.h b/dom/fetch/Fetch.h index 7f5e940de6ae..afcf4fdef91a 100644 --- a/dom/fetch/Fetch.h +++ b/dom/fetch/Fetch.h @@ -8,7 +8,6 @@ #define mozilla_dom_Fetch_h #include "nsAutoPtr.h" -#include "nsIStreamLoader.h" #include "nsCOMPtr.h" #include "nsError.h" diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index e5b73b6190d8..5c55b3a3669b 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -14,7 +14,6 @@ #include "nsIFileChannel.h" #include "nsIHttpChannel.h" #include "nsIHttpChannelInternal.h" -#include "nsIScriptSecurityManager.h" #include "nsISupportsPriority.h" #include "nsIThreadRetargetableRequest.h" #include "nsIUploadChannel2.h" diff --git a/dom/fetch/FetchDriver.h b/dom/fetch/FetchDriver.h index c0ca51dbfd1b..15a9afd153a3 100644 --- a/dom/fetch/FetchDriver.h +++ b/dom/fetch/FetchDriver.h @@ -8,7 +8,6 @@ #define mozilla_dom_FetchDriver_h #include "nsIChannelEventSink.h" -#include "nsICacheInfoChannel.h" #include "nsIInterfaceRequestor.h" #include "nsIStreamListener.h" #include "nsIThreadRetargetableStreamListener.h" diff --git a/dom/fetch/InternalRequest.h b/dom/fetch/InternalRequest.h index ba2b729338f8..84b81290a76b 100644 --- a/dom/fetch/InternalRequest.h +++ b/dom/fetch/InternalRequest.h @@ -13,7 +13,6 @@ #include "mozilla/LoadTainting.h" #include "mozilla/UniquePtr.h" -#include "nsIContentPolicy.h" #include "nsIInputStream.h" #include "nsISupportsImpl.h" #ifdef DEBUG diff --git a/dom/fetch/InternalResponse.cpp b/dom/fetch/InternalResponse.cpp index 5cbd7eb0cc3e..ed7043ade2f4 100644 --- a/dom/fetch/InternalResponse.cpp +++ b/dom/fetch/InternalResponse.cpp @@ -15,7 +15,6 @@ #include "mozilla/ipc/IPCStreamUtils.h" #include "mozilla/RandomNum.h" #include "nsIRandomGenerator.h" -#include "nsIURI.h" #include "nsStreamUtils.h" namespace mozilla { diff --git a/dom/fetch/Request.h b/dom/fetch/Request.h index 03b55c491fd5..3d3f49eeb417 100644 --- a/dom/fetch/Request.h +++ b/dom/fetch/Request.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_Request_h #define mozilla_dom_Request_h -#include "nsIContentPolicy.h" #include "nsISupportsImpl.h" #include "nsWrapperCache.h" diff --git a/dom/file/FileReader.cpp b/dom/file/FileReader.cpp index c834c8701ed7..a7d723509c95 100644 --- a/dom/file/FileReader.cpp +++ b/dom/file/FileReader.cpp @@ -6,7 +6,6 @@ #include "FileReader.h" -#include "nsIEventTarget.h" #include "nsIGlobalObject.h" #include "nsITimer.h" diff --git a/dom/file/MemoryBlobImpl.h b/dom/file/MemoryBlobImpl.h index 028542e3d5ac..acf28a8973cb 100644 --- a/dom/file/MemoryBlobImpl.h +++ b/dom/file/MemoryBlobImpl.h @@ -14,7 +14,6 @@ #include "nsICloneableInputStream.h" #include "nsIInputStream.h" #include "nsIIPCSerializableInputStream.h" -#include "nsIMemoryReporter.h" #include "nsISeekableStream.h" namespace mozilla { diff --git a/dom/file/MultipartBlobImpl.cpp b/dom/file/MultipartBlobImpl.cpp index 65e2705900ed..e8d494c18b75 100644 --- a/dom/file/MultipartBlobImpl.cpp +++ b/dom/file/MultipartBlobImpl.cpp @@ -15,8 +15,6 @@ #include "nsTArray.h" #include "nsJSUtils.h" #include "nsContentUtils.h" -#include "nsIScriptError.h" -#include "nsIXPConnect.h" #include using namespace mozilla; diff --git a/dom/file/ipc/IPCBlobInputStreamChild.h b/dom/file/ipc/IPCBlobInputStreamChild.h index 4560c3db61a1..8a6a1b5ca872 100644 --- a/dom/file/ipc/IPCBlobInputStreamChild.h +++ b/dom/file/ipc/IPCBlobInputStreamChild.h @@ -10,7 +10,6 @@ #include "mozilla/dom/PIPCBlobInputStreamChild.h" #include "mozilla/Mutex.h" #include "mozilla/UniquePtr.h" -#include "nsIThread.h" #include "nsTArray.h" namespace mozilla { diff --git a/dom/file/ipc/IPCBlobInputStreamThread.h b/dom/file/ipc/IPCBlobInputStreamThread.h index 08c97c14ef85..e94f4d9b3a1a 100644 --- a/dom/file/ipc/IPCBlobInputStreamThread.h +++ b/dom/file/ipc/IPCBlobInputStreamThread.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_IPCBlobInputStreamThread_h #define mozilla_dom_IPCBlobInputStreamThread_h -#include "nsIObserverService.h" #include "nsIEventTarget.h" #include "nsIObserver.h" diff --git a/dom/file/ipc/TemporaryIPCBlobParent.cpp b/dom/file/ipc/TemporaryIPCBlobParent.cpp index 39b61de3e16a..f5d3e7903983 100644 --- a/dom/file/ipc/TemporaryIPCBlobParent.cpp +++ b/dom/file/ipc/TemporaryIPCBlobParent.cpp @@ -8,7 +8,6 @@ #include "mozilla/dom/FileBlobImpl.h" #include "nsAnonymousTemporaryFile.h" -#include "nsIFileStreams.h" #include "TemporaryFileBlobImpl.h" namespace mozilla { diff --git a/dom/file/uri/BlobURLProtocolHandler.h b/dom/file/uri/BlobURLProtocolHandler.h index e99d41f9181a..fb48b5f25ac5 100644 --- a/dom/file/uri/BlobURLProtocolHandler.h +++ b/dom/file/uri/BlobURLProtocolHandler.h @@ -11,7 +11,6 @@ #include "nsIProtocolHandler.h" #include "nsIURI.h" #include "nsCOMPtr.h" -#include "nsIInputStream.h" #include "nsTArray.h" #include "nsWeakReference.h" diff --git a/dom/file/uri/FontTableURIProtocolHandler.cpp b/dom/file/uri/FontTableURIProtocolHandler.cpp index 8b1741789e63..b62c7b5ec9ca 100644 --- a/dom/file/uri/FontTableURIProtocolHandler.cpp +++ b/dom/file/uri/FontTableURIProtocolHandler.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "FontTableURIProtocolHandler.h" -#include "nsIURIMutator.h" #include "nsIUUIDGenerator.h" #include "nsNetUtil.h" #include "nsSimpleURI.h" diff --git a/dom/filesystem/GetDirectoryListingTask.cpp b/dom/filesystem/GetDirectoryListingTask.cpp index b09a7e1bcbb0..8da0988fb374 100644 --- a/dom/filesystem/GetDirectoryListingTask.cpp +++ b/dom/filesystem/GetDirectoryListingTask.cpp @@ -16,7 +16,6 @@ #include "mozilla/dom/Promise.h" #include "mozilla/dom/UnionTypes.h" #include "nsIFile.h" -#include "nsISimpleEnumerator.h" #include "nsString.h" namespace mozilla { diff --git a/dom/gamepad/GamepadManager.cpp b/dom/gamepad/GamepadManager.cpp index b9e559661dff..d4abab550bd5 100644 --- a/dom/gamepad/GamepadManager.cpp +++ b/dom/gamepad/GamepadManager.cpp @@ -25,7 +25,6 @@ #include "nsGlobalWindow.h" #include "nsIObserver.h" #include "nsIObserverService.h" -#include "nsIServiceManager.h" #include "nsThreadUtils.h" #include "VRManagerChild.h" #include "mozilla/Services.h" diff --git a/dom/gamepad/GamepadPlatformService.cpp b/dom/gamepad/GamepadPlatformService.cpp index 831411adef7f..2124948480ef 100644 --- a/dom/gamepad/GamepadPlatformService.cpp +++ b/dom/gamepad/GamepadPlatformService.cpp @@ -13,7 +13,6 @@ #include "nsCOMPtr.h" #include "nsHashKeys.h" -#include "nsIThread.h" using namespace mozilla::ipc; diff --git a/dom/gamepad/GamepadServiceTest.cpp b/dom/gamepad/GamepadServiceTest.cpp index b372f864cd2a..c4866ce172b7 100644 --- a/dom/gamepad/GamepadServiceTest.cpp +++ b/dom/gamepad/GamepadServiceTest.cpp @@ -19,9 +19,6 @@ #include "mozilla/Unused.h" -#include "nsIObserver.h" -#include "nsIObserverService.h" - namespace mozilla { namespace dom { diff --git a/dom/gamepad/windows/WindowsGamepad.cpp b/dom/gamepad/windows/WindowsGamepad.cpp index 7ca31513c822..83a94e002841 100644 --- a/dom/gamepad/windows/WindowsGamepad.cpp +++ b/dom/gamepad/windows/WindowsGamepad.cpp @@ -15,7 +15,6 @@ #include #include -#include "nsIComponentManager.h" #include "nsITimer.h" #include "nsTArray.h" #include "nsThreadUtils.h" diff --git a/dom/geolocation/Geolocation.h b/dom/geolocation/Geolocation.h index ac7c2f05f72d..071712c4c61b 100644 --- a/dom/geolocation/Geolocation.h +++ b/dom/geolocation/Geolocation.h @@ -30,7 +30,6 @@ #include "mozilla/dom/CallbackObject.h" #include "nsIGeolocationProvider.h" -#include "nsIContentPermissionPrompt.h" #include "mozilla/Attributes.h" class nsGeolocationService; diff --git a/dom/geolocation/MLSFallback.cpp b/dom/geolocation/MLSFallback.cpp index 71c9ddda22f4..cc8b309f4660 100644 --- a/dom/geolocation/MLSFallback.cpp +++ b/dom/geolocation/MLSFallback.cpp @@ -6,6 +6,7 @@ #include "MLSFallback.h" #include "GeolocationPosition.h" +#include "nsComponentManagerUtils.h" #include "nsIGeolocationProvider.h" #include "nsServiceManagerUtils.h" diff --git a/dom/html/HTMLAreaElement.h b/dom/html/HTMLAreaElement.h index b9b4a1e2cab2..413f902050fe 100644 --- a/dom/html/HTMLAreaElement.h +++ b/dom/html/HTMLAreaElement.h @@ -11,7 +11,6 @@ #include "mozilla/dom/Link.h" #include "nsGenericHTMLElement.h" #include "nsGkAtoms.h" -#include "nsIURL.h" namespace mozilla { class EventChainPostVisitor; diff --git a/dom/html/HTMLButtonElement.cpp b/dom/html/HTMLButtonElement.cpp index 19a1e2ebd380..ae81d3a8f9ca 100644 --- a/dom/html/HTMLButtonElement.cpp +++ b/dom/html/HTMLButtonElement.cpp @@ -14,7 +14,6 @@ #include "nsStyleConsts.h" #include "nsPresContext.h" #include "nsIFormControl.h" -#include "nsIURL.h" #include "nsIFrame.h" #include "nsIFormControlFrame.h" #include "mozilla/dom/Document.h" diff --git a/dom/html/HTMLCanvasElement.cpp b/dom/html/HTMLCanvasElement.cpp index 2ad9ece68da7..058880c7e694 100644 --- a/dom/html/HTMLCanvasElement.cpp +++ b/dom/html/HTMLCanvasElement.cpp @@ -34,10 +34,7 @@ #include "nsContentUtils.h" #include "nsDisplayList.h" #include "nsDOMJSUtils.h" -#include "nsIScriptSecurityManager.h" #include "nsITimer.h" -#include "nsIWritablePropertyBag2.h" -#include "nsIXPConnect.h" #include "nsJSUtils.h" #include "nsLayoutUtils.h" #include "nsMathUtils.h" diff --git a/dom/html/HTMLEmbedElement.cpp b/dom/html/HTMLEmbedElement.cpp index f46e207e1ca2..4df6cfe9f255 100644 --- a/dom/html/HTMLEmbedElement.cpp +++ b/dom/html/HTMLEmbedElement.cpp @@ -13,7 +13,6 @@ #include "mozilla/dom/Document.h" #include "nsIPluginDocument.h" #include "nsThreadUtils.h" -#include "nsIScriptError.h" #include "nsIWidget.h" #include "nsContentUtils.h" #ifdef XP_MACOSX diff --git a/dom/html/HTMLFormElement.cpp b/dom/html/HTMLFormElement.cpp index df7de98c332a..3102e814e6f1 100644 --- a/dom/html/HTMLFormElement.cpp +++ b/dom/html/HTMLFormElement.cpp @@ -32,7 +32,6 @@ #include "nsCOMArray.h" #include "nsAutoPtr.h" #include "nsTArray.h" -#include "nsIMutableArray.h" #include "mozilla/BinarySearch.h" #include "nsQueryObject.h" @@ -43,7 +42,6 @@ #include "mozilla/Telemetry.h" #include "nsIFormSubmitObserver.h" #include "nsIObserverService.h" -#include "nsICategoryManager.h" #include "nsCategoryManagerUtils.h" #include "nsISimpleEnumerator.h" #include "nsRange.h" @@ -56,7 +54,6 @@ #include "nsIPrompt.h" #include "nsISecurityUITelemetry.h" #include "nsIStringBundle.h" -#include "nsIProtocolHandler.h" // radio buttons #include "mozilla/dom/HTMLInputElement.h" @@ -72,8 +69,6 @@ #include "nsSandboxFlags.h" -#include "nsIContentSecurityPolicy.h" - // images #include "mozilla/dom/HTMLImageElement.h" #include "mozilla/dom/HTMLButtonElement.h" diff --git a/dom/html/HTMLFormSubmission.cpp b/dom/html/HTMLFormSubmission.cpp index f2d32c0d17e1..7ce02ccbb61c 100644 --- a/dom/html/HTMLFormSubmission.cpp +++ b/dom/html/HTMLFormSubmission.cpp @@ -14,7 +14,6 @@ #include "nsError.h" #include "nsGenericHTMLElement.h" #include "nsAttrValueInlines.h" -#include "nsIFile.h" #include "nsDirectoryServiceDefs.h" #include "nsStringStream.h" #include "nsIURI.h" @@ -26,12 +25,8 @@ #include "nsUnicharUtils.h" #include "nsIMultiplexInputStream.h" #include "nsIMIMEInputStream.h" -#include "nsIMIMEService.h" -#include "nsIConsoleService.h" #include "nsIScriptError.h" -#include "nsIStringBundle.h" #include "nsCExternalHandlerService.h" -#include "nsIFileStreams.h" #include "nsContentUtils.h" #include "mozilla/dom/Directory.h" diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp index a9c117e01b71..3297ef790fa1 100644 --- a/dom/html/HTMLImageElement.cpp +++ b/dom/html/HTMLImageElement.cpp @@ -15,9 +15,6 @@ #include "mozilla/dom/Document.h" #include "nsImageFrame.h" #include "nsIScriptContext.h" -#include "nsIURL.h" -#include "nsIIOService.h" -#include "nsIServiceManager.h" #include "nsContentUtils.h" #include "nsContainerFrame.h" #include "nsNodeInfoManager.h" @@ -35,12 +32,9 @@ #include "mozilla/dom/HTMLSourceElement.h" #include "mozilla/dom/ResponsiveImageSelector.h" -#include "imgIContainer.h" -#include "imgILoader.h" #include "imgINotificationObserver.h" #include "imgRequestProxy.h" -#include "nsILoadGroup.h" #include "mozilla/CycleCollectedJSContext.h" #include "mozilla/EventDispatcher.h" diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp index c0483590b22a..c5d00a277cef 100644 --- a/dom/html/HTMLInputElement.cpp +++ b/dom/html/HTMLInputElement.cpp @@ -37,7 +37,6 @@ #include "nsPIDOMWindow.h" #include "nsRepeatService.h" #include "nsContentCID.h" -#include "nsIComponentManager.h" #include "mozilla/dom/ProgressEvent.h" #include "nsGkAtoms.h" #include "nsStyleConsts.h" @@ -49,7 +48,6 @@ #include "nsITextControlFrame.h" #include "nsIFrame.h" #include "nsRangeFrame.h" -#include "nsIServiceManager.h" #include "nsError.h" #include "nsIEditor.h" #include "nsAttrValueOrString.h" @@ -103,8 +101,6 @@ #include "mozilla/MathAlgorithms.h" #include "mozilla/TextUtils.h" -#include "nsIIDNService.h" - #include #include "nsIColorPicker.h" diff --git a/dom/html/HTMLInputElement.h b/dom/html/HTMLInputElement.h index fb39b7c27c26..d71efbf305a8 100644 --- a/dom/html/HTMLInputElement.h +++ b/dom/html/HTMLInputElement.h @@ -20,7 +20,6 @@ #include "mozilla/dom/UnionTypes.h" #include "nsGenericHTMLElement.h" #include "nsImageLoadingContent.h" -#include "nsITimer.h" #include "nsCOMPtr.h" #include "nsIConstraintValidation.h" #include "nsIFilePicker.h" diff --git a/dom/html/HTMLLinkElement.cpp b/dom/html/HTMLLinkElement.cpp index 9f9ce4a96585..1dae0e56a920 100644 --- a/dom/html/HTMLLinkElement.cpp +++ b/dom/html/HTMLLinkElement.cpp @@ -27,7 +27,6 @@ #include "nsINode.h" #include "nsIPrefetchService.h" #include "nsIStyleSheetLinkingElement.h" -#include "nsIURL.h" #include "nsPIDOMWindow.h" #include "nsReadableUtils.h" #include "nsStyleConsts.h" diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index c3447c52a5f5..55549352b9da 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -91,24 +91,17 @@ #include "nsGenericHTMLElement.h" #include "nsGkAtoms.h" #include "nsIAsyncVerifyRedirectCallback.h" -#include "nsIAutoplay.h" #include "nsICachingChannel.h" -#include "nsICategoryManager.h" #include "nsIClassOfService.h" #include "nsIContentPolicy.h" -#include "nsIContentSecurityPolicy.h" #include "nsIDocShell.h" #include "mozilla/dom/Document.h" #include "nsIFrame.h" #include "nsIObserverService.h" -#include "nsIPermissionManager.h" #include "nsIRequest.h" #include "nsIScriptError.h" -#include "nsIScriptSecurityManager.h" #include "nsISupportsPrimitives.h" -#include "nsIThreadInternal.h" #include "nsITimer.h" -#include "nsIXPConnect.h" #include "nsJSUtils.h" #include "nsLayoutUtils.h" #include "nsMediaFragmentURIParser.h" diff --git a/dom/html/HTMLMediaElement.h b/dom/html/HTMLMediaElement.h index 53c15f720a28..4109c5753a04 100644 --- a/dom/html/HTMLMediaElement.h +++ b/dom/html/HTMLMediaElement.h @@ -15,10 +15,8 @@ #include "MediaPlaybackDelayPolicy.h" #include "MediaPromiseDefs.h" #include "nsCycleCollectionParticipant.h" -#include "nsIObserver.h" #include "mozilla/CORSMode.h" #include "DecoderTraits.h" -#include "nsIAudioChannelAgent.h" #include "mozilla/Attributes.h" #include "mozilla/StateWatching.h" #include "mozilla/WeakPtr.h" diff --git a/dom/html/HTMLMetaElement.cpp b/dom/html/HTMLMetaElement.cpp index c86c72a5c364..8ce29c472654 100644 --- a/dom/html/HTMLMetaElement.cpp +++ b/dom/html/HTMLMetaElement.cpp @@ -15,7 +15,6 @@ #include "mozilla/StaticPrefs_security.h" #include "nsContentUtils.h" #include "nsStyleConsts.h" -#include "nsIContentSecurityPolicy.h" static mozilla::LazyLogModule gMetaElementLog("nsMetaElement"); #define LOG(msg) MOZ_LOG(gMetaElementLog, mozilla::LogLevel::Debug, msg) diff --git a/dom/html/HTMLScriptElement.cpp b/dom/html/HTMLScriptElement.cpp index 473fadabe31a..adf755c94377 100644 --- a/dom/html/HTMLScriptElement.cpp +++ b/dom/html/HTMLScriptElement.cpp @@ -7,16 +7,13 @@ #include "nsGkAtoms.h" #include "nsStyleConsts.h" #include "mozilla/dom/Document.h" -#include "nsIURI.h" #include "nsNetUtil.h" #include "nsContentUtils.h" #include "nsUnicharUtils.h" // for nsCaseInsensitiveStringComparator() #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" -#include "nsIXPConnect.h" #include "nsServiceManagerUtils.h" #include "nsError.h" -#include "nsIArray.h" #include "nsTArray.h" #include "nsDOMJSUtils.h" #include "nsIScriptError.h" diff --git a/dom/html/HTMLTextAreaElement.cpp b/dom/html/HTMLTextAreaElement.cpp index dce90e1255d9..1fd4d9eb4105 100644 --- a/dom/html/HTMLTextAreaElement.cpp +++ b/dom/html/HTMLTextAreaElement.cpp @@ -23,7 +23,6 @@ #include "nsContentCreatorFunctions.h" #include "nsError.h" #include "nsFocusManager.h" -#include "nsIComponentManager.h" #include "nsIConstraintValidation.h" #include "nsIControllers.h" #include "mozilla/dom/Document.h" @@ -31,7 +30,6 @@ #include "nsIFormControl.h" #include "nsIForm.h" #include "nsIFrame.h" -#include "nsISupportsPrimitives.h" #include "nsITextControlFrame.h" #include "nsLayoutUtils.h" #include "nsLinebreakConverter.h" diff --git a/dom/html/HTMLTrackElement.cpp b/dom/html/HTMLTrackElement.cpp index 6325bda2f49d..182eaeec80dd 100644 --- a/dom/html/HTMLTrackElement.cpp +++ b/dom/html/HTMLTrackElement.cpp @@ -19,17 +19,10 @@ #include "nsCycleCollectionParticipant.h" #include "nsGenericHTMLElement.h" #include "nsGkAtoms.h" -#include "nsIAsyncVerifyRedirectCallback.h" -#include "nsICachingChannel.h" -#include "nsIChannelEventSink.h" #include "nsIContentPolicy.h" -#include "nsIContentSecurityPolicy.h" #include "mozilla/dom/Document.h" -#include "nsIHttpChannel.h" -#include "nsIInterfaceRequestor.h" #include "nsILoadGroup.h" #include "nsIObserver.h" -#include "nsIStreamListener.h" #include "nsISupportsImpl.h" #include "nsISupportsPrimitives.h" #include "nsMappedAttributes.h" diff --git a/dom/html/HTMLTrackElement.h b/dom/html/HTMLTrackElement.h index c1e428d5b6e6..e0999273f283 100644 --- a/dom/html/HTMLTrackElement.h +++ b/dom/html/HTMLTrackElement.h @@ -13,7 +13,6 @@ #include "nsCycleCollectionParticipant.h" #include "nsGenericHTMLElement.h" #include "nsGkAtoms.h" -#include "nsIHttpChannel.h" class nsIContent; diff --git a/dom/html/HTMLVideoElement.cpp b/dom/html/HTMLVideoElement.cpp index f400fc7d8ea6..341193ba0f4b 100644 --- a/dom/html/HTMLVideoElement.cpp +++ b/dom/html/HTMLVideoElement.cpp @@ -18,11 +18,6 @@ #include "VideoFrameContainer.h" #include "VideoOutput.h" -#include "nsIScriptSecurityManager.h" -#include "nsIXPConnect.h" - -#include "nsITimer.h" - #include "FrameStatistics.h" #include "MediaError.h" #include "MediaDecoder.h" diff --git a/dom/html/ImageDocument.cpp b/dom/html/ImageDocument.cpp index 7717d05e7c90..0a9af1fea0a9 100644 --- a/dom/html/ImageDocument.cpp +++ b/dom/html/ImageDocument.cpp @@ -24,7 +24,6 @@ #include "nsIFrame.h" #include "nsGkAtoms.h" #include "imgIRequest.h" -#include "imgILoader.h" #include "imgIContainer.h" #include "imgINotificationObserver.h" #include "nsPresContext.h" diff --git a/dom/html/MediaDocument.cpp b/dom/html/MediaDocument.cpp index 9697e5b45931..a67ae6211983 100644 --- a/dom/html/MediaDocument.cpp +++ b/dom/html/MediaDocument.cpp @@ -8,11 +8,9 @@ #include "nsGkAtoms.h" #include "nsRect.h" #include "nsPresContext.h" -#include "nsIScrollable.h" #include "nsViewManager.h" #include "nsITextToSubURI.h" #include "nsIURL.h" -#include "nsIContentViewer.h" #include "nsIDocShell.h" #include "nsCharsetSource.h" // kCharsetFrom* macro definition #include "nsNodeInfoManager.h" diff --git a/dom/html/PluginDocument.cpp b/dom/html/PluginDocument.cpp index 655a5ad27654..c9ec51f96407 100644 --- a/dom/html/PluginDocument.cpp +++ b/dom/html/PluginDocument.cpp @@ -14,7 +14,6 @@ #include "nsNodeInfoManager.h" #include "nsContentCreatorFunctions.h" #include "nsContentPolicyUtils.h" -#include "nsIPropertyBag2.h" #include "mozilla/dom/Element.h" #include "mozilla/PresShell.h" #include "nsObjectLoadingContent.h" diff --git a/dom/html/TextControlState.cpp b/dom/html/TextControlState.cpp index 7bf9f9ab1a97..1b1114a68e54 100644 --- a/dom/html/TextControlState.cpp +++ b/dom/html/TextControlState.cpp @@ -15,13 +15,11 @@ #include "nsContentCreatorFunctions.h" #include "nsTextControlFrame.h" #include "nsIControllers.h" -#include "nsITransactionManager.h" #include "nsIControllerContext.h" #include "nsAttrValue.h" #include "nsAttrValueInlines.h" #include "nsGenericHTMLElement.h" #include "nsIDOMEventListener.h" -#include "nsIEditorObserver.h" #include "nsIWidget.h" #include "nsIDocumentEncoder.h" #include "nsPIDOMWindow.h" diff --git a/dom/html/nsBrowserElement.cpp b/dom/html/nsBrowserElement.cpp index c43647368f12..9c7b91250b26 100644 --- a/dom/html/nsBrowserElement.cpp +++ b/dom/html/nsBrowserElement.cpp @@ -14,9 +14,7 @@ #include "nsComponentManagerUtils.h" #include "nsFrameLoader.h" -#include "nsIMozBrowserFrame.h" #include "nsINode.h" -#include "nsIPrincipal.h" #include "js/Wrapper.h" diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp index 9f1cefe58a3a..3c26cf099c42 100644 --- a/dom/html/nsGenericHTMLElement.cpp +++ b/dom/html/nsGenericHTMLElement.cpp @@ -26,14 +26,11 @@ #include "nsAtom.h" #include "nsQueryObject.h" #include "nsIContentInlines.h" -#include "nsIContentViewer.h" #include "mozilla/dom/BindContext.h" #include "mozilla/dom/Document.h" -#include "nsIDocumentEncoder.h" #include "nsMappedAttributes.h" #include "nsHTMLStyleSheet.h" #include "nsPIDOMWindow.h" -#include "nsIURL.h" #include "nsEscape.h" #include "nsIFrameInlines.h" #include "nsIScrollableFrame.h" @@ -42,7 +39,6 @@ #include "nsIWidget.h" #include "nsRange.h" #include "nsPresContext.h" -#include "nsIDocShell.h" #include "nsNameSpaceManager.h" #include "nsError.h" #include "nsIPrincipal.h" diff --git a/dom/html/nsGenericHTMLFrameElement.h b/dom/html/nsGenericHTMLFrameElement.h index ee4f2c6fa983..89e17db292ec 100644 --- a/dom/html/nsGenericHTMLFrameElement.h +++ b/dom/html/nsGenericHTMLFrameElement.h @@ -14,7 +14,6 @@ #include "nsFrameLoader.h" #include "nsFrameLoaderOwner.h" #include "nsGenericHTMLElement.h" -#include "nsIDOMEventListener.h" #include "nsIMozBrowserFrame.h" namespace mozilla { diff --git a/dom/html/nsHTMLContentSink.cpp b/dom/html/nsHTMLContentSink.cpp index 3b47e231fe9b..c786730bae08 100644 --- a/dom/html/nsHTMLContentSink.cpp +++ b/dom/html/nsHTMLContentSink.cpp @@ -21,10 +21,8 @@ #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" #include "nsIURI.h" -#include "nsIContentViewer.h" #include "mozilla/dom/NodeInfo.h" #include "mozilla/dom/ScriptLoader.h" -#include "nsIAppShell.h" #include "nsCRT.h" #include "prtime.h" #include "mozilla/Logging.h" @@ -38,36 +36,25 @@ #include "nsIScriptElement.h" -#include "nsIComponentManager.h" -#include "nsIServiceManager.h" - #include "nsDocElementCreatedNotificationRunner.h" #include "nsGkAtoms.h" #include "nsContentUtils.h" #include "nsIChannel.h" -#include "nsIHttpChannel.h" -#include "nsIDocShell.h" #include "mozilla/dom/Document.h" #include "nsStubDocumentObserver.h" #include "nsHTMLDocument.h" -#include "nsICookieService.h" #include "nsTArray.h" -#include "nsIScriptSecurityManager.h" -#include "nsIPrincipal.h" #include "nsTextFragment.h" #include "nsIScriptGlobalObject.h" #include "nsNameSpaceManager.h" #include "nsIStyleSheetLinkingElement.h" -#include "nsITimer.h" #include "nsError.h" #include "nsContentPolicyUtils.h" #include "nsIScriptContext.h" #include "nsStyleLinkElement.h" -#include "nsIPrompt.h" #include "nsLayoutCID.h" -#include "nsIDocShellTreeItem.h" #include "nsEscape.h" #include "nsNodeInfoManager.h" diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp index 1b6eb235547d..aadc9379277a 100644 --- a/dom/html/nsHTMLDocument.cpp +++ b/dom/html/nsHTMLDocument.cpp @@ -6,7 +6,6 @@ #include "nsHTMLDocument.h" -#include "nsIContentPolicy.h" #include "mozilla/DebugOnly.h" #include "mozilla/PresShell.h" #include "mozilla/StaticPrefs_intl.h" @@ -17,9 +16,7 @@ #include "nsPrintfCString.h" #include "nsReadableUtils.h" #include "nsUnicharUtils.h" -#include "nsIContentSecurityPolicy.h" #include "nsGlobalWindowInner.h" -#include "nsIDocumentLoader.h" #include "nsIHTMLContentSink.h" #include "nsIXMLContentSink.h" #include "nsHTMLParts.h" @@ -30,48 +27,33 @@ #include "nsDOMString.h" #include "nsIStreamListener.h" #include "nsIURI.h" -#include "nsIURIMutator.h" -#include "nsIIOService.h" #include "nsNetUtil.h" #include "nsIContentViewer.h" #include "nsDocShell.h" #include "nsDocShellLoadTypes.h" -#include "nsIWebNavigation.h" -#include "nsIBaseWindow.h" #include "nsIScriptContext.h" -#include "nsIXPConnect.h" #include "nsContentList.h" #include "nsError.h" #include "nsIPrincipal.h" #include "nsJSPrincipals.h" -#include "nsIScriptSecurityManager.h" #include "nsAttrName.h" #include "nsNetCID.h" -#include "nsIServiceManager.h" -#include "nsIConsoleService.h" -#include "nsIComponentManager.h" #include "nsParserCIID.h" #include "mozilla/parser/PrototypeDocumentParser.h" #include "mozilla/dom/PrototypeDocumentContentSink.h" #include "nsNameSpaceManager.h" #include "nsGenericHTMLElement.h" #include "mozilla/css/Loader.h" -#include "nsIHttpChannel.h" -#include "nsIFile.h" #include "nsFrameSelection.h" #include "nsContentUtils.h" #include "nsJSUtils.h" #include "DocumentInlines.h" -#include "nsIDocumentEncoder.h" //for outputting selection #include "nsICachingChannel.h" #include "nsIContentViewer.h" #include "nsIScriptElement.h" -#include "nsIScriptError.h" -#include "nsIMutableArray.h" #include "nsArrayUtils.h" -#include "nsIEffectiveTLDService.h" // AHMED 12-2 #include "nsBidiUtils.h" @@ -93,18 +75,15 @@ #include "nsHtml5TreeOpExecutor.h" #include "nsHtml5Parser.h" #include "nsSandboxFlags.h" -#include "nsIImageDocument.h" #include "mozilla/dom/HTMLBodyElement.h" #include "mozilla/dom/HTMLDocumentBinding.h" #include "mozilla/dom/nsCSPContext.h" #include "mozilla/dom/Selection.h" #include "mozilla/dom/ShadowIncludingTreeIterator.h" #include "nsCharsetSource.h" -#include "nsIStringBundle.h" #include "nsFocusManager.h" #include "nsIFrame.h" #include "nsIContent.h" -#include "nsIStructuredCloneContainer.h" #include "mozilla/StyleSheet.h" #include "mozilla/StyleSheetInlines.h" #include "mozilla/Unused.h" diff --git a/dom/html/nsHTMLDocument.h b/dom/html/nsHTMLDocument.h index 88375fea1364..7ae59bcff19b 100644 --- a/dom/html/nsHTMLDocument.h +++ b/dom/html/nsHTMLDocument.h @@ -14,7 +14,6 @@ #include "nsTArray.h" #include "PLDHashTable.h" -#include "nsIHttpChannel.h" #include "nsThreadUtils.h" #include "mozilla/dom/HTMLSharedElement.h" #include "mozilla/dom/BindingDeclarations.h" diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 17f22496927f..3e4c83dd8d09 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -70,6 +70,9 @@ #include "mozilla/ipc/PBackgroundParent.h" #include "mozilla/Scoped.h" #include "mozilla/storage/Variant.h" +#include "mozIStorageFunction.h" +#include "mozIStorageProgressHandler.h" +#include "mozIStorageService.h" #include "nsAutoPtr.h" #include "nsCharSeparatedTokenizer.h" #include "nsClassHashtable.h" @@ -80,18 +83,14 @@ #include "nsHashKeys.h" #include "nsNetUtil.h" #include "nsIAsyncInputStream.h" -#include "nsISimpleEnumerator.h" #include "nsIEventTarget.h" #include "nsIFile.h" #include "nsIFileURL.h" #include "nsIFileProtocolHandler.h" #include "nsIInputStream.h" -#include "nsIInterfaceRequestor.h" #include "nsInterfaceHashtable.h" #include "nsIOutputStream.h" -#include "nsIPipe.h" #include "nsIPrincipal.h" -#include "nsIScriptSecurityManager.h" #include "nsISupports.h" #include "nsISupportsImpl.h" #include "nsISupportsPriority.h" diff --git a/dom/indexedDB/IDBFactory.cpp b/dom/indexedDB/IDBFactory.cpp index 6d9be9f1a534..2608fb5972b6 100644 --- a/dom/indexedDB/IDBFactory.cpp +++ b/dom/indexedDB/IDBFactory.cpp @@ -23,7 +23,6 @@ #include "mozilla/StaticPrefs_dom.h" #include "mozilla/StorageAccess.h" #include "mozilla/Telemetry.h" -#include "mozIThirdPartyUtil.h" #include "nsAboutProtocolUtils.h" #include "nsContentUtils.h" #include "nsGlobalWindow.h" diff --git a/dom/indexedDB/IDBMutableFile.cpp b/dom/indexedDB/IDBMutableFile.cpp index 6377a336a5bc..af21cdcc7d0c 100644 --- a/dom/indexedDB/IDBMutableFile.cpp +++ b/dom/indexedDB/IDBMutableFile.cpp @@ -26,8 +26,6 @@ #include "nsContentUtils.h" #include "nsDebug.h" #include "nsError.h" -#include "nsIInputStream.h" -#include "nsIPrincipal.h" #include "ReportInternalError.h" namespace mozilla { diff --git a/dom/indexedDB/IDBObjectStore.cpp b/dom/indexedDB/IDBObjectStore.cpp index e24c810a9047..f99274eadd6a 100644 --- a/dom/indexedDB/IDBObjectStore.cpp +++ b/dom/indexedDB/IDBObjectStore.cpp @@ -46,6 +46,7 @@ #include "mozilla/ipc/PBackgroundSharedTypes.h" #include "mozilla/SystemGroup.h" #include "nsCOMPtr.h" +#include "nsIXPConnect.h" #include "nsQueryObject.h" #include "nsStreamUtils.h" #include "nsStringStream.h" diff --git a/dom/indexedDB/IndexedDatabaseInlines.h b/dom/indexedDB/IndexedDatabaseInlines.h index 76cfb5d49595..00081a4d2cb0 100644 --- a/dom/indexedDB/IndexedDatabaseInlines.h +++ b/dom/indexedDB/IndexedDatabaseInlines.h @@ -16,7 +16,6 @@ #include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h" #include "mozilla/dom/DOMStringList.h" #include "mozilla/dom/File.h" -#include "nsIInputStream.h" namespace mozilla { namespace dom { diff --git a/dom/indexedDB/IndexedDatabaseManager.cpp b/dom/indexedDB/IndexedDatabaseManager.cpp index 6f16719cdb8e..f544f7107ed5 100644 --- a/dom/indexedDB/IndexedDatabaseManager.cpp +++ b/dom/indexedDB/IndexedDatabaseManager.cpp @@ -7,7 +7,6 @@ #include "IndexedDatabaseManager.h" #include "chrome/common/ipc_channel.h" // for IPC::Channel::kMaximumMessageSize -#include "nsIConsoleService.h" #include "nsIScriptError.h" #include "nsIScriptGlobalObject.h" diff --git a/dom/ipc/BrowserBridgeChild.cpp b/dom/ipc/BrowserBridgeChild.cpp index 63c42d6e1bb4..ddd3abcbf181 100644 --- a/dom/ipc/BrowserBridgeChild.cpp +++ b/dom/ipc/BrowserBridgeChild.cpp @@ -20,7 +20,6 @@ #include "nsFocusManager.h" #include "nsFrameLoader.h" #include "nsFrameLoaderOwner.h" -#include "nsIDocShellTreeOwner.h" #include "nsQueryObject.h" #include "nsSubDocumentFrame.h" #include "nsView.h" diff --git a/dom/ipc/BrowserChild.cpp b/dom/ipc/BrowserChild.cpp index fd3ff8f770cb..aee8dc94887a 100644 --- a/dom/ipc/BrowserChild.cpp +++ b/dom/ipc/BrowserChild.cpp @@ -83,18 +83,15 @@ #include "nsIBrowserDOMWindow.h" #include "nsIClassifiedChannel.h" #include "DocumentInlines.h" -#include "nsIDocShellTreeOwner.h" -#include "nsIDOMChromeWindow.h" #include "nsFocusManager.h" #include "EventStateManager.h" #include "nsIDocShell.h" #include "nsIFrame.h" +#include "nsISecureBrowserUI.h" #include "nsIURI.h" #include "nsIURIMutator.h" -#include "nsIURIFixup.h" #include "nsIWebBrowser.h" #include "nsIWebProgress.h" -#include "nsIXULRuntime.h" #include "nsPIDOMWindow.h" #include "nsPIWindowRoot.h" #include "nsPointerHashKeys.h" @@ -118,8 +115,6 @@ #include "nsColorPickerProxy.h" #include "nsContentPermissionHelper.h" #include "nsNetUtil.h" -#include "nsIPermissionManager.h" -#include "nsIURILoader.h" #include "nsIScriptError.h" #include "mozilla/EventForwards.h" #include "nsDeviceContext.h" @@ -130,11 +125,9 @@ #include "nsISHEntry.h" #include "nsISHistory.h" #include "nsQueryObject.h" -#include "nsIHttpChannel.h" #include "mozilla/dom/DocGroup.h" #include "nsString.h" #include "nsStringStream.h" -#include "nsISupportsPrimitives.h" #include "mozilla/Telemetry.h" #include "nsDocShellLoadState.h" #include "nsWebBrowser.h" diff --git a/dom/ipc/BrowserChild.h b/dom/ipc/BrowserChild.h index 1bd4287b42b4..020a5612b060 100644 --- a/dom/ipc/BrowserChild.h +++ b/dom/ipc/BrowserChild.h @@ -42,7 +42,6 @@ #include "PuppetWidget.h" #include "mozilla/layers/GeckoContentController.h" #include "nsDeque.h" -#include "nsISHistoryListener.h" class nsBrowserStatusFilter; class nsIDOMWindow; diff --git a/dom/ipc/BrowserParent.cpp b/dom/ipc/BrowserParent.cpp index 8f407f8ac088..cd041f52f136 100644 --- a/dom/ipc/BrowserParent.cpp +++ b/dom/ipc/BrowserParent.cpp @@ -68,11 +68,10 @@ #include "nsIInterfaceRequestorUtils.h" #include "nsILoadInfo.h" #include "nsIPromptFactory.h" -#include "nsITransportSecurityInfo.h" #include "nsIURI.h" -#include "nsIWindowWatcher.h" #include "nsIWebBrowserChrome.h" #include "nsIWebProtocolHandlerRegistrar.h" +#include "nsIXPConnect.h" #include "nsIXULBrowserWindow.h" #include "nsIAppWindow.h" #include "nsViewManager.h" diff --git a/dom/ipc/BrowserParent.h b/dom/ipc/BrowserParent.h index f240bd224761..7e26e57d1122 100644 --- a/dom/ipc/BrowserParent.h +++ b/dom/ipc/BrowserParent.h @@ -28,7 +28,6 @@ #include "nsIBrowserDOMWindow.h" #include "nsIDOMEventListener.h" #include "nsIKeyEventInPluginCallback.h" -#include "nsIRemoteTab.h" #include "nsIXULBrowserWindow.h" #include "nsRefreshDriver.h" #include "nsWeakReference.h" diff --git a/dom/ipc/CSPMessageUtils.cpp b/dom/ipc/CSPMessageUtils.cpp index 433bba12cca8..2db06b74fac2 100644 --- a/dom/ipc/CSPMessageUtils.cpp +++ b/dom/ipc/CSPMessageUtils.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/dom/CSPMessageUtils.h" -#include "nsISerializable.h" #include "nsSerializationHelper.h" namespace IPC { diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index f762b5695d99..660a10b1cffa 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -107,9 +107,7 @@ #include "nsQueryObject.h" #include "imgLoader.h" #include "GMPServiceChild.h" -#include "nsISimpleEnumerator.h" #include "nsIStringBundle.h" -#include "nsIWorkerDebuggerManager.h" #include "Geolocation.h" #include "audio_thread_priority.h" #include "nsIConsoleService.h" @@ -155,12 +153,10 @@ #include "nsIConsoleListener.h" #include "nsIContentViewer.h" #include "nsICycleCollectorListener.h" -#include "nsIIdlePeriod.h" #include "nsIDragService.h" #include "nsIInterfaceRequestorUtils.h" #include "nsIMemoryReporter.h" #include "nsIMemoryInfoDumper.h" -#include "nsIMutable.h" #include "nsIObserverService.h" #include "nsIScriptSecurityManager.h" #include "nsMemoryInfoDumper.h" @@ -199,7 +195,6 @@ #include "nsChromeRegistryContent.h" #include "nsFrameMessageManager.h" -#include "nsIGeolocationProvider.h" #include "mozilla/dom/PCycleCollectWithLogsChild.h" #include "nsIScriptSecurityManager.h" diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 051912ab9063..4ea72e393a3d 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -23,7 +23,6 @@ #include "GMPServiceParent.h" #include "HandlerServiceParent.h" #include "IHistory.h" -#include "imgIContainer.h" #if defined(XP_WIN) && defined(ACCESSIBILITY) # include "mozilla/a11y/AccessibleWrap.h" # include "mozilla/a11y/Compatibility.h" @@ -159,7 +158,6 @@ #include "nsIMemoryInfoDumper.h" #include "nsIMemoryReporter.h" #include "nsIMozBrowserFrame.h" -#include "nsIMutable.h" #include "nsINetworkLinkService.h" #include "nsIObserverService.h" #include "nsIParentChannel.h" @@ -171,14 +169,12 @@ #include "nsISound.h" #include "mozilla/mozSpellChecker.h" #include "nsIStringBundle.h" -#include "nsISupportsPrimitives.h" #include "nsITimer.h" #include "nsIURIFixup.h" #include "nsIURL.h" #include "nsIDocShellTreeOwner.h" #include "nsIAppWindow.h" #include "nsIDOMChromeWindow.h" -#include "nsIWindowWatcher.h" #include "nsPIWindowWatcher.h" #include "nsThread.h" #include "nsWindowWatcher.h" @@ -218,13 +214,11 @@ #include "mozilla/psm/PSMContentListener.h" #include "nsPluginHost.h" #include "nsPluginTags.h" -#include "nsIBlocklistService.h" #include "nsITrackingDBService.h" #include "mozilla/GlobalStyleSheetCache.h" #include "mozilla/StyleSheet.h" #include "mozilla/StyleSheetInlines.h" #include "nsICaptivePortalService.h" -#include "nsIObjectLoadingContent.h" #include "nsIBidiKeyboard.h" #include "MMPrinter.h" #include "nsStreamUtils.h" diff --git a/dom/ipc/ContentParent.h b/dom/ipc/ContentParent.h index 0368494dbaf7..641a765e377f 100644 --- a/dom/ipc/ContentParent.h +++ b/dom/ipc/ContentParent.h @@ -37,7 +37,6 @@ #include "nsIInterfaceRequestor.h" #include "nsIObserver.h" #include "nsIRemoteTab.h" -#include "nsIThreadInternal.h" #include "nsIDOMGeoPositionCallback.h" #include "nsIDOMGeoPositionErrorCallback.h" #include "nsIRemoteWindowContext.h" diff --git a/dom/ipc/ContentProcessManager.cpp b/dom/ipc/ContentProcessManager.cpp index 55573445826d..23ebbd026eba 100644 --- a/dom/ipc/ContentProcessManager.cpp +++ b/dom/ipc/ContentProcessManager.cpp @@ -12,7 +12,6 @@ #include "mozilla/ClearOnShutdown.h" #include "nsPrintfCString.h" -#include "nsIScriptSecurityManager.h" // XXX need another bug to move this to a common header. #ifdef DISABLE_ASSERTS_FOR_FUZZING diff --git a/dom/ipc/DocShellMessageUtils.cpp b/dom/ipc/DocShellMessageUtils.cpp index ef2acf11d9cb..170a5683e9b8 100644 --- a/dom/ipc/DocShellMessageUtils.cpp +++ b/dom/ipc/DocShellMessageUtils.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/dom/DocShellMessageUtils.h" -#include "nsISerializable.h" #include "nsSerializationHelper.h" namespace mozilla { diff --git a/dom/ipc/JSWindowActor.cpp b/dom/ipc/JSWindowActor.cpp index 98b9478a9cf1..ff479f273171 100644 --- a/dom/ipc/JSWindowActor.cpp +++ b/dom/ipc/JSWindowActor.cpp @@ -11,7 +11,6 @@ #include "mozilla/dom/Promise.h" #include "js/Promise.h" #include "xpcprivate.h" -#include "nsIXPConnect.h" namespace mozilla { namespace dom { diff --git a/dom/ipc/JSWindowActor.h b/dom/ipc/JSWindowActor.h index 789310740b98..3db090439c0e 100644 --- a/dom/ipc/JSWindowActor.h +++ b/dom/ipc/JSWindowActor.h @@ -13,7 +13,6 @@ #include "mozilla/ErrorResult.h" #include "mozilla/dom/PromiseNativeHandler.h" #include "nsRefPtrHashtable.h" -#include "nsIXPConnect.h" class nsIGlobalObject; class nsQueryActor; diff --git a/dom/ipc/ProcessPriorityManager.cpp b/dom/ipc/ProcessPriorityManager.cpp index 2358689663d1..cb66435dee6b 100644 --- a/dom/ipc/ProcessPriorityManager.cpp +++ b/dom/ipc/ProcessPriorityManager.cpp @@ -24,7 +24,6 @@ #include "nsINamed.h" #include "nsIObserverService.h" #include "StaticPtr.h" -#include "nsIMozBrowserFrame.h" #include "nsIObserver.h" #include "nsITimer.h" #include "nsIPropertyBag2.h" diff --git a/dom/ipc/ReferrerInfoUtils.cpp b/dom/ipc/ReferrerInfoUtils.cpp index 8ead0d93f2cb..2bdd1bbece08 100644 --- a/dom/ipc/ReferrerInfoUtils.cpp +++ b/dom/ipc/ReferrerInfoUtils.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/dom/ReferrerInfoUtils.h" -#include "nsISerializable.h" #include "nsSerializationHelper.h" namespace IPC { diff --git a/dom/ipc/StructuredCloneData.cpp b/dom/ipc/StructuredCloneData.cpp index 612a6af7bf40..80d3faa41ee3 100644 --- a/dom/ipc/StructuredCloneData.cpp +++ b/dom/ipc/StructuredCloneData.cpp @@ -6,9 +6,6 @@ #include "StructuredCloneData.h" -#include "nsIMutable.h" -#include "nsIXPConnect.h" - #include "ipc/IPCMessageUtils.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/BlobBinding.h" diff --git a/dom/ipc/TabContext.cpp b/dom/ipc/TabContext.cpp index c2bdc98e1a5e..20c4b62db430 100644 --- a/dom/ipc/TabContext.cpp +++ b/dom/ipc/TabContext.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/BrowserParent.h" #include "mozilla/dom/BrowserChild.h" #include "mozilla/StaticPrefs_dom.h" -#include "nsIScriptSecurityManager.h" #include "nsServiceManagerUtils.h" using namespace mozilla::dom::ipc; diff --git a/dom/jsurl/nsJSProtocolHandler.cpp b/dom/jsurl/nsJSProtocolHandler.cpp index 944c60b12321..7cd446673118 100644 --- a/dom/jsurl/nsJSProtocolHandler.cpp +++ b/dom/jsurl/nsJSProtocolHandler.cpp @@ -17,23 +17,17 @@ #include "nsNetUtil.h" #include "nsIStreamListener.h" -#include "nsIComponentManager.h" -#include "nsIServiceManager.h" #include "nsIURI.h" #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" #include "nsIPrincipal.h" -#include "nsIScriptSecurityManager.h" #include "nsIInterfaceRequestor.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsIWindowMediator.h" #include "nsPIDOMWindow.h" -#include "nsIConsoleService.h" #include "nsEscape.h" #include "nsIWebNavigation.h" #include "nsIDocShell.h" #include "nsIContentViewer.h" -#include "nsIXPConnect.h" #include "nsContentUtils.h" #include "nsJSUtils.h" #include "nsThreadUtils.h" diff --git a/dom/jsurl/nsJSProtocolHandler.h b/dom/jsurl/nsJSProtocolHandler.h index 42e7049bd330..6c879e25c64a 100644 --- a/dom/jsurl/nsJSProtocolHandler.h +++ b/dom/jsurl/nsJSProtocolHandler.h @@ -9,7 +9,6 @@ #include "mozilla/Attributes.h" #include "nsIProtocolHandler.h" #include "nsIURI.h" -#include "nsIMutable.h" #include "nsISerializable.h" #include "nsIClassInfo.h" #include "nsSimpleURI.h" diff --git a/dom/localstorage/ActorsParent.cpp b/dom/localstorage/ActorsParent.cpp index 6eac89e89b7d..747d8d01e8db 100644 --- a/dom/localstorage/ActorsParent.cpp +++ b/dom/localstorage/ActorsParent.cpp @@ -48,7 +48,6 @@ #include "nsInterfaceHashtable.h" #include "nsIObjectInputStream.h" #include "nsIObjectOutputStream.h" -#include "nsISimpleEnumerator.h" #include "nsNetUtil.h" #include "nsRefPtrHashtable.h" #include "ReportInternalError.h" diff --git a/dom/media/BaseMediaResource.cpp b/dom/media/BaseMediaResource.cpp index f6ac11564892..181668f4dc27 100644 --- a/dom/media/BaseMediaResource.cpp +++ b/dom/media/BaseMediaResource.cpp @@ -20,7 +20,6 @@ #include "nsIFile.h" #include "nsIFileChannel.h" #include "nsIInputStream.h" -#include "nsISeekableStream.h" #include "nsNetUtil.h" namespace mozilla { diff --git a/dom/media/DOMMediaStream.cpp b/dom/media/DOMMediaStream.cpp index 4bf8bd806aa2..818a157ac2c9 100644 --- a/dom/media/DOMMediaStream.cpp +++ b/dom/media/DOMMediaStream.cpp @@ -25,7 +25,6 @@ #include "mozilla/media/MediaUtils.h" #include "nsContentUtils.h" #include "nsGlobalWindowInner.h" -#include "nsIScriptError.h" #include "nsIUUIDGenerator.h" #include "nsPIDOMWindow.h" #include "nsProxyRelease.h" diff --git a/dom/media/ForwardedInputTrack.cpp b/dom/media/ForwardedInputTrack.cpp index 58c267895406..189bb9c394fc 100644 --- a/dom/media/ForwardedInputTrack.cpp +++ b/dom/media/ForwardedInputTrack.cpp @@ -20,8 +20,6 @@ #include "mozilla/MathAlgorithms.h" #include "mozilla/Unused.h" #include "nsContentUtils.h" -#include "nsIAppShell.h" -#include "nsIObserver.h" #include "nsPrintfCString.h" #include "nsServiceManagerUtils.h" #include "nsWidgetsCID.h" diff --git a/dom/media/MediaCache.cpp b/dom/media/MediaCache.cpp index 69c93885d81d..c0d281ab43f9 100644 --- a/dom/media/MediaCache.cpp +++ b/dom/media/MediaCache.cpp @@ -25,7 +25,6 @@ #include "nsContentUtils.h" #include "nsINetworkLinkService.h" #include "nsIObserverService.h" -#include "nsIPrincipal.h" #include "nsPrintfCString.h" #include "nsProxyRelease.h" #include "nsThreadUtils.h" diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index 6bc0e122940f..1f794e1fbc91 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -31,7 +31,6 @@ #include "nsContentUtils.h" #include "nsError.h" #include "nsIMemoryReporter.h" -#include "nsIObserver.h" #include "nsPrintfCString.h" #include "nsTArray.h" #include diff --git a/dom/media/MediaDevices.cpp b/dom/media/MediaDevices.cpp index 632c85e927bd..46b6c7527d96 100644 --- a/dom/media/MediaDevices.cpp +++ b/dom/media/MediaDevices.cpp @@ -11,10 +11,8 @@ #include "mozilla/MediaManager.h" #include "MediaTrackConstraints.h" #include "nsContentUtils.h" -#include "nsIEventTarget.h" #include "nsINamed.h" #include "nsIScriptGlobalObject.h" -#include "nsIPermissionManager.h" #include "nsPIDOMWindow.h" #include "nsQueryObject.h" diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index e70796401d93..e7506f7cd569 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -41,20 +41,12 @@ #include "nsContentUtils.h" #include "nsGlobalWindow.h" #include "nsHashPropertyBag.h" -#include "nsICryptoHash.h" #include "nsICryptoHMAC.h" #include "nsIDocShell.h" #include "nsIEventTarget.h" -#include "nsIIDNService.h" -#include "nsIInputStream.h" -#include "nsIInterfaceRequestorUtils.h" #include "nsIKeyModule.h" -#include "nsILineInputStream.h" #include "nsIPermissionManager.h" -#include "nsIScriptGlobalObject.h" -#include "nsISupportsPrimitives.h" #include "nsIUUIDGenerator.h" -#include "nsIWeakReferenceUtils.h" #include "nsJSUtils.h" #include "nsNetCID.h" #include "nsNetUtil.h" diff --git a/dom/media/MediaManager.h b/dom/media/MediaManager.h index a53b773e2fd6..87a62e4a5348 100644 --- a/dom/media/MediaManager.h +++ b/dom/media/MediaManager.h @@ -16,8 +16,6 @@ #include "nsClassHashtable.h" #include "nsRefPtrHashtable.h" #include "nsIObserver.h" -#include "nsIPrefService.h" -#include "nsIPrefBranch.h" #include "nsIDOMNavigatorUserMedia.h" #include "nsXULAppAPI.h" @@ -43,6 +41,8 @@ #include "base/thread.h" #include "base/task.h" +class nsIPrefBranch; + namespace mozilla { namespace dom { struct MediaStreamConstraints; diff --git a/dom/media/MediaRecorder.cpp b/dom/media/MediaRecorder.cpp index 62c64943c346..a918291799a6 100644 --- a/dom/media/MediaRecorder.cpp +++ b/dom/media/MediaRecorder.cpp @@ -34,7 +34,6 @@ #include "nsDocShell.h" #include "nsError.h" #include "mozilla/dom/Document.h" -#include "nsIPermissionManager.h" #include "nsIPrincipal.h" #include "nsIScriptError.h" #include "nsMimeTypes.h" diff --git a/dom/media/MediaTrackGraph.cpp b/dom/media/MediaTrackGraph.cpp index 4ed2f90765c6..1cdcee02b0cf 100644 --- a/dom/media/MediaTrackGraph.cpp +++ b/dom/media/MediaTrackGraph.cpp @@ -10,7 +10,6 @@ #include "AudioSegment.h" #include "VideoSegment.h" #include "nsContentUtils.h" -#include "nsIObserver.h" #include "nsPrintfCString.h" #include "nsServiceManagerUtils.h" #include "prerror.h" diff --git a/dom/media/MediaTrackGraphImpl.h b/dom/media/MediaTrackGraphImpl.h index f7fd539f6b1d..d3c11a66f41c 100644 --- a/dom/media/MediaTrackGraphImpl.h +++ b/dom/media/MediaTrackGraphImpl.h @@ -19,7 +19,6 @@ #include "nsIMemoryReporter.h" #include "nsINamed.h" #include "nsIRunnable.h" -#include "nsIThread.h" #include "nsITimer.h" #include "AsyncLogger.h" diff --git a/dom/media/MemoryBlockCache.cpp b/dom/media/MemoryBlockCache.cpp index 8d14d97fe422..2d31119dca0a 100644 --- a/dom/media/MemoryBlockCache.cpp +++ b/dom/media/MemoryBlockCache.cpp @@ -11,8 +11,6 @@ #include "mozilla/Logging.h" #include "mozilla/Services.h" #include "mozilla/StaticPrefs_media.h" -#include "nsIObserver.h" -#include "nsIObserverService.h" #include "nsWeakReference.h" #include "prsystem.h" diff --git a/dom/media/VideoUtils.cpp b/dom/media/VideoUtils.cpp index 580b534bc322..64eaff8d960f 100644 --- a/dom/media/VideoUtils.cpp +++ b/dom/media/VideoUtils.cpp @@ -27,7 +27,6 @@ #include "nsIConsoleService.h" #include "nsINetworkLinkService.h" #include "nsIRandomGenerator.h" -#include "nsIServiceManager.h" #include "nsMathUtils.h" #include "nsNetCID.h" #include "nsServiceManagerUtils.h" diff --git a/dom/media/WebVTTListener.cpp b/dom/media/WebVTTListener.cpp index ba6c550d24dd..c7058f7d4126 100644 --- a/dom/media/WebVTTListener.cpp +++ b/dom/media/WebVTTListener.cpp @@ -12,7 +12,6 @@ #include "nsComponentManagerUtils.h" #include "nsIAsyncVerifyRedirectCallback.h" #include "nsIInputStream.h" -#include "nsIWebVTTParserWrapper.h" extern mozilla::LazyLogModule gTextTrackLog; #define LOG(msg, ...) \ diff --git a/dom/media/eme/CDMCaps.h b/dom/media/eme/CDMCaps.h index d848e80e5129..0874f033c02d 100644 --- a/dom/media/eme/CDMCaps.h +++ b/dom/media/eme/CDMCaps.h @@ -7,7 +7,6 @@ #ifndef CDMCaps_h_ #define CDMCaps_h_ -#include "nsIThread.h" #include "nsTArray.h" #include "nsString.h" #include "SamplesWaitingForKey.h" diff --git a/dom/media/eme/MediaKeySystemAccess.cpp b/dom/media/eme/MediaKeySystemAccess.cpp index 74018bac39a6..e2e654ea3307 100644 --- a/dom/media/eme/MediaKeySystemAccess.cpp +++ b/dom/media/eme/MediaKeySystemAccess.cpp @@ -12,7 +12,6 @@ #include "DecoderTraits.h" #include "GMPUtils.h" #include "MediaContainerType.h" -#include "mozIGeckoMediaPluginService.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/dom/MediaKeySystemAccessBinding.h" #include "mozilla/dom/MediaKeySession.h" diff --git a/dom/media/eme/MediaKeys.h b/dom/media/eme/MediaKeys.h index 71396286c900..4f8a263af217 100644 --- a/dom/media/eme/MediaKeys.h +++ b/dom/media/eme/MediaKeys.h @@ -20,7 +20,6 @@ #include "mozilla/dom/MediaKeysBinding.h" #include "mozilla/dom/MediaKeyStatusMapBinding.h" // For MediaKeyStatus #include "mozilla/dom/MediaKeySystemAccessBinding.h" -#include "mozIGeckoMediaPluginService.h" #include "mozilla/DetailedPromise.h" #include "mozilla/WeakPtr.h" diff --git a/dom/media/eme/mediadrm/MediaDrmCDMCallbackProxy.cpp b/dom/media/eme/mediadrm/MediaDrmCDMCallbackProxy.cpp index 9ec2878b7312..f324bde96448 100644 --- a/dom/media/eme/mediadrm/MediaDrmCDMCallbackProxy.cpp +++ b/dom/media/eme/mediadrm/MediaDrmCDMCallbackProxy.cpp @@ -9,7 +9,6 @@ #include "nsString.h" #include "mozilla/dom/MediaKeys.h" #include "mozilla/dom/MediaKeySession.h" -#include "mozIGeckoMediaPluginService.h" #include "nsContentCID.h" #include "nsServiceManagerUtils.h" #include "MainThreadUtils.h" @@ -111,4 +110,4 @@ void MediaDrmCDMCallbackProxy::Decrypted( MOZ_ASSERT_UNREACHABLE("Fennec could not handle decrypted event"); } -} // namespace mozilla \ No newline at end of file +} // namespace mozilla diff --git a/dom/media/encoder/MediaEncoder.cpp b/dom/media/encoder/MediaEncoder.cpp index a38b762ea0ba..a4e112bcff59 100644 --- a/dom/media/encoder/MediaEncoder.cpp +++ b/dom/media/encoder/MediaEncoder.cpp @@ -25,7 +25,6 @@ #include "mozilla/TaskQueue.h" #include "mozilla/Unused.h" #include "Muxer.h" -#include "nsIPrincipal.h" #include "nsMimeTypes.h" #include "nsThreadUtils.h" #include "OggWriter.h" diff --git a/dom/media/gmp/GMPDiskStorage.cpp b/dom/media/gmp/GMPDiskStorage.cpp index 2e11f8b964f7..ae5721a33c34 100644 --- a/dom/media/gmp/GMPDiskStorage.cpp +++ b/dom/media/gmp/GMPDiskStorage.cpp @@ -13,10 +13,8 @@ #include "mozilla/EndianUtils.h" #include "nsClassHashtable.h" #include "prio.h" -#include "mozIGeckoMediaPluginService.h" #include "nsContentCID.h" #include "nsServiceManagerUtils.h" -#include "nsISimpleEnumerator.h" namespace mozilla { namespace gmp { diff --git a/dom/media/gmp/GMPService.cpp b/dom/media/gmp/GMPService.cpp index 9e2f8af18977..19c1c5c6afd5 100644 --- a/dom/media/gmp/GMPService.cpp +++ b/dom/media/gmp/GMPService.cpp @@ -27,10 +27,7 @@ #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" #include "nsHashKeys.h" -#include "nsIConsoleService.h" -#include "nsIFile.h" #include "nsIObserverService.h" -#include "nsISimpleEnumerator.h" #include "nsIXULAppInfo.h" #include "nsNativeCharsetUtils.h" #include "nsXPCOMPrivate.h" diff --git a/dom/media/gmp/GMPServiceChild.cpp b/dom/media/gmp/GMPServiceChild.cpp index 2e9d39edb4bc..6c4b4e0d2b5a 100644 --- a/dom/media/gmp/GMPServiceChild.cpp +++ b/dom/media/gmp/GMPServiceChild.cpp @@ -9,7 +9,6 @@ #include "GMPLog.h" #include "GMPParent.h" #include "GMPContentParent.h" -#include "mozIGeckoMediaPluginService.h" #include "mozIGeckoMediaPluginChromeService.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/dom/ContentChild.h" diff --git a/dom/media/gmp/GMPServiceParent.cpp b/dom/media/gmp/GMPServiceParent.cpp index b1f6a1030102..8f60076c4436 100644 --- a/dom/media/gmp/GMPServiceParent.cpp +++ b/dom/media/gmp/GMPServiceParent.cpp @@ -32,10 +32,8 @@ #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" #include "nsHashKeys.h" -#include "nsIConsoleService.h" #include "nsIFile.h" #include "nsIObserverService.h" -#include "nsISimpleEnumerator.h" #include "nsIXULRuntime.h" #include "nsNativeCharsetUtils.h" #include "nsXPCOMPrivate.h" diff --git a/dom/media/gmp/GMPStorageParent.cpp b/dom/media/gmp/GMPStorageParent.cpp index c1e9c193cc7a..66bfe4defcd1 100644 --- a/dom/media/gmp/GMPStorageParent.cpp +++ b/dom/media/gmp/GMPStorageParent.cpp @@ -7,7 +7,6 @@ #include "GMPParent.h" #include "gmp-storage.h" #include "mozilla/Unused.h" -#include "mozIGeckoMediaPluginService.h" namespace mozilla { diff --git a/dom/media/gmp/GMPTimerParent.h b/dom/media/gmp/GMPTimerParent.h index 29cc852c7344..c1a08de4beae 100644 --- a/dom/media/gmp/GMPTimerParent.h +++ b/dom/media/gmp/GMPTimerParent.h @@ -12,7 +12,6 @@ #include "nsClassHashtable.h" #include "nsHashKeys.h" #include "mozilla/Monitor.h" -#include "nsIThread.h" namespace mozilla { namespace gmp { diff --git a/dom/media/gmp/GMPUtils.cpp b/dom/media/gmp/GMPUtils.cpp index 86ce99860896..fa4b025767c1 100644 --- a/dom/media/gmp/GMPUtils.cpp +++ b/dom/media/gmp/GMPUtils.cpp @@ -11,7 +11,6 @@ #include "nsLiteralString.h" #include "nsCRTGlue.h" #include "mozilla/Base64.h" -#include "nsISimpleEnumerator.h" #include "prio.h" #include "nsIConsoleService.h" #include "mozIGeckoMediaPluginService.h" diff --git a/dom/media/gtest/TestAudioCompactor.cpp b/dom/media/gtest/TestAudioCompactor.cpp index 69d9f54cc551..1ae677ef9e21 100644 --- a/dom/media/gtest/TestAudioCompactor.cpp +++ b/dom/media/gtest/TestAudioCompactor.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "gtest/gtest.h" #include "AudioCompactor.h" -#include "nsIMemoryReporter.h" using mozilla::AudioCompactor; using mozilla::AudioData; diff --git a/dom/media/gtest/TestCDMStorage.cpp b/dom/media/gtest/TestCDMStorage.cpp index 1cdfbe21b6f3..6538c33a129c 100644 --- a/dom/media/gtest/TestCDMStorage.cpp +++ b/dom/media/gtest/TestCDMStorage.cpp @@ -13,7 +13,6 @@ #include "GMPServiceParent.h" #include "MediaResult.h" #include "nsIFile.h" -#include "nsISimpleEnumerator.h" #include "nsNSSComponent.h" //For EnsureNSSInitializedChromeOrContent #include "nsThreadUtils.h" diff --git a/dom/media/gtest/TestGMPCrossOrigin.cpp b/dom/media/gtest/TestGMPCrossOrigin.cpp index 3b14d5657b51..680d840b5975 100644 --- a/dom/media/gtest/TestGMPCrossOrigin.cpp +++ b/dom/media/gtest/TestGMPCrossOrigin.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "gtest/gtest.h" -#include "nsIObserverService.h" #include "mozilla/StaticPtr.h" #include "GMPTestMonitor.h" #include "GMPVideoDecoderProxy.h" diff --git a/dom/media/mediasource/SourceBuffer.cpp b/dom/media/mediasource/SourceBuffer.cpp index d0d69c5b6e15..0cf56e29e40b 100644 --- a/dom/media/mediasource/SourceBuffer.cpp +++ b/dom/media/mediasource/SourceBuffer.cpp @@ -16,7 +16,6 @@ #include "mozilla/dom/MediaSourceBinding.h" #include "mozilla/dom/TimeRanges.h" #include "nsError.h" -#include "nsIEventTarget.h" #include "nsIRunnable.h" #include "nsThreadUtils.h" #include "mozilla/Logging.h" diff --git a/dom/media/mediasource/SourceBufferResource.h b/dom/media/mediasource/SourceBufferResource.h index 5810412ea390..b117edb55801 100644 --- a/dom/media/mediasource/SourceBufferResource.h +++ b/dom/media/mediasource/SourceBufferResource.h @@ -10,7 +10,6 @@ #include "mozilla/AbstractThread.h" #include "mozilla/Logging.h" #include "MediaResource.h" -#include "nsIPrincipal.h" #include "ResourceQueue.h" #define UNIMPLEMENTED() \ diff --git a/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp b/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp index 72086eb5d147..8c15b96d3cde 100644 --- a/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp +++ b/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp @@ -13,7 +13,6 @@ #include "GMPService.h" #include "MediaInfo.h" #include "PDMFactory.h" -#include "mozIGeckoMediaPluginService.h" #include "mozilla/CDMProxy.h" #include "mozilla/EMEUtils.h" #include "mozilla/StaticPrefs_media.h" diff --git a/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp b/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp index 9dae0ef38644..5ab3d2784b37 100644 --- a/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp +++ b/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp @@ -14,7 +14,6 @@ #include "VPXDecoder.h" #include "VideoUtils.h" #include "gmp-video-decode.h" -#include "mozIGeckoMediaPluginService.h" #include "mozilla/StaticMutex.h" #include "nsServiceManagerUtils.h" #ifdef XP_WIN diff --git a/dom/media/platforms/android/RemoteDataDecoder.cpp b/dom/media/platforms/android/RemoteDataDecoder.cpp index a69df45cc6d4..fa92189667d3 100644 --- a/dom/media/platforms/android/RemoteDataDecoder.cpp +++ b/dom/media/platforms/android/RemoteDataDecoder.cpp @@ -15,7 +15,6 @@ #include "VideoUtils.h" #include "VPXDecoder.h" -#include "nsIGfxInfo.h" #include "nsPromiseFlatString.h" #include "nsThreadUtils.h" #include "prlog.h" diff --git a/dom/media/platforms/apple/AppleATDecoder.h b/dom/media/platforms/apple/AppleATDecoder.h index 30c4998c4598..d1bd4a676033 100644 --- a/dom/media/platforms/apple/AppleATDecoder.h +++ b/dom/media/platforms/apple/AppleATDecoder.h @@ -10,7 +10,6 @@ #include #include "PlatformDecoderModule.h" #include "mozilla/Vector.h" -#include "nsIThread.h" #include "AudioConverter.h" namespace mozilla { diff --git a/dom/media/platforms/apple/AppleVTDecoder.h b/dom/media/platforms/apple/AppleVTDecoder.h index e54b2d3722ef..b01251633415 100644 --- a/dom/media/platforms/apple/AppleVTDecoder.h +++ b/dom/media/platforms/apple/AppleVTDecoder.h @@ -15,7 +15,6 @@ #include "TimeUnits.h" #include "mozilla/Atomics.h" #include "mozilla/gfx/Types.h" -#include "nsIThread.h" namespace mozilla { diff --git a/dom/media/platforms/wmf/WMFDecoderModule.cpp b/dom/media/platforms/wmf/WMFDecoderModule.cpp index ea6e8621b4de..df131549bbe9 100644 --- a/dom/media/platforms/wmf/WMFDecoderModule.cpp +++ b/dom/media/platforms/wmf/WMFDecoderModule.cpp @@ -26,8 +26,6 @@ #include "mozilla/mscom/EnsureMTA.h" #include "nsAutoPtr.h" #include "nsComponentManagerUtils.h" -#include "nsIGfxInfo.h" -#include "nsIWindowsRegKey.h" #include "nsIXULRuntime.h" #include "nsServiceManagerUtils.h" #include "nsWindowsHelpers.h" diff --git a/dom/media/systemservices/CamerasParent.h b/dom/media/systemservices/CamerasParent.h index 2b9f650cbe75..443b6ef7ce71 100644 --- a/dom/media/systemservices/CamerasParent.h +++ b/dom/media/systemservices/CamerasParent.h @@ -7,7 +7,6 @@ #ifndef mozilla_CamerasParent_h #define mozilla_CamerasParent_h -#include "nsIObserver.h" #include "VideoEngine.h" #include "mozilla/camera/PCamerasParent.h" #include "mozilla/ipc/Shmem.h" diff --git a/dom/media/webaudio/AudioDestinationNode.cpp b/dom/media/webaudio/AudioDestinationNode.cpp index 982544b05839..0fafb8e0c1e2 100644 --- a/dom/media/webaudio/AudioDestinationNode.cpp +++ b/dom/media/webaudio/AudioDestinationNode.cpp @@ -19,8 +19,6 @@ #include "MediaTrackGraph.h" #include "nsContentUtils.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsIDocShell.h" -#include "nsIPermissionManager.h" #include "nsIScriptObjectPrincipal.h" #include "nsServiceManagerUtils.h" #include "mozilla/dom/Promise.h" diff --git a/dom/media/webaudio/MediaElementAudioSourceNode.cpp b/dom/media/webaudio/MediaElementAudioSourceNode.cpp index 09af8e0d23a8..35e7f6c93db5 100644 --- a/dom/media/webaudio/MediaElementAudioSourceNode.cpp +++ b/dom/media/webaudio/MediaElementAudioSourceNode.cpp @@ -7,7 +7,6 @@ #include "MediaElementAudioSourceNode.h" #include "mozilla/dom/MediaElementAudioSourceNodeBinding.h" #include "AudioDestinationNode.h" -#include "nsIScriptError.h" #include "AudioNodeTrack.h" #include "MediaStreamTrack.h" diff --git a/dom/media/webrtc/MediaEngineDefault.cpp b/dom/media/webrtc/MediaEngineDefault.cpp index 94445d11b64f..6483cad4925e 100644 --- a/dom/media/webrtc/MediaEngineDefault.cpp +++ b/dom/media/webrtc/MediaEngineDefault.cpp @@ -14,10 +14,6 @@ #include "mozilla/UniquePtr.h" #include "nsCOMPtr.h" #include "nsContentUtils.h" -#include "nsIFile.h" -#include "nsIFilePicker.h" -#include "nsIPrefBranch.h" -#include "nsIPrefService.h" #include "SineWaveGenerator.h" #include "Tracing.h" diff --git a/dom/media/webrtc/MediaEngineDefault.h b/dom/media/webrtc/MediaEngineDefault.h index 8bdd4a5b65f6..e9efba6090d6 100644 --- a/dom/media/webrtc/MediaEngineDefault.h +++ b/dom/media/webrtc/MediaEngineDefault.h @@ -5,7 +5,6 @@ #ifndef MEDIAENGINEDEFAULT_H_ #define MEDIAENGINEDEFAULT_H_ -#include "nsINamed.h" #include "nsITimer.h" #include "nsAutoPtr.h" diff --git a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp b/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp index dc58b7d8f04e..36f69ee772b5 100644 --- a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp +++ b/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp @@ -10,7 +10,6 @@ #include "MediaTrackConstraints.h" #include "mozilla/ErrorNames.h" #include "mozilla/RefPtr.h" -#include "nsIPrefService.h" #include "Tracing.h" #include "VideoFrameUtils.h" #include "VideoUtils.h" diff --git a/dom/media/webrtc/MediaEngineRemoteVideoSource.h b/dom/media/webrtc/MediaEngineRemoteVideoSource.h index eeb29145afb1..63ee4109087b 100644 --- a/dom/media/webrtc/MediaEngineRemoteVideoSource.h +++ b/dom/media/webrtc/MediaEngineRemoteVideoSource.h @@ -9,8 +9,6 @@ #include "prcvar.h" #include "prthread.h" -#include "nsIThread.h" -#include "nsIRunnable.h" #include "mozilla/Mutex.h" #include "nsCOMPtr.h" diff --git a/dom/media/webrtc/MediaEngineTabVideoSource.cpp b/dom/media/webrtc/MediaEngineTabVideoSource.cpp index 75e6d3a917fd..017b9728fb9a 100644 --- a/dom/media/webrtc/MediaEngineTabVideoSource.cpp +++ b/dom/media/webrtc/MediaEngineTabVideoSource.cpp @@ -21,10 +21,8 @@ #include "ImageContainer.h" #include "Layers.h" #include "nsIInterfaceRequestorUtils.h" -#include "nsITabSource.h" #include "VideoUtils.h" #include "nsServiceManagerUtils.h" -#include "nsIPrefService.h" #include "MediaTrackConstraints.h" #include "Tracing.h" diff --git a/dom/media/webrtc/MediaEngineWebRTC.cpp b/dom/media/webrtc/MediaEngineWebRTC.cpp index 25d5b5ddabd8..1e463b093ab8 100644 --- a/dom/media/webrtc/MediaEngineWebRTC.cpp +++ b/dom/media/webrtc/MediaEngineWebRTC.cpp @@ -16,9 +16,6 @@ #include "mozilla/dom/MediaDeviceInfo.h" #include "mozilla/Logging.h" #include "nsIComponentRegistrar.h" -#include "nsIPrefService.h" -#include "nsIPrefBranch.h" -#include "nsITabSource.h" #include "prenv.h" #define FAKE_ONDEVICECHANGE_EVENT_PERIOD_IN_MS 500 diff --git a/dom/media/webrtc/MediaEngineWebRTC.h b/dom/media/webrtc/MediaEngineWebRTC.h index 7029cf20746d..116ee0854c9b 100644 --- a/dom/media/webrtc/MediaEngineWebRTC.h +++ b/dom/media/webrtc/MediaEngineWebRTC.h @@ -31,8 +31,6 @@ #include "nsCOMPtr.h" #include "nsComponentManagerUtils.h" #include "nsDirectoryServiceDefs.h" -#include "nsIRunnable.h" -#include "nsIThread.h" #include "nsRefPtrHashtable.h" #include "nsThreadUtils.h" #include "prcvar.h" diff --git a/dom/media/webrtc/MediaTrackConstraints.cpp b/dom/media/webrtc/MediaTrackConstraints.cpp index f98125cd2d46..4f8abfd4cda8 100644 --- a/dom/media/webrtc/MediaTrackConstraints.cpp +++ b/dom/media/webrtc/MediaTrackConstraints.cpp @@ -10,7 +10,6 @@ #include #include "MediaEngineSource.h" -#include "nsIScriptError.h" #include "mozilla/dom/MediaStreamTrackBinding.h" #include "mozilla/MediaManager.h" diff --git a/dom/media/webspeech/recognition/SpeechRecognition.h b/dom/media/webspeech/recognition/SpeechRecognition.h index 026e2c1f05cb..09237a228086 100644 --- a/dom/media/webspeech/recognition/SpeechRecognition.h +++ b/dom/media/webspeech/recognition/SpeechRecognition.h @@ -16,7 +16,6 @@ #include "js/TypeDecls.h" #include "DOMMediaStream.h" -#include "nsIDOMNavigatorUserMedia.h" #include "nsITimer.h" #include "MediaTrackGraph.h" #include "AudioSegment.h" diff --git a/dom/media/webspeech/synth/SpeechSynthesisVoice.h b/dom/media/webspeech/synth/SpeechSynthesisVoice.h index 37068b85dfa7..eacbb36ef1b2 100644 --- a/dom/media/webspeech/synth/SpeechSynthesisVoice.h +++ b/dom/media/webspeech/synth/SpeechSynthesisVoice.h @@ -12,8 +12,6 @@ #include "nsWrapperCache.h" #include "js/TypeDecls.h" -#include "nsISpeechService.h" - namespace mozilla { namespace dom { diff --git a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp index e1d6a2bb4028..f8a9fbe46fc8 100644 --- a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp +++ b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp @@ -8,7 +8,6 @@ #include "nsFakeSynthServices.h" #include "nsPrintfCString.h" #include "SharedBuffer.h" -#include "nsISimpleEnumerator.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/dom/nsSynthVoiceRegistry.h" diff --git a/dom/media/webspeech/synth/test/nsFakeSynthServices.h b/dom/media/webspeech/synth/test/nsFakeSynthServices.h index 872ad0bb9fdb..2f796d61b6a7 100644 --- a/dom/media/webspeech/synth/test/nsFakeSynthServices.h +++ b/dom/media/webspeech/synth/test/nsFakeSynthServices.h @@ -9,7 +9,6 @@ #include "nsTArray.h" #include "nsIObserver.h" -#include "nsIThread.h" #include "nsISpeechService.h" #include "nsRefPtrHashtable.h" #include "mozilla/StaticPtr.h" diff --git a/dom/messagechannel/MessageChannel.cpp b/dom/messagechannel/MessageChannel.cpp index aa696262f1ab..be475e25c9e1 100644 --- a/dom/messagechannel/MessageChannel.cpp +++ b/dom/messagechannel/MessageChannel.cpp @@ -13,7 +13,6 @@ #include "nsContentUtils.h" #include "mozilla/dom/Document.h" #include "nsIGlobalObject.h" -#include "nsIPrincipal.h" #include "nsServiceManagerUtils.h" namespace mozilla { diff --git a/dom/messagechannel/MessagePort.cpp b/dom/messagechannel/MessagePort.cpp index d137b53a7bc3..909885e3bfe1 100644 --- a/dom/messagechannel/MessagePort.cpp +++ b/dom/messagechannel/MessagePort.cpp @@ -34,7 +34,6 @@ #include "nsIBFCacheEntry.h" #include "mozilla/dom/Document.h" -#include "nsISupportsPrimitives.h" #include "nsServiceManagerUtils.h" #ifdef XP_WIN diff --git a/dom/midi/MIDIAccess.cpp b/dom/midi/MIDIAccess.cpp index 85f2fd22973a..3ef4a0bde880 100644 --- a/dom/midi/MIDIAccess.cpp +++ b/dom/midi/MIDIAccess.cpp @@ -19,7 +19,6 @@ #include "mozilla/dom/MIDITypes.h" #include "mozilla/dom/Promise.h" #include "mozilla/dom/PContent.h" -#include "nsIRunnable.h" #include "mozilla/dom/Document.h" #include "nsPIDOMWindow.h" #include "nsContentPermissionHelper.h" diff --git a/dom/midi/MIDIAccess.h b/dom/midi/MIDIAccess.h index 7032cd7cfb00..e9d60f89de7c 100644 --- a/dom/midi/MIDIAccess.h +++ b/dom/midi/MIDIAccess.h @@ -12,7 +12,6 @@ #include "mozilla/ErrorResult.h" #include "mozilla/Observer.h" #include "nsCycleCollectionParticipant.h" -#include "nsIObserver.h" #include "nsWrapperCache.h" struct JSContext; diff --git a/dom/midi/MIDIAccessManager.h b/dom/midi/MIDIAccessManager.h index 0910ffbf3fa9..2ffb7e6f534b 100644 --- a/dom/midi/MIDIAccessManager.h +++ b/dom/midi/MIDIAccessManager.h @@ -8,7 +8,6 @@ #define mozilla_dom_MIDIAccessManager_h #include "nsPIDOMWindow.h" -#include "nsIObserver.h" #include "mozilla/dom/MIDITypes.h" #include "mozilla/Observer.h" diff --git a/dom/midi/MIDIPortInterface.h b/dom/midi/MIDIPortInterface.h index 2b42a7cdc725..dbbea382ed77 100644 --- a/dom/midi/MIDIPortInterface.h +++ b/dom/midi/MIDIPortInterface.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_MIDIPortInterface_h #define mozilla_dom_MIDIPortInterface_h -#include "nsIObserver.h" #include "mozilla/dom/MIDIPortBinding.h" namespace mozilla { diff --git a/dom/network/TCPServerSocketParent.cpp b/dom/network/TCPServerSocketParent.cpp index e914eeeb1642..33fc51b0545c 100644 --- a/dom/network/TCPServerSocketParent.cpp +++ b/dom/network/TCPServerSocketParent.cpp @@ -4,7 +4,6 @@ * 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 "nsIScriptSecurityManager.h" #include "TCPServerSocket.h" #include "TCPServerSocketParent.h" #include "nsJSUtils.h" diff --git a/dom/network/TCPSocket.cpp b/dom/network/TCPSocket.cpp index d6b7a1e28692..cdf3a511827b 100644 --- a/dom/network/TCPSocket.cpp +++ b/dom/network/TCPSocket.cpp @@ -23,7 +23,6 @@ #include "nsIInputStream.h" #include "nsIBinaryInputStream.h" #include "nsIScriptableInputStream.h" -#include "nsIInputStreamPump.h" #include "nsIAsyncInputStream.h" #include "nsISupportsPrimitives.h" #include "nsITransport.h" diff --git a/dom/network/TCPSocketChild.h b/dom/network/TCPSocketChild.h index 7729d5a6618d..6fc66f026728 100644 --- a/dom/network/TCPSocketChild.h +++ b/dom/network/TCPSocketChild.h @@ -12,7 +12,6 @@ #include "nsCycleCollectionParticipant.h" #include "nsCOMPtr.h" #include "js/TypeDecls.h" -#include "nsICancelable.h" class nsITCPSocketCallback; diff --git a/dom/network/TCPSocketParent.cpp b/dom/network/TCPSocketParent.cpp index 4f2af4e8750d..814dce1c8a0a 100644 --- a/dom/network/TCPSocketParent.cpp +++ b/dom/network/TCPSocketParent.cpp @@ -14,9 +14,7 @@ #include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/BrowserParent.h" #include "mozilla/HoldDropJSObjects.h" -#include "nsISocketTransportService.h" #include "nsISocketTransport.h" -#include "nsIScriptSecurityManager.h" #include "nsNetUtil.h" namespace IPC { diff --git a/dom/network/TCPSocketParent.h b/dom/network/TCPSocketParent.h index e6f061d97680..9e689c44ae8d 100644 --- a/dom/network/TCPSocketParent.h +++ b/dom/network/TCPSocketParent.h @@ -11,7 +11,6 @@ #include "mozilla/net/PTCPSocketParent.h" #include "nsCycleCollectionParticipant.h" #include "nsCOMPtr.h" -#include "nsISocketFilter.h" #include "js/TypeDecls.h" #define TCPSOCKETPARENT_CID \ diff --git a/dom/network/UDPSocketChild.h b/dom/network/UDPSocketChild.h index 226e75b86dfe..f6908f245598 100644 --- a/dom/network/UDPSocketChild.h +++ b/dom/network/UDPSocketChild.h @@ -8,7 +8,6 @@ #define mozilla_dom_UDPSocketChild_h__ #include "mozilla/net/PUDPSocketChild.h" -#include "nsIUDPSocketChild.h" #include "nsCycleCollectionParticipant.h" #include "nsCOMPtr.h" @@ -19,6 +18,8 @@ } \ } +class nsIUDPSocketInternal; + namespace mozilla { namespace dom { diff --git a/dom/network/UDPSocketParent.cpp b/dom/network/UDPSocketParent.cpp index 43f2c85abbca..0718d05a00d6 100644 --- a/dom/network/UDPSocketParent.cpp +++ b/dom/network/UDPSocketParent.cpp @@ -4,7 +4,6 @@ * 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 "nsIServiceManager.h" #include "UDPSocketParent.h" #include "nsComponentManagerUtils.h" #include "nsIUDPSocket.h" @@ -16,7 +15,6 @@ #include "mozilla/net/NeckoCommon.h" #include "mozilla/net/PNeckoParent.h" #include "nsIPermissionManager.h" -#include "nsIScriptSecurityManager.h" #include "mozilla/ipc/PBackgroundParent.h" #include "mtransport/runnable_utils.h" diff --git a/dom/notification/Notification.cpp b/dom/notification/Notification.cpp index ed7bc6bda898..2db65011344e 100644 --- a/dom/notification/Notification.cpp +++ b/dom/notification/Notification.cpp @@ -49,11 +49,9 @@ #include "nsIPermission.h" #include "nsIPushService.h" #include "nsIScriptError.h" -#include "nsIScriptSecurityManager.h" #include "nsIServiceWorkerManager.h" #include "nsISimpleEnumerator.h" #include "nsIUUIDGenerator.h" -#include "nsIXPConnect.h" #include "nsNetUtil.h" #include "nsProxyRelease.h" #include "nsServiceManagerUtils.h" diff --git a/dom/offline/nsDOMOfflineResourceList.cpp b/dom/offline/nsDOMOfflineResourceList.cpp index db7123079e23..21e37cebdd82 100644 --- a/dom/offline/nsDOMOfflineResourceList.cpp +++ b/dom/offline/nsDOMOfflineResourceList.cpp @@ -5,11 +5,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsDOMOfflineResourceList.h" -#include "nsIScriptSecurityManager.h" #include "nsError.h" #include "mozilla/Components.h" #include "mozilla/dom/DOMStringList.h" -#include "nsIPrefetchService.h" #include "nsMemory.h" #include "nsNetUtil.h" #include "nsNetCID.h" @@ -769,8 +767,7 @@ nsDOMOfflineResourceList::GetDocumentAppCache() { return nullptr; } -void nsDOMOfflineResourceList::UpdateCompleted( - nsIOfflineCacheUpdate* aUpdate) { +void nsDOMOfflineResourceList::UpdateCompleted(nsIOfflineCacheUpdate* aUpdate) { if (aUpdate != mCacheUpdate) { // This isn't the update we're watching. return; diff --git a/dom/offline/nsDOMOfflineResourceList.h b/dom/offline/nsDOMOfflineResourceList.h index ff936a51027a..2b2c50af91b0 100644 --- a/dom/offline/nsDOMOfflineResourceList.h +++ b/dom/offline/nsDOMOfflineResourceList.h @@ -18,7 +18,6 @@ #include "nsCOMPtr.h" #include "nsWeakReference.h" #include "nsCOMArray.h" -#include "nsIDOMEventListener.h" #include "nsIObserver.h" #include "nsIScriptContext.h" #include "nsCycleCollectionParticipant.h" diff --git a/dom/payments/BasicCardPayment.cpp b/dom/payments/BasicCardPayment.cpp index 94c2a7dfad44..8c616ee3366d 100644 --- a/dom/payments/BasicCardPayment.cpp +++ b/dom/payments/BasicCardPayment.cpp @@ -8,7 +8,6 @@ #include "PaymentAddress.h" #include "mozilla/ClearOnShutdown.h" #include "nsArrayUtils.h" -#include "nsISupportsPrimitives.h" #include "nsCharSeparatedTokenizer.h" #include "nsDataHashtable.h" diff --git a/dom/payments/BasicCardPayment.h b/dom/payments/BasicCardPayment.h index 2899ec8172dd..1698ca95d6f9 100644 --- a/dom/payments/BasicCardPayment.h +++ b/dom/payments/BasicCardPayment.h @@ -9,7 +9,6 @@ #include "mozilla/dom/BasicCardPaymentBinding.h" #include "nsPIDOMWindow.h" -#include "nsIPaymentAddress.h" #include "nsTArray.h" namespace mozilla { diff --git a/dom/payments/PaymentRequestData.cpp b/dom/payments/PaymentRequestData.cpp index f23b693de9f3..e60c3e44cdc3 100644 --- a/dom/payments/PaymentRequestData.cpp +++ b/dom/payments/PaymentRequestData.cpp @@ -7,7 +7,6 @@ #include "mozilla/dom/PaymentRequestBinding.h" #include "nsArrayUtils.h" #include "nsIMutableArray.h" -#include "nsISupportsPrimitives.h" #include "nsUnicharUtils.h" #include "PaymentRequestData.h" #include "PaymentRequestUtils.h" diff --git a/dom/payments/PaymentRequestService.h b/dom/payments/PaymentRequestService.h index 6034d2fa6341..5cc9116cace8 100644 --- a/dom/payments/PaymentRequestService.h +++ b/dom/payments/PaymentRequestService.h @@ -9,7 +9,6 @@ #include "nsInterfaceHashtable.h" #include "nsIPaymentRequestService.h" -#include "nsISimpleEnumerator.h" #include "nsCOMPtr.h" #include "nsTArray.h" #include "PaymentRequestData.h" diff --git a/dom/payments/PaymentRequestUtils.cpp b/dom/payments/PaymentRequestUtils.cpp index aa6081081cc4..9a562f405c26 100644 --- a/dom/payments/PaymentRequestUtils.cpp +++ b/dom/payments/PaymentRequestUtils.cpp @@ -7,8 +7,6 @@ #include "js/JSON.h" #include "nsArrayUtils.h" #include "PaymentRequestUtils.h" -#include "nsIMutableArray.h" -#include "nsISupportsPrimitives.h" namespace mozilla { namespace dom { diff --git a/dom/payments/PaymentRequestUtils.h b/dom/payments/PaymentRequestUtils.h index 1372e4de33b3..9ec4bdbfcefd 100644 --- a/dom/payments/PaymentRequestUtils.h +++ b/dom/payments/PaymentRequestUtils.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_PaymentRequestUtils_h #define mozilla_dom_PaymentRequestUtils_h -#include "nsIArray.h" #include "nsTArray.h" namespace mozilla { diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp index 203f399a1e4b..326ec6fa8450 100644 --- a/dom/performance/Performance.cpp +++ b/dom/performance/Performance.cpp @@ -7,7 +7,6 @@ #include "Performance.h" #include "GeckoProfiler.h" -#include "nsIDocShell.h" #include "nsRFPService.h" #include "PerformanceEntry.h" #include "PerformanceMainThread.h" diff --git a/dom/performance/PerformanceEntry.cpp b/dom/performance/PerformanceEntry.cpp index 8f739c84dc06..edf821c91c59 100644 --- a/dom/performance/PerformanceEntry.cpp +++ b/dom/performance/PerformanceEntry.cpp @@ -6,7 +6,6 @@ #include "PerformanceEntry.h" #include "MainThreadUtils.h" -#include "nsIURI.h" using namespace mozilla::dom; diff --git a/dom/performance/PerformanceMainThread.cpp b/dom/performance/PerformanceMainThread.cpp index 294406f0560b..fe1cd685814f 100644 --- a/dom/performance/PerformanceMainThread.cpp +++ b/dom/performance/PerformanceMainThread.cpp @@ -7,7 +7,6 @@ #include "PerformanceMainThread.h" #include "PerformanceNavigation.h" #include "mozilla/StaticPrefs_dom.h" -#include "nsICacheInfoChannel.h" namespace mozilla { namespace dom { diff --git a/dom/performance/PerformanceNavigationTiming.h b/dom/performance/PerformanceNavigationTiming.h index b32594ac4ea6..d50653f3f4ea 100644 --- a/dom/performance/PerformanceNavigationTiming.h +++ b/dom/performance/PerformanceNavigationTiming.h @@ -8,7 +8,6 @@ #define mozilla_dom_PerformanceNavigationTiming_h___ #include "nsCOMPtr.h" -#include "nsIChannel.h" #include "nsITimedChannel.h" #include "nsRFPService.h" #include "mozilla/dom/PerformanceResourceTiming.h" diff --git a/dom/performance/PerformanceServerTiming.cpp b/dom/performance/PerformanceServerTiming.cpp index 08cbb7f3af8e..0ef46564cef4 100644 --- a/dom/performance/PerformanceServerTiming.cpp +++ b/dom/performance/PerformanceServerTiming.cpp @@ -7,7 +7,6 @@ #include "PerformanceServerTiming.h" #include "mozilla/dom/PerformanceServerTimingBinding.h" -#include "nsITimedChannel.h" namespace mozilla { namespace dom { diff --git a/dom/plugins/base/PluginFinder.cpp b/dom/plugins/base/PluginFinder.cpp index a1758bde9112..33d3053e3f16 100644 --- a/dom/plugins/base/PluginFinder.cpp +++ b/dom/plugins/base/PluginFinder.cpp @@ -8,6 +8,7 @@ #include "PluginFinder.h" +#include "nsIBlocklistService.h" #include "nsIFile.h" #include "nsIXULRuntime.h" #if defined(XP_MACOSX) @@ -25,6 +26,7 @@ #include "prio.h" #include "nsAppDirectoryServiceDefs.h" +#include "nsComponentManagerUtils.h" #include "nsDirectoryServiceDefs.h" #include "nsPluginDirServiceProvider.h" #include "nsPluginHost.h" diff --git a/dom/plugins/base/nsJSNPRuntime.cpp b/dom/plugins/base/nsJSNPRuntime.cpp index f39d08f623c7..f21298d66e2c 100644 --- a/dom/plugins/base/nsJSNPRuntime.cpp +++ b/dom/plugins/base/nsJSNPRuntime.cpp @@ -19,7 +19,6 @@ #include "nsDOMJSUtils.h" #include "nsJSUtils.h" #include "mozilla/dom/Document.h" -#include "nsIXPConnect.h" #include "xpcpublic.h" #include "nsIContent.h" #include "nsPluginInstanceOwner.h" diff --git a/dom/plugins/base/nsNPAPIPlugin.cpp b/dom/plugins/base/nsNPAPIPlugin.cpp index e1bdfb7046bb..daacba579706 100644 --- a/dom/plugins/base/nsNPAPIPlugin.cpp +++ b/dom/plugins/base/nsNPAPIPlugin.cpp @@ -19,7 +19,6 @@ #include "nsNPAPIPluginInstance.h" #include "nsNPAPIPluginStreamListener.h" #include "nsPluginStreamListenerPeer.h" -#include "nsIServiceManager.h" #include "nsThreadUtils.h" #include "mozilla/CycleCollectedJSContext.h" // for nsAutoMicroTask #include "mozilla/Preferences.h" @@ -42,10 +41,8 @@ #include "mozilla/dom/Element.h" #include "mozilla/dom/ScriptSettings.h" #include "mozilla/dom/ToJSValue.h" -#include "nsIXULRuntime.h" #include "nsIXPConnect.h" -#include "nsIObserverService.h" #include #ifdef MOZ_WIDGET_COCOA @@ -64,10 +61,6 @@ #include "nsJSUtils.h" #include "nsJSNPRuntime.h" -#include "nsIHttpAuthManager.h" -#include "nsICookieService.h" -#include "nsILoadContext.h" -#include "nsIDocShell.h" #include "nsNetUtil.h" #include "nsNetCID.h" @@ -92,7 +85,6 @@ using mozilla::plugins::PluginModuleContentParent; # endif #endif -#include "nsIAudioChannelAgent.h" #include "AudioChannelService.h" using namespace mozilla; diff --git a/dom/plugins/base/nsNPAPIPluginInstance.h b/dom/plugins/base/nsNPAPIPluginInstance.h index 2d7eb5bd24e1..0dca093ff7f5 100644 --- a/dom/plugins/base/nsNPAPIPluginInstance.h +++ b/dom/plugins/base/nsNPAPIPluginInstance.h @@ -12,8 +12,6 @@ #include "nsPIDOMWindow.h" #include "nsITimer.h" #include "nsIPluginInstanceOwner.h" -#include "nsIURI.h" -#include "nsIChannel.h" #include "nsHashKeys.h" #include #include "js/TypeDecls.h" diff --git a/dom/plugins/base/nsNPAPIPluginStreamListener.cpp b/dom/plugins/base/nsNPAPIPluginStreamListener.cpp index 051221ace1b2..e0683e61cbea 100644 --- a/dom/plugins/base/nsNPAPIPluginStreamListener.cpp +++ b/dom/plugins/base/nsNPAPIPluginStreamListener.cpp @@ -7,7 +7,6 @@ #include "plstr.h" #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" -#include "nsIFile.h" #include "nsNetUtil.h" #include "nsPluginHost.h" #include "nsNPAPIPlugin.h" diff --git a/dom/plugins/base/nsNPAPIPluginStreamListener.h b/dom/plugins/base/nsNPAPIPluginStreamListener.h index cec87627a28f..93e70b515ae1 100644 --- a/dom/plugins/base/nsNPAPIPluginStreamListener.h +++ b/dom/plugins/base/nsNPAPIPluginStreamListener.h @@ -9,11 +9,9 @@ #include "nscore.h" #include "nsIHTTPHeaderListener.h" #include "nsINamed.h" -#include "nsIRequest.h" #include "nsITimer.h" #include "nsCOMArray.h" #include "nsIOutputStream.h" -#include "nsIPluginInstanceOwner.h" #include "nsString.h" #include "nsIAsyncVerifyRedirectCallback.h" #include "mozilla/PluginLibrary.h" diff --git a/dom/plugins/base/nsPluginHost.cpp b/dom/plugins/base/nsPluginHost.cpp index 72f8ad45fc1d..ec2442b68f3d 100644 --- a/dom/plugins/base/nsPluginHost.cpp +++ b/dom/plugins/base/nsPluginHost.cpp @@ -16,27 +16,19 @@ #include "nsPluginInstanceOwner.h" #include "nsObjectLoadingContent.h" #include "nsIEventTarget.h" -#include "nsIHTTPHeaderListener.h" -#include "nsIHttpHeaderVisitor.h" #include "nsIObserverService.h" #include "nsIHttpProtocolHandler.h" #include "nsIHttpChannel.h" #include "nsIUploadChannel.h" -#include "nsIByteRangeRequest.h" #include "nsIStreamListener.h" #include "nsIInputStream.h" -#include "nsIOutputStream.h" -#include "nsIURL.h" #include "nsTArray.h" #include "nsReadableUtils.h" -#include "nsIStreamConverterService.h" #include "nsIFile.h" #include "nsISeekableStream.h" #include "nsNetUtil.h" -#include "nsIFileStreams.h" #include "nsISimpleEnumerator.h" #include "nsIStringStream.h" -#include "nsIProgressEventSink.h" #include "mozilla/dom/Document.h" #include "nsPluginLogging.h" #include "nsIScriptChannel.h" @@ -62,17 +54,14 @@ #include "nsEnumeratorUtils.h" #include "nsXPCOM.h" #include "nsXPCOMCID.h" -#include "nsISupportsPrimitives.h" #include "nsXULAppAPI.h" // for the dialog -#include "nsIWindowWatcher.h" #include "nsNetCID.h" #include "mozilla/Sprintf.h" #include "nsThreadUtils.h" -#include "nsIInputStreamTee.h" #include "nsQueryObject.h" #include "nsIWeakReferenceUtils.h" diff --git a/dom/plugins/base/nsPluginHost.h b/dom/plugins/base/nsPluginHost.h index 9663ce124c64..e0b8ef1f3be1 100644 --- a/dom/plugins/base/nsPluginHost.h +++ b/dom/plugins/base/nsPluginHost.h @@ -16,7 +16,6 @@ #include "nsIPluginTag.h" #include "nsPluginsDir.h" #include "nsWeakReference.h" -#include "nsIPrompt.h" #include "MainThreadUtils.h" #include "nsTArray.h" #include "nsINamed.h" diff --git a/dom/plugins/base/nsPluginInstanceOwner.cpp b/dom/plugins/base/nsPluginInstanceOwner.cpp index cc24150bb60e..62a1f7e4d261 100644 --- a/dom/plugins/base/nsPluginInstanceOwner.cpp +++ b/dom/plugins/base/nsPluginInstanceOwner.cpp @@ -28,19 +28,15 @@ using mozilla::DefaultXDisplay; #include "nsIStringStream.h" #include "nsNetUtil.h" #include "mozilla/Preferences.h" -#include "nsIDocShellTreeItem.h" -#include "nsIWebBrowserChrome.h" #include "nsLayoutUtils.h" #include "nsIPluginWidget.h" #include "nsViewManager.h" -#include "nsIDocShellTreeOwner.h" #include "nsIAppShell.h" #include "nsIObjectLoadingContent.h" #include "nsObjectLoadingContent.h" #include "nsAttrName.h" #include "nsIFocusManager.h" #include "nsFocusManager.h" -#include "nsIScriptSecurityManager.h" #include "nsIScrollableFrame.h" #include "nsIDocShell.h" #include "ImageContainer.h" diff --git a/dom/plugins/base/nsPluginStreamListenerPeer.cpp b/dom/plugins/base/nsPluginStreamListenerPeer.cpp index dfc2aa998311..2c3b26e1bf15 100644 --- a/dom/plugins/base/nsPluginStreamListenerPeer.cpp +++ b/dom/plugins/base/nsPluginStreamListenerPeer.cpp @@ -6,21 +6,16 @@ #include "nsPluginStreamListenerPeer.h" #include "nsIContentPolicy.h" #include "nsContentPolicyUtils.h" -#include "nsIStreamConverterService.h" -#include "nsIStreamLoader.h" #include "nsIHttpChannel.h" #include "nsIHttpChannelInternal.h" #include "nsIFileChannel.h" #include "nsMimeTypes.h" -#include "nsISupportsPrimitives.h" #include "nsNetCID.h" #include "nsPluginInstanceOwner.h" #include "nsPluginLogging.h" #include "nsIURI.h" -#include "nsIURL.h" #include "nsPluginHost.h" #include "nsIMultiPartChannel.h" -#include "nsIInputStreamTee.h" #include "nsPrintfCString.h" #include "nsIScriptGlobalObject.h" #include "mozilla/dom/Document.h" diff --git a/dom/plugins/base/nsPluginTags.cpp b/dom/plugins/base/nsPluginTags.cpp index ab6ba99f5865..b4cc47f35917 100644 --- a/dom/plugins/base/nsPluginTags.cpp +++ b/dom/plugins/base/nsPluginTags.cpp @@ -7,7 +7,6 @@ #include "prlink.h" #include "plstr.h" -#include "nsIPluginInstanceOwner.h" #include "nsPluginsDir.h" #include "nsPluginHost.h" #include "nsIBlocklistService.h" diff --git a/dom/plugins/base/nsPluginTags.h b/dom/plugins/base/nsPluginTags.h index 36f54b9dc440..73e597cb2f8d 100644 --- a/dom/plugins/base/nsPluginTags.h +++ b/dom/plugins/base/nsPluginTags.h @@ -10,7 +10,6 @@ #include "nscore.h" #include "nsCOMPtr.h" #include "nsCOMArray.h" -#include "nsIBlocklistService.h" #include "nsIPluginTag.h" #include "nsITimer.h" #include "nsString.h" diff --git a/dom/plugins/base/nsPluginsDirDarwin.cpp b/dom/plugins/base/nsPluginsDirDarwin.cpp index c9c361b57974..d6b62348a809 100644 --- a/dom/plugins/base/nsPluginsDirDarwin.cpp +++ b/dom/plugins/base/nsPluginsDirDarwin.cpp @@ -22,7 +22,6 @@ #include "nsNPAPIPlugin.h" #include "nsPluginsDirUtils.h" -#include "nsILocalFileMac.h" #include "mozilla/UniquePtr.h" #include "nsCocoaFeatures.h" diff --git a/dom/plugins/base/nsPluginsDirUnix.cpp b/dom/plugins/base/nsPluginsDirUnix.cpp index e720c137c8bf..b7720670a39b 100644 --- a/dom/plugins/base/nsPluginsDirUnix.cpp +++ b/dom/plugins/base/nsPluginsDirUnix.cpp @@ -13,8 +13,6 @@ #include #include "nsString.h" #include "nsIFile.h" -#include "nsIPrefBranch.h" -#include "nsIPrefService.h" #define LOCAL_PLUGIN_DLL_SUFFIX ".so" #if defined(__hpux) diff --git a/dom/plugins/ipc/PluginMessageUtils.cpp b/dom/plugins/ipc/PluginMessageUtils.cpp index 7103834e3feb..e77d3721f551 100644 --- a/dom/plugins/ipc/PluginMessageUtils.cpp +++ b/dom/plugins/ipc/PluginMessageUtils.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "PluginMessageUtils.h" -#include "nsIRunnable.h" #include "nsThreadUtils.h" #include "PluginInstanceParent.h" diff --git a/dom/plugins/ipc/PluginModuleParent.cpp b/dom/plugins/ipc/PluginModuleParent.cpp index 0194ad4cfef5..e26bac70b225 100644 --- a/dom/plugins/ipc/PluginModuleParent.cpp +++ b/dom/plugins/ipc/PluginModuleParent.cpp @@ -30,7 +30,6 @@ #include "nsCRT.h" #include "nsIFile.h" #include "nsIObserverService.h" -#include "nsIXULRuntime.h" #include "nsNPAPIPlugin.h" #include "nsPrintfCString.h" #include "prsystem.h" diff --git a/dom/plugins/ipc/PluginProcessParent.h b/dom/plugins/ipc/PluginProcessParent.h index b79e301c7e50..48ce24cc7043 100644 --- a/dom/plugins/ipc/PluginProcessParent.h +++ b/dom/plugins/ipc/PluginProcessParent.h @@ -19,7 +19,6 @@ #include "mozilla/ipc/TaskFactory.h" #include "mozilla/UniquePtr.h" #include "nsCOMPtr.h" -#include "nsIRunnable.h" #include "nsTHashtable.h" #include "nsHashKeys.h" diff --git a/dom/power/PowerManagerService.cpp b/dom/power/PowerManagerService.cpp index bf5b87e1848e..20c0c23d7030 100644 --- a/dom/power/PowerManagerService.cpp +++ b/dom/power/PowerManagerService.cpp @@ -11,7 +11,6 @@ #include "mozilla/ModuleUtils.h" #include "mozilla/Preferences.h" #include "nsIDOMWakeLockListener.h" -#include "nsIObserverService.h" #include "PowerManagerService.h" #include "WakeLock.h" diff --git a/dom/presentation/Presentation.cpp b/dom/presentation/Presentation.cpp index 51a327861396..9bfecbdf68d9 100644 --- a/dom/presentation/Presentation.cpp +++ b/dom/presentation/Presentation.cpp @@ -13,7 +13,6 @@ #include "nsContentUtils.h" #include "nsCycleCollectionParticipant.h" #include "nsIDocShell.h" -#include "nsIPresentationService.h" #include "nsIScriptSecurityManager.h" #include "nsJSUtils.h" #include "nsNetUtil.h" diff --git a/dom/presentation/PresentationAvailability.cpp b/dom/presentation/PresentationAvailability.cpp index 03c747e9ddfe..56984451efd7 100644 --- a/dom/presentation/PresentationAvailability.cpp +++ b/dom/presentation/PresentationAvailability.cpp @@ -11,7 +11,6 @@ #include "mozilla/Unused.h" #include "nsContentUtils.h" #include "nsCycleCollectionParticipant.h" -#include "nsIPresentationDeviceManager.h" #include "nsIPresentationService.h" #include "nsServiceManagerUtils.h" #include "PresentationLog.h" diff --git a/dom/presentation/PresentationDeviceManager.cpp b/dom/presentation/PresentationDeviceManager.cpp index 7c80c0d7aef9..d51fbef16e91 100644 --- a/dom/presentation/PresentationDeviceManager.cpp +++ b/dom/presentation/PresentationDeviceManager.cpp @@ -13,6 +13,7 @@ #include "nsCOMPtr.h" #include "nsIMutableArray.h" #include "nsIObserverService.h" +#include "nsISupportsPrimitives.h" #include "nsXULAppAPI.h" #include "PresentationSessionRequest.h" #include "PresentationTerminateRequest.h" diff --git a/dom/presentation/PresentationRequest.cpp b/dom/presentation/PresentationRequest.cpp index fd2f1fc08851..a0233cbf15c5 100644 --- a/dom/presentation/PresentationRequest.cpp +++ b/dom/presentation/PresentationRequest.cpp @@ -14,7 +14,6 @@ #include "mozilla/dom/PresentationConnectionAvailableEvent.h" #include "mozilla/dom/Promise.h" #include "mozilla/Move.h" -#include "mozIThirdPartyUtil.h" #include "nsContentSecurityManager.h" #include "nsCycleCollectionParticipant.h" #include "nsGlobalWindow.h" diff --git a/dom/presentation/PresentationService.cpp b/dom/presentation/PresentationService.cpp index 7209e37110ff..b365e5678c28 100644 --- a/dom/presentation/PresentationService.cpp +++ b/dom/presentation/PresentationService.cpp @@ -11,13 +11,10 @@ #include "nsGlobalWindow.h" #include "nsIMutableArray.h" #include "nsIObserverService.h" -#include "nsIPresentationControlChannel.h" #include "nsIPresentationDeviceManager.h" #include "nsIPresentationDevicePrompt.h" #include "nsIPresentationListener.h" #include "nsIPresentationRequestUIGlue.h" -#include "nsIPresentationSessionRequest.h" -#include "nsIPresentationTerminateRequest.h" #include "nsISupportsPrimitives.h" #include "nsNetUtil.h" #include "nsServiceManagerUtils.h" diff --git a/dom/presentation/PresentationSessionRequest.cpp b/dom/presentation/PresentationSessionRequest.cpp index f65516231f5a..991e02a13b85 100644 --- a/dom/presentation/PresentationSessionRequest.cpp +++ b/dom/presentation/PresentationSessionRequest.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "PresentationSessionRequest.h" -#include "nsIPresentationControlChannel.h" #include "nsIPresentationDevice.h" namespace mozilla { diff --git a/dom/presentation/PresentationSessionRequest.h b/dom/presentation/PresentationSessionRequest.h index f90a7f160dfb..c16852d74e17 100644 --- a/dom/presentation/PresentationSessionRequest.h +++ b/dom/presentation/PresentationSessionRequest.h @@ -7,8 +7,8 @@ #ifndef mozilla_dom_PresentationSessionRequest_h__ #define mozilla_dom_PresentationSessionRequest_h__ -#include "nsIPresentationSessionRequest.h" #include "nsCOMPtr.h" +#include "nsIPresentationSessionRequest.h" #include "nsString.h" namespace mozilla { diff --git a/dom/presentation/PresentationTCPSessionTransport.cpp b/dom/presentation/PresentationTCPSessionTransport.cpp index fa15464c8160..3a6f3a7db330 100644 --- a/dom/presentation/PresentationTCPSessionTransport.cpp +++ b/dom/presentation/PresentationTCPSessionTransport.cpp @@ -6,11 +6,7 @@ #include "nsArrayUtils.h" #include "nsIAsyncStreamCopier.h" -#include "nsIInputStreamPump.h" #include "nsIMultiplexInputStream.h" -#include "nsIMutableArray.h" -#include "nsIOutputStream.h" -#include "nsIPresentationControlChannel.h" #include "nsIScriptableInputStream.h" #include "nsISocketTransport.h" #include "nsISocketTransportService.h" diff --git a/dom/presentation/PresentationTerminateRequest.cpp b/dom/presentation/PresentationTerminateRequest.cpp index 9ae1ad1e05a2..fab6c32fc592 100644 --- a/dom/presentation/PresentationTerminateRequest.cpp +++ b/dom/presentation/PresentationTerminateRequest.cpp @@ -5,7 +5,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "PresentationTerminateRequest.h" -#include "nsIPresentationControlChannel.h" #include "nsIPresentationDevice.h" namespace mozilla { diff --git a/dom/presentation/ipc/PresentationParent.cpp b/dom/presentation/ipc/PresentationParent.cpp index 3b4f5026395a..f7a37a9aded4 100644 --- a/dom/presentation/ipc/PresentationParent.cpp +++ b/dom/presentation/ipc/PresentationParent.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/Element.h" #include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/Unused.h" -#include "nsIPresentationDeviceManager.h" #include "nsIPresentationSessionTransport.h" #include "nsIPresentationSessionTransportBuilder.h" #include "nsServiceManagerUtils.h" diff --git a/dom/presentation/ipc/PresentationParent.h b/dom/presentation/ipc/PresentationParent.h index 3f76981c672b..c50d37492381 100644 --- a/dom/presentation/ipc/PresentationParent.h +++ b/dom/presentation/ipc/PresentationParent.h @@ -13,7 +13,6 @@ #include "mozilla/dom/PPresentationRequestParent.h" #include "nsIPresentationListener.h" #include "nsIPresentationService.h" -#include "nsIPresentationSessionTransportBuilder.h" namespace mozilla { namespace dom { diff --git a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp index 1934a6d976cd..b40d1e14ec8a 100644 --- a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp +++ b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp @@ -13,7 +13,6 @@ #include "mozilla/Preferences.h" #include "mozilla/Unused.h" #include "nsComponentManagerUtils.h" -#include "nsIObserverService.h" #include "nsIWritablePropertyBag2.h" #include "nsServiceManagerUtils.h" #include "nsTCPDeviceInfo.h" diff --git a/dom/prototype/PrototypeDocumentContentSink.cpp b/dom/prototype/PrototypeDocumentContentSink.cpp index 6f811fa6cd81..ad686c19496e 100644 --- a/dom/prototype/PrototypeDocumentContentSink.cpp +++ b/dom/prototype/PrototypeDocumentContentSink.cpp @@ -11,7 +11,6 @@ #include "nsIContent.h" #include "nsIURI.h" #include "nsNetUtil.h" -#include "nsIDocShell.h" #include "nsIStyleSheetLinkingElement.h" #include "nsHTMLParts.h" #include "nsCRT.h" @@ -22,22 +21,15 @@ #include "nsDocElementCreatedNotificationRunner.h" #include "nsIScriptContext.h" #include "nsNameSpaceManager.h" -#include "nsIServiceManager.h" -#include "nsIScriptSecurityManager.h" -#include "nsIContentViewer.h" #include "nsIScriptError.h" #include "prtime.h" #include "mozilla/Logging.h" #include "nsRect.h" -#include "nsIWebNavigation.h" #include "nsIScriptElement.h" #include "nsStyleLinkElement.h" #include "nsReadableUtils.h" #include "nsUnicharUtils.h" -#include "nsICookieService.h" -#include "nsIPrompt.h" #include "nsIChannel.h" -#include "nsIPrincipal.h" #include "nsNodeInfoManager.h" #include "nsContentCreatorFunctions.h" #include "nsIContentPolicy.h" diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp index 66795140e66d..ce793f42086d 100644 --- a/dom/quota/ActorsParent.cpp +++ b/dom/quota/ActorsParent.cpp @@ -8,19 +8,15 @@ #include "mozIStorageConnection.h" #include "mozIStorageService.h" -#include "mozIThirdPartyUtil.h" -#include "nsIObjectInputStream.h" +#include "nsIBinaryInputStream.h" #include "nsIObjectOutputStream.h" #include "nsIFile.h" #include "nsIFileStreams.h" #include "nsIObserverService.h" -#include "nsIPermissionManager.h" #include "nsIPlatformInfo.h" #include "nsIPrincipal.h" #include "nsIRunnable.h" -#include "nsISimpleEnumerator.h" #include "nsIScriptObjectPrincipal.h" -#include "nsIScriptSecurityManager.h" #include "nsISupportsPrimitives.h" #include "nsITimer.h" #include "nsIURI.h" diff --git a/dom/quota/QuotaManagerService.cpp b/dom/quota/QuotaManagerService.cpp index 60a48891acbe..0a496ae6e35c 100644 --- a/dom/quota/QuotaManagerService.cpp +++ b/dom/quota/QuotaManagerService.cpp @@ -19,7 +19,6 @@ #include "mozilla/ipc/PBackgroundChild.h" #include "nsIIdleService.h" #include "nsIObserverService.h" -#include "nsIScriptSecurityManager.h" #include "nsXULAppAPI.h" #include "QuotaManager.h" #include "QuotaRequests.h" diff --git a/dom/quota/nsIndexedDBProtocolHandler.cpp b/dom/quota/nsIndexedDBProtocolHandler.cpp index d83283d5a697..9e91cbbe8bb5 100644 --- a/dom/quota/nsIndexedDBProtocolHandler.cpp +++ b/dom/quota/nsIndexedDBProtocolHandler.cpp @@ -7,7 +7,6 @@ #include "nsIndexedDBProtocolHandler.h" -#include "nsIURIMutator.h" #include "nsStandardURL.h" using namespace mozilla::net; diff --git a/dom/reporting/ReportDeliver.cpp b/dom/reporting/ReportDeliver.cpp index 44aa16160d15..7707ea74df98 100644 --- a/dom/reporting/ReportDeliver.cpp +++ b/dom/reporting/ReportDeliver.cpp @@ -17,6 +17,7 @@ #include "mozilla/ipc/PBackgroundSharedTypes.h" #include "nsGlobalWindowInner.h" #include "nsIGlobalObject.h" +#include "nsIXPConnect.h" #include "nsNetUtil.h" #include "nsStringStream.h" diff --git a/dom/script/ScriptLoadHandler.cpp b/dom/script/ScriptLoadHandler.cpp index cf64df65de5a..fb47c59ec692 100644 --- a/dom/script/ScriptLoadHandler.cpp +++ b/dom/script/ScriptLoadHandler.cpp @@ -9,8 +9,7 @@ #include "ScriptTrace.h" #include "nsContentUtils.h" -#include "nsIEncodedChannel.h" -#include "nsIStringEnumerator.h" +#include "nsICacheInfoChannel.h" #include "nsMimeTypes.h" #include "mozilla/dom/ScriptDecoding.h" // mozilla::dom::ScriptDecoding diff --git a/dom/script/ScriptLoadRequest.cpp b/dom/script/ScriptLoadRequest.cpp index f800a0e5ddc5..c862a6ead50d 100644 --- a/dom/script/ScriptLoadRequest.cpp +++ b/dom/script/ScriptLoadRequest.cpp @@ -12,7 +12,6 @@ #include "mozilla/Utf8.h" // mozilla::Utf8Unit #include "nsContentUtils.h" -#include "nsICacheInfoChannel.h" #include "ScriptLoadRequest.h" #include "ScriptSettings.h" diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 52f63a75dc47..402a867bb13d 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -39,7 +39,6 @@ #include "nsGlobalWindowInner.h" #include "nsIScriptGlobalObject.h" #include "nsIScriptContext.h" -#include "nsIScriptSecurityManager.h" #include "nsIPrincipal.h" #include "nsJSPrincipals.h" #include "nsContentPolicyUtils.h" @@ -55,7 +54,6 @@ #include "nsContentUtils.h" #include "nsUnicharUtils.h" #include "nsAutoPtr.h" -#include "nsIXPConnect.h" #include "nsError.h" #include "nsThreadUtils.h" #include "nsDocShellCID.h" diff --git a/dom/script/ScriptLoader.h b/dom/script/ScriptLoader.h index 264234d06ccf..3957dff54f02 100644 --- a/dom/script/ScriptLoader.h +++ b/dom/script/ScriptLoader.h @@ -15,7 +15,6 @@ #include "nsCycleCollectionParticipant.h" #include "nsTArray.h" #include "nsAutoPtr.h" -#include "nsICacheInfoChannel.h" #include "mozilla/dom/Document.h" #include "nsIIncrementalStreamLoader.h" #include "nsURIHashKey.h" diff --git a/dom/script/ScriptSettings.h b/dom/script/ScriptSettings.h index 94619e6f61c6..48830ad8c84a 100644 --- a/dom/script/ScriptSettings.h +++ b/dom/script/ScriptSettings.h @@ -23,7 +23,6 @@ class nsPIDOMWindowInner; class nsGlobalWindowInner; class nsIScriptContext; -class nsIDocShell; namespace mozilla { namespace dom { diff --git a/dom/security/ReferrerInfo.cpp b/dom/security/ReferrerInfo.cpp index 5a5ceddd53f7..a53221ec8dc2 100644 --- a/dom/security/ReferrerInfo.cpp +++ b/dom/security/ReferrerInfo.cpp @@ -5,7 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsIClassInfoImpl.h" -#include "nsICookieService.h" +#include "nsIEffectiveTLDService.h" #include "nsIHttpChannel.h" #include "nsIObjectInputStream.h" #include "nsIObjectOutputStream.h" diff --git a/dom/security/ReferrerInfo.h b/dom/security/ReferrerInfo.h index 53d69c549770..f43fd8202828 100644 --- a/dom/security/ReferrerInfo.h +++ b/dom/security/ReferrerInfo.h @@ -9,7 +9,6 @@ #include "nsCOMPtr.h" #include "nsIReferrerInfo.h" -#include "nsISerializable.h" #include "nsIHttpChannel.h" #include "nsReadableUtils.h" #include "mozilla/Maybe.h" diff --git a/dom/security/SRICheck.cpp b/dom/security/SRICheck.cpp index dca2daa5106c..174f7de0ba9b 100644 --- a/dom/security/SRICheck.cpp +++ b/dom/security/SRICheck.cpp @@ -15,9 +15,7 @@ #include "nsContentUtils.h" #include "nsIChannel.h" #include "nsIConsoleReportCollector.h" -#include "nsIProtocolHandler.h" #include "nsIScriptError.h" -#include "nsIIncrementalStreamLoader.h" #include "nsIURI.h" #include "nsNetUtil.h" #include "nsWhitespaceTokenizer.h" diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp index 67b209167fce..c96a94ecd5a1 100644 --- a/dom/security/nsCSPContext.cpp +++ b/dom/security/nsCSPContext.cpp @@ -29,7 +29,6 @@ #include "nsIUploadChannel.h" #include "nsIURIMutator.h" #include "nsIScriptError.h" -#include "nsIWebNavigation.h" #include "nsMimeTypes.h" #include "nsNetUtil.h" #include "nsIContentPolicy.h" diff --git a/dom/security/nsCSPContext.h b/dom/security/nsCSPContext.h index cf08a476ac86..850cddb2b3f2 100644 --- a/dom/security/nsCSPContext.h +++ b/dom/security/nsCSPContext.h @@ -12,10 +12,8 @@ #include "mozilla/StaticPrefs_security.h" #include "nsIChannel.h" #include "nsIChannelEventSink.h" -#include "nsIClassInfo.h" #include "nsIContentSecurityPolicy.h" #include "nsIInterfaceRequestor.h" -#include "nsISerializable.h" #include "nsIStreamListener.h" #include "nsIWeakReferenceUtils.h" #include "nsXPCOM.h" diff --git a/dom/security/nsCSPParser.cpp b/dom/security/nsCSPParser.cpp index ef3177cc8bf1..ebd1305ef593 100644 --- a/dom/security/nsCSPParser.cpp +++ b/dom/security/nsCSPParser.cpp @@ -11,10 +11,7 @@ #include "nsContentUtils.h" #include "nsCSPParser.h" #include "nsCSPUtils.h" -#include "nsIConsoleService.h" -#include "nsIContentPolicy.h" #include "nsIScriptError.h" -#include "nsIStringBundle.h" #include "nsNetUtil.h" #include "nsReadableUtils.h" #include "nsServiceManagerUtils.h" diff --git a/dom/security/nsCSPService.cpp b/dom/security/nsCSPService.cpp index 049ca13831f9..4549cd64bbda 100644 --- a/dom/security/nsCSPService.cpp +++ b/dom/security/nsCSPService.cpp @@ -10,15 +10,12 @@ #include "nsString.h" #include "nsCOMPtr.h" #include "nsIURI.h" -#include "nsIPrincipal.h" -#include "nsIObserver.h" #include "nsIContent.h" #include "nsCSPService.h" #include "nsIContentSecurityPolicy.h" #include "nsError.h" #include "nsIAsyncVerifyRedirectCallback.h" #include "nsAsyncRedirectVerifyHelper.h" -#include "nsIScriptError.h" #include "nsContentUtils.h" #include "nsContentPolicyUtils.h" #include "nsNetUtil.h" diff --git a/dom/security/nsCSPUtils.cpp b/dom/security/nsCSPUtils.cpp index fb7692aa0337..d7b932051fc7 100644 --- a/dom/security/nsCSPUtils.cpp +++ b/dom/security/nsCSPUtils.cpp @@ -13,7 +13,6 @@ #include "nsIChannel.h" #include "nsICryptoHash.h" #include "nsIScriptError.h" -#include "nsIServiceManager.h" #include "nsIStringBundle.h" #include "nsIURL.h" #include "nsReadableUtils.h" diff --git a/dom/security/nsCSPUtils.h b/dom/security/nsCSPUtils.h index 717b30014ddc..821699079054 100644 --- a/dom/security/nsCSPUtils.h +++ b/dom/security/nsCSPUtils.h @@ -8,7 +8,6 @@ #define nsCSPUtils_h___ #include "nsCOMPtr.h" -#include "nsIContentPolicy.h" #include "nsIContentSecurityPolicy.h" #include "nsIURI.h" #include "nsLiteralString.h" diff --git a/dom/security/nsContentSecurityManager.cpp b/dom/security/nsContentSecurityManager.cpp index f8645ed7f1a3..f498429a87be 100644 --- a/dom/security/nsContentSecurityManager.cpp +++ b/dom/security/nsContentSecurityManager.cpp @@ -17,8 +17,6 @@ #include "nsContentUtils.h" #include "nsCORSListenerProxy.h" #include "nsIStreamListener.h" -#include "nsIURIFixup.h" -#include "nsIImageLoadingContent.h" #include "nsIRedirectHistoryEntry.h" #include "nsReadableUtils.h" diff --git a/dom/security/nsMixedContentBlocker.cpp b/dom/security/nsMixedContentBlocker.cpp index 6d88d19b6cc8..664637ec1e7c 100644 --- a/dom/security/nsMixedContentBlocker.cpp +++ b/dom/security/nsMixedContentBlocker.cpp @@ -14,16 +14,12 @@ #include "nsDocShell.h" #include "nsIWebProgressListener.h" #include "nsContentUtils.h" -#include "nsIRequest.h" #include "mozilla/dom/Document.h" -#include "nsIContentViewer.h" #include "nsIChannel.h" -#include "nsIHttpChannel.h" #include "nsIParentChannel.h" #include "mozilla/Preferences.h" #include "nsIScriptObjectPrincipal.h" #include "nsISecureBrowserUI.h" -#include "nsIDocumentLoader.h" #include "nsIWebNavigation.h" #include "nsLoadGroup.h" #include "nsIScriptError.h" diff --git a/dom/security/test/gtest/TestCSPParser.cpp b/dom/security/test/gtest/TestCSPParser.cpp index e95ba8d9b109..94df7c2877d4 100644 --- a/dom/security/test/gtest/TestCSPParser.cpp +++ b/dom/security/test/gtest/TestCSPParser.cpp @@ -12,7 +12,6 @@ #include "nsIContentSecurityPolicy.h" #include "nsNetUtil.h" #include "mozilla/dom/nsCSPContext.h" -#include "nsIPrefService.h" #include "nsIPrefBranch.h" #include "nsStringFwd.h" diff --git a/dom/serviceworkers/ServiceWorkerContainer.cpp b/dom/serviceworkers/ServiceWorkerContainer.cpp index 22abd74e3791..9910a116f783 100644 --- a/dom/serviceworkers/ServiceWorkerContainer.cpp +++ b/dom/serviceworkers/ServiceWorkerContainer.cpp @@ -13,7 +13,6 @@ #include "nsIServiceWorkerManager.h" #include "nsIScriptError.h" #include "nsThreadUtils.h" -#include "nsIURL.h" #include "nsNetUtil.h" #include "nsPIDOMWindow.h" #include "mozilla/Services.h" diff --git a/dom/serviceworkers/ServiceWorkerEvents.cpp b/dom/serviceworkers/ServiceWorkerEvents.cpp index bacf34ff001b..b35beae37b6c 100644 --- a/dom/serviceworkers/ServiceWorkerEvents.cpp +++ b/dom/serviceworkers/ServiceWorkerEvents.cpp @@ -11,11 +11,8 @@ #include "nsAutoPtr.h" #include "nsContentUtils.h" #include "nsIConsoleReportCollector.h" -#include "nsIHttpChannelInternal.h" #include "nsINetworkInterceptController.h" -#include "nsIOutputStream.h" #include "nsIScriptError.h" -#include "nsITimedChannel.h" #include "mozilla/Encoding.h" #include "nsContentPolicyUtils.h" #include "nsContentUtils.h" diff --git a/dom/serviceworkers/ServiceWorkerManager.cpp b/dom/serviceworkers/ServiceWorkerManager.cpp index b8a82d32c96a..d2e3b003d870 100644 --- a/dom/serviceworkers/ServiceWorkerManager.cpp +++ b/dom/serviceworkers/ServiceWorkerManager.cpp @@ -7,23 +7,16 @@ #include "ServiceWorkerManager.h" #include "nsAutoPtr.h" -#include "nsIConsoleService.h" #include "nsIEffectiveTLDService.h" -#include "nsIScriptSecurityManager.h" -#include "nsIStreamLoader.h" #include "nsIHttpChannel.h" #include "nsIHttpChannelInternal.h" -#include "nsIHttpHeaderVisitor.h" #include "nsINamed.h" #include "nsINetworkInterceptController.h" #include "nsIMutableArray.h" -#include "nsIScriptError.h" -#include "nsISimpleEnumerator.h" #include "nsITimer.h" #include "nsIUploadChannel2.h" #include "nsServiceManagerUtils.h" #include "nsDebug.h" -#include "nsISupportsPrimitives.h" #include "nsIPermissionManager.h" #include "nsXULAppAPI.h" diff --git a/dom/serviceworkers/ServiceWorkerPrivate.cpp b/dom/serviceworkers/ServiceWorkerPrivate.cpp index a890afa5e99c..4ff180bbc793 100644 --- a/dom/serviceworkers/ServiceWorkerPrivate.cpp +++ b/dom/serviceworkers/ServiceWorkerPrivate.cpp @@ -20,7 +20,6 @@ #include "nsINetworkInterceptController.h" #include "nsIPushErrorReporter.h" #include "nsISupportsImpl.h" -#include "nsITimedChannel.h" #include "nsIUploadChannel2.h" #include "nsNetUtil.h" #include "nsProxyRelease.h" diff --git a/dom/serviceworkers/ServiceWorkerPrivateImpl.cpp b/dom/serviceworkers/ServiceWorkerPrivateImpl.cpp index 8c7d2187c0b7..48a6276cdcba 100644 --- a/dom/serviceworkers/ServiceWorkerPrivateImpl.cpp +++ b/dom/serviceworkers/ServiceWorkerPrivateImpl.cpp @@ -13,11 +13,7 @@ #include "nsContentUtils.h" #include "nsDebug.h" #include "nsError.h" -#include "nsICacheInfoChannel.h" #include "nsIChannel.h" -#include "nsIHttpChannel.h" -#include "nsIInputStream.h" -#include "nsILoadInfo.h" #include "nsINetworkInterceptController.h" #include "nsIObserverService.h" #include "nsIURI.h" diff --git a/dom/serviceworkers/ServiceWorkerRegistrar.cpp b/dom/serviceworkers/ServiceWorkerRegistrar.cpp index a1f5574503df..1037318e250f 100644 --- a/dom/serviceworkers/ServiceWorkerRegistrar.cpp +++ b/dom/serviceworkers/ServiceWorkerRegistrar.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/DOMException.h" #include "mozilla/net/MozURL.h" -#include "mozIThirdPartyUtil.h" #include "nsIEventTarget.h" #include "nsIInputStream.h" #include "nsILineInputStream.h" diff --git a/dom/serviceworkers/ServiceWorkerRegistration.cpp b/dom/serviceworkers/ServiceWorkerRegistration.cpp index 976dae99e480..ead16a090815 100644 --- a/dom/serviceworkers/ServiceWorkerRegistration.cpp +++ b/dom/serviceworkers/ServiceWorkerRegistration.cpp @@ -15,7 +15,6 @@ #include "mozilla/dom/ServiceWorkerUtils.h" #include "mozilla/dom/WorkerPrivate.h" #include "nsCycleCollectionParticipant.h" -#include "nsISupportsPrimitives.h" #include "nsPIDOMWindow.h" #include "RemoteServiceWorkerRegistrationImpl.h" #include "ServiceWorkerRegistrationImpl.h" diff --git a/dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp b/dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp index 84e9fee3e7fc..85316292d033 100644 --- a/dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp +++ b/dom/serviceworkers/ServiceWorkerRegistrationImpl.cpp @@ -29,7 +29,6 @@ #include "mozilla/dom/Document.h" #include "nsIServiceWorkerManager.h" -#include "nsISupportsPrimitives.h" #include "nsPIDOMWindow.h" #include "nsContentUtils.h" diff --git a/dom/serviceworkers/ServiceWorkerScriptCache.cpp b/dom/serviceworkers/ServiceWorkerScriptCache.cpp index 6663bb5661fe..f87ed6b150d0 100644 --- a/dom/serviceworkers/ServiceWorkerScriptCache.cpp +++ b/dom/serviceworkers/ServiceWorkerScriptCache.cpp @@ -18,13 +18,13 @@ #include "mozilla/ipc/PBackgroundSharedTypes.h" #include "mozilla/net/CookieSettings.h" #include "nsICacheInfoChannel.h" -#include "nsIHttpChannelInternal.h" #include "nsIStreamLoader.h" #include "nsIThreadRetargetableRequest.h" +#include "nsIUUIDGenerator.h" +#include "nsIXPConnect.h" #include "nsIInputStreamPump.h" #include "nsIPrincipal.h" -#include "nsIScriptError.h" #include "nsIScriptSecurityManager.h" #include "nsContentUtils.h" #include "nsNetUtil.h" diff --git a/dom/serviceworkers/ServiceWorkerScriptCache.h b/dom/serviceworkers/ServiceWorkerScriptCache.h index e626b7415d0d..a9d6699b7bfe 100644 --- a/dom/serviceworkers/ServiceWorkerScriptCache.h +++ b/dom/serviceworkers/ServiceWorkerScriptCache.h @@ -7,7 +7,6 @@ #ifndef mozilla_dom_ServiceWorkerScriptCache_h #define mozilla_dom_ServiceWorkerScriptCache_h -#include "nsIRequest.h" #include "nsString.h" class nsILoadGroup; diff --git a/dom/smil/SMILAnimationController.cpp b/dom/smil/SMILAnimationController.cpp index 84c8fa2b9806..3c326523dfcd 100644 --- a/dom/smil/SMILAnimationController.cpp +++ b/dom/smil/SMILAnimationController.cpp @@ -19,7 +19,6 @@ #include "nsContentUtils.h" #include "nsCSSProps.h" #include "mozilla/dom/Document.h" -#include "nsITimer.h" #include "SMILCompositor.h" #include "SMILCSSProperty.h" diff --git a/dom/smil/SMILAnimationController.h b/dom/smil/SMILAnimationController.h index 498c0ca78470..037841abf8d5 100644 --- a/dom/smil/SMILAnimationController.h +++ b/dom/smil/SMILAnimationController.h @@ -14,7 +14,6 @@ #include "nsAutoPtr.h" #include "nsCOMPtr.h" #include "nsTArray.h" -#include "nsITimer.h" #include "nsTHashtable.h" #include "nsHashKeys.h" #include "nsRefreshDriver.h" diff --git a/dom/storage/LocalStorage.cpp b/dom/storage/LocalStorage.cpp index 9908e7d848e0..0b408fb96237 100644 --- a/dom/storage/LocalStorage.cpp +++ b/dom/storage/LocalStorage.cpp @@ -9,11 +9,7 @@ #include "LocalStorageManager.h" #include "StorageUtils.h" -#include "nsIObserverService.h" -#include "nsIScriptSecurityManager.h" -#include "nsIPermissionManager.h" #include "nsIPrincipal.h" -#include "nsICookiePermission.h" #include "mozilla/dom/PermissionMessageUtils.h" #include "mozilla/dom/StorageBinding.h" diff --git a/dom/storage/LocalStorageCache.h b/dom/storage/LocalStorageCache.h index bbd1844599e6..1ba98d96184f 100644 --- a/dom/storage/LocalStorageCache.h +++ b/dom/storage/LocalStorageCache.h @@ -8,7 +8,6 @@ #define mozilla_dom_LocalStorageCache_h #include "nsIPrincipal.h" -#include "nsITimer.h" #include "nsString.h" #include "nsDataHashtable.h" diff --git a/dom/storage/LocalStorageManager.cpp b/dom/storage/LocalStorageManager.cpp index c4616cb10286..d2d20d935e37 100644 --- a/dom/storage/LocalStorageManager.cpp +++ b/dom/storage/LocalStorageManager.cpp @@ -9,12 +9,10 @@ #include "StorageDBThread.h" #include "StorageUtils.h" -#include "nsIScriptSecurityManager.h" #include "nsIEffectiveTLDService.h" #include "nsNetUtil.h" #include "nsNetCID.h" -#include "nsIURL.h" #include "nsPrintfCString.h" #include "nsXULAppAPI.h" #include "nsThreadUtils.h" diff --git a/dom/storage/SessionStorage.cpp b/dom/storage/SessionStorage.cpp index c250a9b3e537..a0540057cf6e 100644 --- a/dom/storage/SessionStorage.cpp +++ b/dom/storage/SessionStorage.cpp @@ -12,7 +12,6 @@ #include "mozilla/Preferences.h" #include "nsContentUtils.h" #include "nsIPrincipal.h" -#include "nsIWebProgressListener.h" #include "nsPIDOMWindow.h" #define DATASET \ diff --git a/dom/storage/StorageDBThread.cpp b/dom/storage/StorageDBThread.cpp index 39ccd69937a9..71dcbd217e3b 100644 --- a/dom/storage/StorageDBThread.cpp +++ b/dom/storage/StorageDBThread.cpp @@ -10,7 +10,6 @@ #include "LocalStorageCache.h" #include "LocalStorageManager.h" -#include "nsIEffectiveTLDService.h" #include "nsDirectoryServiceUtils.h" #include "nsAppDirectoryServiceDefs.h" #include "nsThreadUtils.h" @@ -18,7 +17,6 @@ #include "mozStorageCID.h" #include "mozStorageHelper.h" #include "mozIStorageService.h" -#include "mozIStorageBindingParamsArray.h" #include "mozIStorageBindingParams.h" #include "mozIStorageValueArray.h" #include "mozIStorageFunction.h" diff --git a/dom/storage/StorageDBUpdater.cpp b/dom/storage/StorageDBUpdater.cpp index 01f892cd25a7..6719cc91f61b 100644 --- a/dom/storage/StorageDBUpdater.cpp +++ b/dom/storage/StorageDBUpdater.cpp @@ -7,7 +7,6 @@ #include "LocalStorageManager.h" #include "StorageUtils.h" -#include "mozIStorageBindingParamsArray.h" #include "mozIStorageBindingParams.h" #include "mozIStorageValueArray.h" #include "mozIStorageFunction.h" diff --git a/dom/storage/StorageObserver.cpp b/dom/storage/StorageObserver.cpp index 3cc579e3f4d0..e68b1704062d 100644 --- a/dom/storage/StorageObserver.cpp +++ b/dom/storage/StorageObserver.cpp @@ -13,8 +13,6 @@ #include "mozilla/BasePrincipal.h" #include "nsIObserverService.h" #include "nsIURI.h" -#include "nsIURL.h" -#include "nsIScriptSecurityManager.h" #include "nsIPermission.h" #include "nsIIDNService.h" #include "nsICookiePermission.h" diff --git a/dom/storage/StorageUtils.cpp b/dom/storage/StorageUtils.cpp index 35fd894f9a39..d45121f0affc 100644 --- a/dom/storage/StorageUtils.cpp +++ b/dom/storage/StorageUtils.cpp @@ -4,6 +4,7 @@ * 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 "nsIURL.h" #include "StorageUtils.h" #include "mozilla/OriginAttributes.h" diff --git a/dom/svg/SVGDocument.cpp b/dom/svg/SVGDocument.cpp index 4587aa8b8be5..3c1423e9155e 100644 --- a/dom/svg/SVGDocument.cpp +++ b/dom/svg/SVGDocument.cpp @@ -7,10 +7,6 @@ #include "mozilla/dom/SVGDocument.h" #include "mozilla/css/Loader.h" -#include "nsICategoryManager.h" -#include "nsISimpleEnumerator.h" -#include "nsIStyleSheetService.h" -#include "nsISupportsPrimitives.h" #include "nsNetUtil.h" #include "nsServiceManagerUtils.h" #include "nsString.h" diff --git a/dom/svg/SVGFilters.cpp b/dom/svg/SVGFilters.cpp index 0a1a8bf0f2b1..50e0cef5f7c1 100644 --- a/dom/svg/SVGFilters.cpp +++ b/dom/svg/SVGFilters.cpp @@ -9,7 +9,6 @@ #include #include "DOMSVGAnimatedNumberList.h" #include "DOMSVGAnimatedLength.h" -#include "imgIContainer.h" #include "nsGkAtoms.h" #include "nsCOMPtr.h" #include "nsIFrame.h" diff --git a/dom/system/OSFileConstants.cpp b/dom/system/OSFileConstants.cpp index 2c948c4de9aa..1aab9f3f5c4b 100644 --- a/dom/system/OSFileConstants.cpp +++ b/dom/system/OSFileConstants.cpp @@ -66,7 +66,6 @@ #include "nsIObserver.h" #include "nsDirectoryServiceUtils.h" #include "nsIXULRuntime.h" -#include "nsIPropertyBag2.h" #include "nsXPCOMCIDInternal.h" #include "nsServiceManagerUtils.h" #include "nsString.h" @@ -81,7 +80,6 @@ #include "mozilla/UniquePtr.h" #include "OSFileConstants.h" -#include "nsIOSFileConstantsService.h" #include "nsZipArchive.h" #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ diff --git a/dom/system/nsDeviceSensors.cpp b/dom/system/nsDeviceSensors.cpp index 3c356b7489d3..3037ec50af60 100644 --- a/dom/system/nsDeviceSensors.cpp +++ b/dom/system/nsDeviceSensors.cpp @@ -12,12 +12,9 @@ #include "nsPIDOMWindow.h" #include "nsIScriptObjectPrincipal.h" -#include "nsIServiceManager.h" -#include "nsIServiceManager.h" #include "mozilla/Preferences.h" #include "mozilla/StaticPrefs_device.h" #include "mozilla/Attributes.h" -#include "nsIPermissionManager.h" #include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/DeviceLightEvent.h" #include "mozilla/dom/DeviceOrientationEvent.h" diff --git a/dom/system/nsDeviceSensors.h b/dom/system/nsDeviceSensors.h index cdc6a3e5050b..925540ef39bf 100644 --- a/dom/system/nsDeviceSensors.h +++ b/dom/system/nsDeviceSensors.h @@ -11,7 +11,6 @@ #include "nsCOMArray.h" #include "nsTArray.h" #include "nsCOMPtr.h" -#include "nsITimer.h" #include "mozilla/dom/DeviceMotionEvent.h" #include "mozilla/TimeStamp.h" #include "mozilla/HalSensor.h" diff --git a/dom/u2f/U2F.cpp b/dom/u2f/U2F.cpp index 1dbcd334019d..84758926d334 100644 --- a/dom/u2f/U2F.cpp +++ b/dom/u2f/U2F.cpp @@ -11,7 +11,6 @@ #include "mozilla/dom/WebAuthnTransactionChild.h" #include "mozilla/dom/WebAuthnUtil.h" #include "nsContentUtils.h" -#include "nsIEffectiveTLDService.h" #include "nsNetUtil.h" #include "nsURLParsers.h" diff --git a/dom/url/URLMainThread.cpp b/dom/url/URLMainThread.cpp index 81076ef1093c..5dcdc8697cb6 100644 --- a/dom/url/URLMainThread.cpp +++ b/dom/url/URLMainThread.cpp @@ -11,8 +11,6 @@ #include "mozilla/dom/BlobURLProtocolHandler.h" #include "mozilla/Unused.h" #include "nsContentUtils.h" -#include "nsIURL.h" -#include "nsIURIMutator.h" #include "nsNetUtil.h" namespace mozilla { diff --git a/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp b/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp index 7552e0dd554f..cf38fc7aab81 100644 --- a/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp @@ -29,17 +29,13 @@ #include "nsDOMAttributeMap.h" #include "nsFrameLoader.h" #include "nsGlobalWindowOuter.h" -#include "nsIComponentRegistrar.h" #include "nsIContent.h" #include "nsIDOMWindowUtils.h" -#include "nsIDocShell.h" #include "mozilla/dom/Document.h" #include "nsIDocumentEncoder.h" #include "nsILoadContext.h" #include "nsIProtocolHandler.h" #include "nsISHEntry.h" -#include "nsISupportsPrimitives.h" -#include "nsIRemoteTab.h" #include "nsIURIMutator.h" #include "nsIWebBrowserPersist.h" #include "nsIWebNavigation.h" diff --git a/dom/webbrowserpersist/WebBrowserPersistResourcesChild.h b/dom/webbrowserpersist/WebBrowserPersistResourcesChild.h index 29154fb98710..ff0a11ee8ff6 100644 --- a/dom/webbrowserpersist/WebBrowserPersistResourcesChild.h +++ b/dom/webbrowserpersist/WebBrowserPersistResourcesChild.h @@ -10,7 +10,6 @@ #include "mozilla/PWebBrowserPersistResourcesChild.h" #include "nsIWebBrowserPersistDocument.h" -#include "nsIContentPolicy.h" namespace mozilla { diff --git a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.h b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.h index 75cc2549905d..e6f398ca2713 100644 --- a/dom/webbrowserpersist/WebBrowserPersistResourcesParent.h +++ b/dom/webbrowserpersist/WebBrowserPersistResourcesParent.h @@ -12,7 +12,6 @@ #include "WebBrowserPersistDocumentParent.h" #include "nsCOMPtr.h" #include "nsIWebBrowserPersistDocument.h" -#include "nsIContentPolicy.h" namespace mozilla { diff --git a/dom/webbrowserpersist/nsWebBrowserPersist.cpp b/dom/webbrowserpersist/nsWebBrowserPersist.cpp index b7e9d5985b21..6919863cef38 100644 --- a/dom/webbrowserpersist/nsWebBrowserPersist.cpp +++ b/dom/webbrowserpersist/nsWebBrowserPersist.cpp @@ -19,11 +19,9 @@ #include "nsILoadContext.h" #include "nsIPrivateBrowsingChannel.h" #include "nsComponentManagerUtils.h" -#include "nsIComponentRegistrar.h" #include "nsIStorageStream.h" #include "nsISeekableStream.h" #include "nsIHttpChannel.h" -#include "nsIHttpChannelInternal.h" #include "nsIEncodedChannel.h" #include "nsIUploadChannel.h" #include "nsICacheInfoChannel.h" @@ -38,20 +36,13 @@ #include "nsIURL.h" #include "nsIFileURL.h" -#include "nsIURIMutator.h" #include "nsIWebProgressListener.h" #include "nsIAuthPrompt.h" #include "nsIPrompt.h" -#include "nsISHEntry.h" -#include "nsIWebPageDescriptor.h" #include "nsIFormControl.h" #include "nsContentUtils.h" -#include "nsIImageLoadingContent.h" - #include "ftpCore.h" -#include "nsITransport.h" -#include "nsISocketTransport.h" #include "nsIStringBundle.h" #include "nsIProtocolHandler.h" diff --git a/dom/webbrowserpersist/nsWebBrowserPersist.h b/dom/webbrowserpersist/nsWebBrowserPersist.h index ef019249785a..b8f164dc1e85 100644 --- a/dom/webbrowserpersist/nsWebBrowserPersist.h +++ b/dom/webbrowserpersist/nsWebBrowserPersist.h @@ -16,11 +16,8 @@ #include "nsIOutputStream.h" #include "nsIInputStream.h" #include "nsIChannel.h" -#include "nsIDocumentEncoder.h" -#include "nsITransport.h" #include "nsIProgressEventSink.h" #include "nsIFile.h" -#include "nsIContentPolicy.h" #include "nsIWebProgressListener2.h" #include "nsIWebBrowserPersist.h" #include "nsIWebBrowserPersistDocument.h" diff --git a/dom/websocket/WebSocket.cpp b/dom/websocket/WebSocket.cpp index 06c15a0b1414..28bce9ecabe5 100644 --- a/dom/websocket/WebSocket.cpp +++ b/dom/websocket/WebSocket.cpp @@ -31,7 +31,6 @@ #include "nsIScriptGlobalObject.h" #include "mozilla/dom/Document.h" #include "nsXPCOM.h" -#include "nsIXPConnect.h" #include "nsContentUtils.h" #include "nsError.h" #include "nsICookieSettings.h" @@ -45,7 +44,6 @@ #include "nsIConsoleService.h" #include "mozilla/dom/CloseEvent.h" #include "mozilla/net/WebSocketEventService.h" -#include "nsICryptoHash.h" #include "nsJSUtils.h" #include "nsIScriptError.h" #include "nsNetUtil.h" diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index 227a5e8d1b2f..75eec50ccaaf 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -8,17 +8,10 @@ #include "nsAutoPtr.h" #include "nsContentSecurityUtils.h" -#include "nsIChannel.h" #include "nsIContentSecurityPolicy.h" -#include "nsICookieService.h" #include "mozilla/dom/Document.h" -#include "nsIDOMChromeWindow.h" -#include "nsIEffectiveTLDService.h" #include "nsIObserverService.h" -#include "nsIPrincipal.h" #include "nsIScriptContext.h" -#include "nsIScriptError.h" -#include "nsIScriptSecurityManager.h" #include "nsIStreamTransportService.h" #include "nsISupportsPriority.h" #include "nsITimer.h" diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 5cca21061cfe..e30563dce403 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -14,7 +14,6 @@ #include "nsIContentSecurityPolicy.h" #include "nsIDocShell.h" #include "nsIHttpChannel.h" -#include "nsIHttpChannelInternal.h" #include "nsIInputStreamPump.h" #include "nsIIOService.h" #include "nsIOService.h" @@ -25,6 +24,7 @@ #include "nsIStreamListenerTee.h" #include "nsIThreadRetargetableRequest.h" #include "nsIURI.h" +#include "nsIXPConnect.h" #include "jsapi.h" #include "jsfriendapi.h" @@ -34,7 +34,6 @@ #include "nsContentPolicyUtils.h" #include "nsContentUtils.h" #include "nsDocShellCID.h" -#include "nsISupportsPrimitives.h" #include "nsNetUtil.h" #include "nsIPipe.h" #include "nsIOutputStream.h" diff --git a/dom/workers/ScriptLoader.h b/dom/workers/ScriptLoader.h index a99e9f741256..04c5d133ecb5 100644 --- a/dom/workers/ScriptLoader.h +++ b/dom/workers/ScriptLoader.h @@ -8,7 +8,6 @@ #define mozilla_dom_workers_scriptloader_h__ #include "mozilla/dom/WorkerCommon.h" -#include "nsIContentPolicy.h" #include "nsStringFwd.h" class nsIPrincipal; diff --git a/dom/workers/WorkerLoadInfo.h b/dom/workers/WorkerLoadInfo.h index d82c94ea4687..e2fbabc1dd54 100644 --- a/dom/workers/WorkerLoadInfo.h +++ b/dom/workers/WorkerLoadInfo.h @@ -14,7 +14,6 @@ #include "nsIInterfaceRequestor.h" #include "nsILoadContext.h" -#include "nsIRequest.h" #include "nsISupportsImpl.h" #include "nsIWeakReferenceUtils.h" diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 4c4b018333a9..9f34ae849896 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -49,10 +49,10 @@ #include "nsNetUtil.h" #include "nsIMemoryReporter.h" #include "nsIPermissionManager.h" -#include "nsIRandomGenerator.h" #include "nsIScriptError.h" #include "nsIURI.h" #include "nsIURL.h" +#include "nsIUUIDGenerator.h" #include "nsPrintfCString.h" #include "nsProxyRelease.h" #include "nsQueryObject.h" diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index 83bba84bf1fd..70cee7214d4c 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -40,7 +40,6 @@ #include "nsServiceManagerUtils.h" #include "mozilla/dom/Document.h" -#include "nsIServiceWorkerManager.h" #include "nsIScriptError.h" #ifdef ANDROID diff --git a/dom/workers/sharedworkers/SharedWorkerManager.cpp b/dom/workers/sharedworkers/SharedWorkerManager.cpp index 848d74565a44..bea3c1e23940 100644 --- a/dom/workers/sharedworkers/SharedWorkerManager.cpp +++ b/dom/workers/sharedworkers/SharedWorkerManager.cpp @@ -12,7 +12,6 @@ #include "mozilla/ipc/URIUtils.h" #include "mozilla/dom/RemoteWorkerController.h" #include "nsIConsoleReportCollector.h" -#include "nsINetworkInterceptController.h" #include "nsIPrincipal.h" #include "nsProxyRelease.h" diff --git a/dom/worklet/Worklet.cpp b/dom/worklet/Worklet.cpp index 3d452ca795f2..60a6a917685e 100644 --- a/dom/worklet/Worklet.cpp +++ b/dom/worklet/Worklet.cpp @@ -19,7 +19,9 @@ #include "js/Modules.h" #include "js/SourceText.h" #include "nsIInputStreamPump.h" +#include "nsIStreamLoader.h" #include "nsIThreadRetargetableRequest.h" +#include "nsIInputStreamPump.h" #include "nsNetUtil.h" #include "xpcprivate.h" diff --git a/dom/xhr/XMLHttpRequestMainThread.cpp b/dom/xhr/XMLHttpRequestMainThread.cpp index 33df407d0590..d5f50e11575e 100644 --- a/dom/xhr/XMLHttpRequestMainThread.cpp +++ b/dom/xhr/XMLHttpRequestMainThread.cpp @@ -51,8 +51,6 @@ #include "nsIAuthPrompt.h" #include "nsIAuthPrompt2.h" #include "nsIClassOfService.h" -#include "nsIOutputStream.h" -#include "nsISupportsPrimitives.h" #include "nsISupportsPriority.h" #include "nsIInterfaceRequestorUtils.h" #include "nsStreamUtils.h" @@ -61,20 +59,15 @@ #include "nsIUploadChannel2.h" #include "nsXPCOM.h" #include "nsIDOMEventListener.h" -#include "nsIScriptSecurityManager.h" -#include "nsIVariant.h" #include "nsVariant.h" #include "nsIScriptError.h" -#include "nsIStreamConverterService.h" #include "nsICachingChannel.h" #include "nsContentUtils.h" #include "nsCycleCollectionParticipant.h" #include "nsError.h" -#include "nsIStorageStream.h" #include "nsIPromptFactory.h" #include "nsIWindowWatcher.h" #include "nsIConsoleService.h" -#include "nsIContentSecurityPolicy.h" #include "nsAsyncRedirectVerifyHelper.h" #include "nsStringBuffer.h" #include "nsIFileChannel.h" diff --git a/dom/xhr/XMLHttpRequestMainThread.h b/dom/xhr/XMLHttpRequestMainThread.h index 2fa7c2d52d24..2b463bbd1985 100644 --- a/dom/xhr/XMLHttpRequestMainThread.h +++ b/dom/xhr/XMLHttpRequestMainThread.h @@ -25,7 +25,6 @@ #include "nsIPrincipal.h" #include "nsIScriptObjectPrincipal.h" #include "nsISizeOfEventTarget.h" -#include "nsIXPConnect.h" #include "nsIInputStream.h" #include "nsIContentSecurityPolicy.h" #include "mozilla/Assertions.h" diff --git a/dom/xhr/XMLHttpRequestWorker.cpp b/dom/xhr/XMLHttpRequestWorker.cpp index d397d81a7ef2..cb86623d9410 100644 --- a/dom/xhr/XMLHttpRequestWorker.cpp +++ b/dom/xhr/XMLHttpRequestWorker.cpp @@ -7,8 +7,6 @@ #include "XMLHttpRequestWorker.h" #include "nsIDOMEventListener.h" -#include "nsIRunnable.h" -#include "nsIXPConnect.h" #include "jsapi.h" // JS::AutoValueArray #include "jsfriendapi.h" diff --git a/dom/xml/XMLDocument.cpp b/dom/xml/XMLDocument.cpp index 44f1c90ca664..ea530c927d0e 100644 --- a/dom/xml/XMLDocument.cpp +++ b/dom/xml/XMLDocument.cpp @@ -10,19 +10,13 @@ #include "nsIXMLContentSink.h" #include "nsPresContext.h" #include "nsIContent.h" -#include "nsIContentViewer.h" #include "nsIDocShell.h" #include "nsHTMLParts.h" -#include "nsIComponentManager.h" -#include "nsIBaseWindow.h" #include "nsCOMPtr.h" #include "nsString.h" -#include "nsIHttpChannelInternal.h" #include "nsIURI.h" -#include "nsIServiceManager.h" #include "nsNetUtil.h" #include "nsError.h" -#include "nsIScriptSecurityManager.h" #include "nsIPrincipal.h" #include "nsLayoutCID.h" #include "mozilla/dom/Attr.h" @@ -32,7 +26,6 @@ #include "nsThreadUtils.h" #include "nsJSUtils.h" #include "nsCRT.h" -#include "nsIAuthPrompt.h" #include "nsContentCreatorFunctions.h" #include "nsContentPolicyUtils.h" #include "nsIConsoleService.h" diff --git a/dom/xml/nsXMLContentSink.cpp b/dom/xml/nsXMLContentSink.cpp index 158bd635f957..759744704bfd 100644 --- a/dom/xml/nsXMLContentSink.cpp +++ b/dom/xml/nsXMLContentSink.cpp @@ -11,7 +11,6 @@ #include "nsIContent.h" #include "nsIURI.h" #include "nsNetUtil.h" -#include "nsIDocShell.h" #include "nsIStyleSheetLinkingElement.h" #include "nsHTMLParts.h" #include "nsCRT.h" @@ -22,21 +21,16 @@ #include "nsDocElementCreatedNotificationRunner.h" #include "nsIScriptContext.h" #include "nsNameSpaceManager.h" -#include "nsIServiceManager.h" #include "nsIScriptSecurityManager.h" #include "nsIContentViewer.h" #include "prtime.h" #include "mozilla/Logging.h" #include "nsRect.h" -#include "nsIWebNavigation.h" #include "nsIScriptElement.h" #include "nsStyleLinkElement.h" #include "nsReadableUtils.h" #include "nsUnicharUtils.h" -#include "nsICookieService.h" -#include "nsIPrompt.h" #include "nsIChannel.h" -#include "nsIPrincipal.h" #include "nsXMLPrettyPrinter.h" #include "nsNodeInfoManager.h" #include "nsContentCreatorFunctions.h" diff --git a/dom/xml/nsXMLFragmentContentSink.cpp b/dom/xml/nsXMLFragmentContentSink.cpp index 7b51b2d9ed77..cccc9d80c821 100644 --- a/dom/xml/nsXMLFragmentContentSink.cpp +++ b/dom/xml/nsXMLFragmentContentSink.cpp @@ -17,13 +17,11 @@ #include "mozilla/dom/NodeInfo.h" #include "nsContentCreatorFunctions.h" #include "nsError.h" -#include "nsIConsoleService.h" #include "nsIScriptError.h" #include "nsTHashtable.h" #include "nsHashKeys.h" #include "nsTArray.h" #include "nsCycleCollectionParticipant.h" -#include "nsIDocShell.h" #include "mozilla/css/Loader.h" #include "mozilla/dom/DocumentFragment.h" #include "mozilla/dom/ProcessingInstruction.h" diff --git a/dom/xml/nsXMLPrettyPrinter.cpp b/dom/xml/nsXMLPrettyPrinter.cpp index 074602372537..0da6d1189428 100644 --- a/dom/xml/nsXMLPrettyPrinter.cpp +++ b/dom/xml/nsXMLPrettyPrinter.cpp @@ -6,13 +6,10 @@ #include "nsXMLPrettyPrinter.h" #include "nsContentUtils.h" #include "nsICSSDeclaration.h" -#include "nsIObserver.h" #include "nsSyncLoadService.h" #include "nsPIDOMWindow.h" -#include "nsIServiceManager.h" #include "nsNetUtil.h" #include "mozilla/dom/Element.h" -#include "nsIScriptSecurityManager.h" #include "mozilla/Preferences.h" #include "mozilla/dom/Document.h" #include "nsVariant.h" diff --git a/dom/xslt/base/txURIUtils.cpp b/dom/xslt/base/txURIUtils.cpp index adb6abb621ef..c4e72805fad8 100644 --- a/dom/xslt/base/txURIUtils.cpp +++ b/dom/xslt/base/txURIUtils.cpp @@ -6,7 +6,6 @@ #include "txURIUtils.h" #include "nsNetUtil.h" #include "mozilla/dom/Document.h" -#include "nsIHttpChannelInternal.h" #include "nsIPrincipal.h" #include "mozilla/LoadInfo.h" #include "mozilla/dom/nsCSPContext.h" diff --git a/dom/xslt/xml/txXMLParser.cpp b/dom/xslt/xml/txXMLParser.cpp index 2780706bf24c..b0e14f1b943f 100644 --- a/dom/xslt/xml/txXMLParser.cpp +++ b/dom/xslt/xml/txXMLParser.cpp @@ -11,7 +11,6 @@ #include "nsSyncLoadService.h" #include "nsNetUtil.h" #include "nsIURI.h" -#include "nsIPrincipal.h" using namespace mozilla::dom; diff --git a/dom/xslt/xpath/XPathEvaluator.h b/dom/xslt/xpath/XPathEvaluator.h index 2c2e5164650b..201fb99181e7 100644 --- a/dom/xslt/xpath/XPathEvaluator.h +++ b/dom/xslt/xpath/XPathEvaluator.h @@ -7,7 +7,6 @@ #define mozilla_dom_XPathEvaluator_h #include "mozilla/dom/NonRefcountedDOMObject.h" -#include "nsIWeakReference.h" #include "nsAutoPtr.h" #include "nsString.h" #include "mozilla/Attributes.h" diff --git a/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp b/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp index 1e9f7e5e83f6..dcb1ae4b0cec 100644 --- a/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp +++ b/dom/xslt/xslt/txMozillaStylesheetCompiler.cpp @@ -7,13 +7,11 @@ #include "nsIAuthPrompt.h" #include "mozilla/dom/Document.h" #include "nsIExpatSink.h" -#include "nsIChannelEventSink.h" #include "nsIInterfaceRequestor.h" #include "nsILoadGroup.h" #include "nsIParser.h" #include "nsCharsetSource.h" #include "nsIRequestObserver.h" -#include "nsIScriptSecurityManager.h" #include "nsContentPolicyUtils.h" #include "nsIStreamConverterService.h" #include "nsSyncLoadService.h" @@ -31,7 +29,6 @@ #include "txXMLUtils.h" #include "nsAttrName.h" #include "nsIScriptError.h" -#include "nsIURL.h" #include "nsError.h" #include "mozilla/Attributes.h" #include "mozilla/dom/Element.h" diff --git a/dom/xslt/xslt/txMozillaTextOutput.cpp b/dom/xslt/xslt/txMozillaTextOutput.cpp index 997da7a8d54a..b1afc2f85f3d 100644 --- a/dom/xslt/xslt/txMozillaTextOutput.cpp +++ b/dom/xslt/xslt/txMozillaTextOutput.cpp @@ -9,7 +9,6 @@ #include "mozilla/dom/Document.h" #include "nsIDocumentTransformer.h" #include "nsCharsetSource.h" -#include "nsIPrincipal.h" #include "txURIUtils.h" #include "nsContentCreatorFunctions.h" #include "nsContentUtils.h" diff --git a/dom/xslt/xslt/txMozillaXMLOutput.cpp b/dom/xslt/xslt/txMozillaXMLOutput.cpp index 295878168d58..1e734707960b 100644 --- a/dom/xslt/xslt/txMozillaXMLOutput.cpp +++ b/dom/xslt/xslt/txMozillaXMLOutput.cpp @@ -6,7 +6,6 @@ #include "txMozillaXMLOutput.h" #include "mozilla/dom/Document.h" -#include "nsIDocShell.h" #include "nsIScriptElement.h" #include "nsCharsetSource.h" #include "nsIRefreshURI.h" @@ -16,7 +15,6 @@ #include "nsUnicharUtils.h" #include "nsGkAtoms.h" #include "txLog.h" -#include "nsIConsoleService.h" #include "nsNameSpaceManager.h" #include "txStringUtils.h" #include "txURIUtils.h" diff --git a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp index 25cce7ad965a..aa38f9f408b7 100644 --- a/dom/xslt/xslt/txMozillaXSLTProcessor.cpp +++ b/dom/xslt/xslt/txMozillaXSLTProcessor.cpp @@ -6,11 +6,8 @@ #include "txMozillaXSLTProcessor.h" #include "nsContentCID.h" #include "nsError.h" -#include "nsIChannel.h" #include "mozilla/dom/Element.h" #include "mozilla/dom/Document.h" -#include "nsIIOService.h" -#include "nsILoadGroup.h" #include "nsIStringBundle.h" #include "nsIURI.h" #include "nsMemory.h" @@ -27,7 +24,6 @@ #include "jsapi.h" #include "txExprParser.h" #include "nsErrorService.h" -#include "nsIScriptSecurityManager.h" #include "nsJSUtils.h" #include "nsIXPConnect.h" #include "nsVariant.h" diff --git a/dom/xslt/xslt/txStylesheetCompiler.cpp b/dom/xslt/xslt/txStylesheetCompiler.cpp index 87b4069fa81b..12277a49d5ce 100644 --- a/dom/xslt/xslt/txStylesheetCompiler.cpp +++ b/dom/xslt/xslt/txStylesheetCompiler.cpp @@ -20,7 +20,6 @@ #include "txPatternParser.h" #include "txStringUtils.h" #include "txXSLTFunctions.h" -#include "nsICategoryManager.h" #include "nsServiceManagerUtils.h" #include "nsTArray.h" diff --git a/dom/xslt/xslt/txXPathResultComparator.cpp b/dom/xslt/xslt/txXPathResultComparator.cpp index a112e03fd62e..4b900dfdd516 100644 --- a/dom/xslt/xslt/txXPathResultComparator.cpp +++ b/dom/xslt/xslt/txXPathResultComparator.cpp @@ -9,7 +9,6 @@ #include "txExpr.h" #include "txCore.h" #include "nsCollationCID.h" -#include "nsIServiceManager.h" using namespace mozilla; diff --git a/dom/xul/XULTooltipElement.cpp b/dom/xul/XULTooltipElement.cpp index f7c9ba0c70cd..768480d7e2b8 100644 --- a/dom/xul/XULTooltipElement.cpp +++ b/dom/xul/XULTooltipElement.cpp @@ -9,6 +9,7 @@ #include "mozilla/dom/XULTooltipElement.h" #include "mozilla/dom/NodeInfo.h" #include "nsCTooltipTextProvider.h" +#include "nsITooltipTextProvider.h" namespace mozilla { namespace dom { diff --git a/dom/xul/XULTooltipElement.h b/dom/xul/XULTooltipElement.h index 0d88cdbbb727..d418a541de37 100644 --- a/dom/xul/XULTooltipElement.h +++ b/dom/xul/XULTooltipElement.h @@ -8,7 +8,6 @@ #define XULTooltipElement_h__ #include "XULPopupElement.h" -#include "nsIDOMEventListener.h" namespace mozilla { namespace dom { diff --git a/dom/xul/nsXULContentSink.cpp b/dom/xul/nsXULContentSink.cpp index 67e4147fb1eb..360cdf214c92 100644 --- a/dom/xul/nsXULContentSink.cpp +++ b/dom/xul/nsXULContentSink.cpp @@ -20,13 +20,10 @@ #include "nsHTMLStyleSheet.h" #include "nsIContentSink.h" #include "mozilla/dom/Document.h" -#include "nsIDOMEventListener.h" #include "nsIFormControl.h" #include "mozilla/dom/NodeInfo.h" #include "nsIScriptContext.h" #include "nsIScriptGlobalObject.h" -#include "nsIServiceManager.h" -#include "nsIURL.h" #include "nsNameSpaceManager.h" #include "nsParserBase.h" #include "nsViewManager.h" @@ -47,7 +44,6 @@ #include "nsContentUtils.h" #include "nsAttrName.h" #include "nsXMLContentSink.h" -#include "nsIConsoleService.h" #include "nsIScriptError.h" #include "nsContentTypeParser.h" diff --git a/dom/xul/nsXULContentUtils.cpp b/dom/xul/nsXULContentUtils.cpp index 73b34d7a4263..bd4a5a9bfd57 100644 --- a/dom/xul/nsXULContentUtils.cpp +++ b/dom/xul/nsXULContentUtils.cpp @@ -17,8 +17,6 @@ #include "nsIContent.h" #include "nsICollation.h" #include "mozilla/dom/Document.h" -#include "nsIDOMXULCommandDispatcher.h" -#include "nsIServiceManager.h" #include "nsXULContentUtils.h" #include "nsLayoutCID.h" #include "nsString.h" diff --git a/dom/xul/nsXULElement.cpp b/dom/xul/nsXULElement.cpp index fe896d832aae..20e83be4d875 100644 --- a/dom/xul/nsXULElement.cpp +++ b/dom/xul/nsXULElement.cpp @@ -10,7 +10,7 @@ #include "nsAtom.h" #include "nsIBaseWindow.h" #include "nsIDOMEventListener.h" -#include "nsIDOMXULCommandDispatcher.h" +#include "nsIDOMXULControlElement.h" #include "nsIDOMXULSelectCntrlItemEl.h" #include "mozilla/dom/BindContext.h" #include "mozilla/dom/Document.h" @@ -29,10 +29,7 @@ #include "nsIObjectOutputStream.h" #include "nsIPrincipal.h" #include "nsIScriptContext.h" -#include "nsIScriptError.h" -#include "nsIScriptSecurityManager.h" -#include "nsIServiceManager.h" -#include "nsIURL.h" +#include "nsIXPConnect.h" #include "nsViewManager.h" #include "nsIWidget.h" #include "nsLayoutCID.h" @@ -59,7 +56,6 @@ #include "nsIController.h" #include "nsQueryObject.h" #include -#include "nsIDOMChromeWindow.h" #include "nsReadableUtils.h" #include "nsIFrame.h" diff --git a/dom/xul/nsXULElement.h b/dom/xul/nsXULElement.h index 135c84abfe20..b713a428b744 100644 --- a/dom/xul/nsXULElement.h +++ b/dom/xul/nsXULElement.h @@ -15,11 +15,9 @@ #include "js/SourceText.h" #include "js/TracingAPI.h" #include "mozilla/Attributes.h" -#include "nsIServiceManager.h" #include "nsAtom.h" #include "mozilla/dom/NodeInfo.h" #include "nsIControllers.h" -#include "nsIDOMXULMultSelectCntrlEl.h" #include "nsIURI.h" #include "nsLayoutCID.h" #include "AttrArray.h" diff --git a/dom/xul/nsXULPopupListener.cpp b/dom/xul/nsXULPopupListener.cpp index d733b7a75447..9f31caadda97 100644 --- a/dom/xul/nsXULPopupListener.cpp +++ b/dom/xul/nsXULPopupListener.cpp @@ -17,8 +17,6 @@ #include "nsIScriptContext.h" #include "mozilla/dom/Document.h" #include "nsServiceManagerUtils.h" -#include "nsIPrincipal.h" -#include "nsIScriptSecurityManager.h" #include "nsLayoutUtils.h" #include "mozilla/ReflowInput.h" #include "nsIObjectLoadingContent.h" diff --git a/dom/xul/nsXULPrototypeCache.cpp b/dom/xul/nsXULPrototypeCache.cpp index 7d35449ae095..f31fe21f03b2 100644 --- a/dom/xul/nsXULPrototypeCache.cpp +++ b/dom/xul/nsXULPrototypeCache.cpp @@ -8,7 +8,6 @@ #include "plstr.h" #include "nsXULPrototypeDocument.h" -#include "nsIServiceManager.h" #include "nsIURI.h" #include "nsNetUtil.h" @@ -17,7 +16,6 @@ #include "nsIObjectInputStream.h" #include "nsIObjectOutputStream.h" #include "nsIObserverService.h" -#include "nsIStringStream.h" #include "nsIStorageStream.h" #include "nsAppDirectoryServiceDefs.h" diff --git a/dom/xul/nsXULPrototypeCache.h b/dom/xul/nsXULPrototypeCache.h index a9c1292f241f..3ce863b79f49 100644 --- a/dom/xul/nsXULPrototypeCache.h +++ b/dom/xul/nsXULPrototypeCache.h @@ -13,7 +13,6 @@ #include "nsRefPtrHashtable.h" #include "nsURIHashKey.h" #include "nsXULPrototypeDocument.h" -#include "nsIInputStream.h" #include "nsIStorageStream.h" #include "mozilla/scache/StartupCache.h" diff --git a/dom/xul/nsXULPrototypeDocument.cpp b/dom/xul/nsXULPrototypeDocument.cpp index 2aa42ea03c51..59954b43d5eb 100644 --- a/dom/xul/nsXULPrototypeDocument.cpp +++ b/dom/xul/nsXULPrototypeDocument.cpp @@ -12,15 +12,10 @@ #include "nsIPrincipal.h" #include "nsJSPrincipals.h" #include "nsIScriptObjectPrincipal.h" -#include "nsIScriptSecurityManager.h" -#include "nsIServiceManager.h" -#include "nsIArray.h" #include "nsIURI.h" #include "jsapi.h" #include "jsfriendapi.h" #include "nsString.h" -#include "nsIConsoleService.h" -#include "nsIScriptError.h" #include "nsDOMCID.h" #include "nsNodeInfoManager.h" #include "nsContentUtils.h" @@ -531,4 +526,4 @@ void nsXULPrototypeDocument::RebuildL10nPrototype(Element* aElement, RefPtr proto = doc->mL10nProtoElements.Get(aElement); MOZ_RELEASE_ASSERT(proto); RebuildPrototypeFromElement(proto, aElement, aDeep); -} \ No newline at end of file +} diff --git a/dom/xul/nsXULSortService.cpp b/dom/xul/nsXULSortService.cpp index 662f18b4d0ed..74a5eaff569c 100644 --- a/dom/xul/nsXULSortService.cpp +++ b/dom/xul/nsXULSortService.cpp @@ -10,7 +10,6 @@ #include "nsCOMArray.h" #include "nsCOMPtr.h" #include "nsIContent.h" -#include "nsIServiceManager.h" #include "nsGkAtoms.h" #include "nsNameSpaceManager.h" #include "nsXULContentUtils.h"