diff --git a/content/base/public/nsHostObjectProtocolHandler.h b/content/base/public/nsHostObjectProtocolHandler.h index a32d91e59206..85f06512b23f 100644 --- a/content/base/public/nsHostObjectProtocolHandler.h +++ b/content/base/public/nsHostObjectProtocolHandler.h @@ -9,6 +9,7 @@ #include "nsIProtocolHandler.h" #include "nsIURI.h" #include "nsCOMPtr.h" +#include "nsIInputStream.h" #define BLOBURI_SCHEME "blob" #define MEDIASTREAMURI_SCHEME "mediastream" @@ -18,7 +19,6 @@ class nsIDOMBlob; class nsIDOMMediaStream; class nsIPrincipal; -class nsIInputStream; namespace mozilla { namespace dom { diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 3498f49c4348..14708760e284 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -67,6 +67,7 @@ #include "nsCharSeparatedTokenizer.h" #include "nsFormData.h" #include "nsStreamListenerWrapper.h" +#include "xpcjsid.h" #include "nsWrapperCacheInlines.h" diff --git a/content/base/src/nsXMLHttpRequest.h b/content/base/src/nsXMLHttpRequest.h index 9f98967cb7a7..ef2eb8e50fa6 100644 --- a/content/base/src/nsXMLHttpRequest.h +++ b/content/base/src/nsXMLHttpRequest.h @@ -48,6 +48,7 @@ class nsFormData; class nsIJARChannel; class nsILoadGroup; class nsIUnicodeDecoder; +class nsIJSID; namespace mozilla { diff --git a/content/html/content/src/HTMLAudioElement.cpp b/content/html/content/src/HTMLAudioElement.cpp index f4efc8ef05ef..3157f3309258 100644 --- a/content/html/content/src/HTMLAudioElement.cpp +++ b/content/html/content/src/HTMLAudioElement.cpp @@ -18,6 +18,7 @@ #include "AudioChannelCommon.h" #include #include "mozilla/Preferences.h" +#include "nsComponentManagerUtils.h" static bool IsAudioAPIEnabled() diff --git a/content/media/WebVTTLoadListener.cpp b/content/media/WebVTTLoadListener.cpp index 60ae7bd83805..fa0096433a46 100644 --- a/content/media/WebVTTLoadListener.cpp +++ b/content/media/WebVTTLoadListener.cpp @@ -6,6 +6,7 @@ #include "WebVTTLoadListener.h" #include "mozilla/dom/TextTrackCue.h" #include "mozilla/dom/HTMLTrackElement.h" +#include "nsIInputStream.h" namespace mozilla { namespace dom { diff --git a/content/media/mediasource/MediaSource.cpp b/content/media/mediasource/MediaSource.cpp index 5902a5cb6408..c617519c8d43 100644 --- a/content/media/mediasource/MediaSource.cpp +++ b/content/media/mediasource/MediaSource.cpp @@ -11,6 +11,7 @@ #include "SourceBuffer.h" #include "SourceBufferList.h" #include "nsContentTypeParser.h" +#include "nsIInputStream.h" #ifdef PR_LOGGING PRLogModuleInfo* gMediaSourceLog; diff --git a/content/media/mediasource/MediaSource.h b/content/media/mediasource/MediaSource.h index a5dc5589cd88..27420e9f184c 100644 --- a/content/media/mediasource/MediaSource.h +++ b/content/media/mediasource/MediaSource.h @@ -18,6 +18,8 @@ #include "nsWrapperCache.h" #include "nscore.h" +class nsIInputStream; + namespace mozilla { namespace dom { diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index 35fcf01b8138..8bf96d7508a0 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -190,6 +190,7 @@ #include "mozilla/dom/BindingUtils.h" #include "mozilla/Likely.h" #include "WindowNamedPropertiesHandler.h" +#include "nsIInterfaceInfoManager.h" #ifdef MOZ_TIME_MANAGER #include "TimeManager.h" diff --git a/dom/base/nsDOMException.cpp b/dom/base/nsDOMException.cpp index e1640c30a401..3fe994727610 100644 --- a/dom/base/nsDOMException.cpp +++ b/dom/base/nsDOMException.cpp @@ -15,6 +15,7 @@ #include "nsIDocument.h" #include "nsString.h" #include "prprf.h" +#include "nsIException.h" using namespace mozilla; diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index 15c0874d6143..d884ab0a0ec4 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -49,6 +49,7 @@ #include "mozilla/dom/EventTarget.h" #include "Units.h" +#include "nsComponentManagerUtils.h" #ifdef MOZ_B2G #include "nsIDOMWindowB2G.h" diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index 43df9c29921d..7a457d8dcde0 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -55,6 +55,7 @@ #include "StructuredCloneTags.h" #include "mozilla/dom/ImageData.h" #include "mozilla/dom/ImageDataBinding.h" +#include "nsAXPCNativeCallContext.h" #include "nsJSPrincipals.h" diff --git a/dom/base/nsJSTimeoutHandler.cpp b/dom/base/nsJSTimeoutHandler.cpp index 2deacc095681..ffabe99bec98 100644 --- a/dom/base/nsJSTimeoutHandler.cpp +++ b/dom/base/nsJSTimeoutHandler.cpp @@ -17,6 +17,7 @@ #include "mozilla/Likely.h" #include #include "mozilla/dom/FunctionBinding.h" +#include "nsAXPCNativeCallContext.h" static const char kSetIntervalStr[] = "setInterval"; static const char kSetTimeoutStr[] = "setTimeout"; diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h index 884875ca1bb5..15405eab1264 100644 --- a/dom/bindings/BindingUtils.h +++ b/dom/bindings/BindingUtils.h @@ -28,6 +28,7 @@ #include "nsTraceRefcnt.h" #include "qsObjectHelper.h" #include "xpcpublic.h" +#include "nsIVariant.h" #include "nsWrapperCacheInlines.h" diff --git a/dom/devicestorage/DeviceStorage.h b/dom/devicestorage/DeviceStorage.h index 694e53d55ef6..eece1d7d40a9 100644 --- a/dom/devicestorage/DeviceStorage.h +++ b/dom/devicestorage/DeviceStorage.h @@ -23,6 +23,8 @@ #define DEVICESTORAGE_SDCARD "sdcard" #define DEVICESTORAGE_CRASHES "crashes" +class nsIInputStream; + namespace mozilla { namespace dom { class DeviceStorageEnumerationParameters; diff --git a/dom/indexedDB/IndexedDatabase.h b/dom/indexedDB/IndexedDatabase.h index 582dfc34c390..530b2cbc653e 100644 --- a/dom/indexedDB/IndexedDatabase.h +++ b/dom/indexedDB/IndexedDatabase.h @@ -17,6 +17,7 @@ #include "nsError.h" #include "nsStringGlue.h" #include "nsTArray.h" +#include "nsIInputStream.h" #define BEGIN_INDEXEDDB_NAMESPACE \ namespace mozilla { namespace dom { namespace indexedDB { @@ -28,7 +29,6 @@ using namespace mozilla::dom::indexedDB; class nsIDOMBlob; -class nsIInputStream; BEGIN_INDEXEDDB_NAMESPACE diff --git a/dom/workers/XMLHttpRequest.cpp b/dom/workers/XMLHttpRequest.cpp index 2a253eb5a3db..6b65e5a03f05 100644 --- a/dom/workers/XMLHttpRequest.cpp +++ b/dom/workers/XMLHttpRequest.cpp @@ -30,6 +30,7 @@ #include "DOMBindingInlines.h" #include "mozilla/Attributes.h" +#include "nsComponentManagerUtils.h" using namespace mozilla; diff --git a/embedding/components/find/src/nsWebBrowserFind.cpp b/embedding/components/find/src/nsWebBrowserFind.cpp index e7813e64001b..7d765741ce14 100644 --- a/embedding/components/find/src/nsWebBrowserFind.cpp +++ b/embedding/components/find/src/nsWebBrowserFind.cpp @@ -38,6 +38,7 @@ #include "nsFocusManager.h" #include "mozilla/Services.h" #include "mozilla/dom/Element.h" +#include "nsISimpleEnumerator.h" #if DEBUG #include "nsIWebNavigation.h" diff --git a/js/xpconnect/idl/nsIXPCScriptable.idl b/js/xpconnect/idl/nsIXPCScriptable.idl index 6ae28849805d..515a3fc112d2 100644 --- a/js/xpconnect/idl/nsIXPCScriptable.idl +++ b/js/xpconnect/idl/nsIXPCScriptable.idl @@ -6,6 +6,7 @@ #include "nsISupports.idl" #include "nsIXPConnect.idl" +#include "nsIClassInfo.idl" %{C++ #ifdef XP_WIN diff --git a/js/xpconnect/idl/nsIXPConnect.idl b/js/xpconnect/idl/nsIXPConnect.idl index e4b9d2502361..f30e1fb4656d 100644 --- a/js/xpconnect/idl/nsIXPConnect.idl +++ b/js/xpconnect/idl/nsIXPConnect.idl @@ -7,26 +7,15 @@ /* The core XPConnect public interfaces. */ #include "nsISupports.idl" -#include "nsIClassInfo.idl" -#include "xpccomponents.idl" -#include "xpcjsid.idl" -#include "xpcexception.idl" -#include "nsIInterfaceInfo.idl" -#include "nsIInterfaceInfoManager.idl" -#include "nsIExceptionService.idl" -#include "nsIVariant.idl" -#include "nsIObjectOutputStream.idl" -#include "nsIObjectInputStream.idl" %{ C++ #include "jspubtd.h" #include "js/TypeDecls.h" -#include "xptinfo.h" -#include "nsAXPCNativeCallContext.h" struct JSFreeOp; class nsWrapperCache; +class nsAXPCNativeCallContext; %} /***************************************************************************/ @@ -58,6 +47,11 @@ interface nsIXPConnectWrappedNative; interface nsIInterfaceInfo; interface nsIXPCSecurityManager; interface nsIPrincipal; +interface nsIClassInfo; +interface nsIVariant; +interface nsIStackFrame; +interface nsIObjectInputStream; +interface nsIObjectOutputStream; /***************************************************************************/ [uuid(909e8641-7c54-4dff-9b94-ba631f057b33)] diff --git a/js/xpconnect/src/nsXPConnect.cpp b/js/xpconnect/src/nsXPConnect.cpp index 3c4dde7eb329..6cfb20410a22 100644 --- a/js/xpconnect/src/nsXPConnect.cpp +++ b/js/xpconnect/src/nsXPConnect.cpp @@ -53,6 +53,8 @@ #include "nsICycleCollectorListener.h" #include "nsThread.h" #include "mozilla/XPTInterfaceInfoManager.h" +#include "nsIObjectInputStream.h" +#include "nsIObjectOutputStream.h" using namespace mozilla; using namespace mozilla::dom; diff --git a/js/xpconnect/src/xpcprivate.h b/js/xpconnect/src/xpcprivate.h index 623aec194771..5ea6f85cac60 100644 --- a/js/xpconnect/src/xpcprivate.h +++ b/js/xpconnect/src/xpcprivate.h @@ -160,6 +160,7 @@ #include "SandboxPrivate.h" #include "BackstagePass.h" #include "nsCxPusher.h" +#include "nsAXPCNativeCallContext.h" #ifdef XP_WIN // Nasty MS defines diff --git a/layout/style/nsCSSStyleSheet.cpp b/layout/style/nsCSSStyleSheet.cpp index 1edc78d248c0..e4712a18bba1 100644 --- a/layout/style/nsCSSStyleSheet.cpp +++ b/layout/style/nsCSSStyleSheet.cpp @@ -40,6 +40,7 @@ #include "nsDOMClassInfoID.h" #include "mozilla/Likely.h" #include "mozilla/dom/CSSStyleSheetBinding.h" +#include "nsComponentManagerUtils.h" using namespace mozilla; using namespace mozilla::dom; diff --git a/layout/xul/base/src/nsBoxObject.cpp b/layout/xul/base/src/nsBoxObject.cpp index 67dd1b40cec9..90c9ad7477be 100644 --- a/layout/xul/base/src/nsBoxObject.cpp +++ b/layout/xul/base/src/nsBoxObject.cpp @@ -23,6 +23,7 @@ #include "nsISupportsPrimitives.h" #include "nsSupportsPrimitives.h" #include "mozilla/dom/Element.h" +#include "nsComponentManagerUtils.h" using namespace mozilla::dom; diff --git a/layout/xul/tree/nsTreeSelection.cpp b/layout/xul/tree/nsTreeSelection.cpp index e6c6cc89cb8b..e51045202c37 100644 --- a/layout/xul/tree/nsTreeSelection.cpp +++ b/layout/xul/tree/nsTreeSelection.cpp @@ -18,6 +18,7 @@ #include "nsAsyncDOMEvent.h" #include "nsEventDispatcher.h" #include "nsAutoPtr.h" +#include "nsComponentManagerUtils.h" // A helper class for managing our ranges of selection. struct nsTreeRange