Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley

This commit is contained in:
Ehsan Akhgari 2013-09-06 13:50:24 -04:00
parent 6710a7e369
commit 82b9523028
24 changed files with 32 additions and 14 deletions

View File

@ -9,6 +9,7 @@
#include "nsIProtocolHandler.h" #include "nsIProtocolHandler.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsIInputStream.h"
#define BLOBURI_SCHEME "blob" #define BLOBURI_SCHEME "blob"
#define MEDIASTREAMURI_SCHEME "mediastream" #define MEDIASTREAMURI_SCHEME "mediastream"
@ -18,7 +19,6 @@
class nsIDOMBlob; class nsIDOMBlob;
class nsIDOMMediaStream; class nsIDOMMediaStream;
class nsIPrincipal; class nsIPrincipal;
class nsIInputStream;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -67,6 +67,7 @@
#include "nsCharSeparatedTokenizer.h" #include "nsCharSeparatedTokenizer.h"
#include "nsFormData.h" #include "nsFormData.h"
#include "nsStreamListenerWrapper.h" #include "nsStreamListenerWrapper.h"
#include "xpcjsid.h"
#include "nsWrapperCacheInlines.h" #include "nsWrapperCacheInlines.h"

View File

@ -48,6 +48,7 @@ class nsFormData;
class nsIJARChannel; class nsIJARChannel;
class nsILoadGroup; class nsILoadGroup;
class nsIUnicodeDecoder; class nsIUnicodeDecoder;
class nsIJSID;
namespace mozilla { namespace mozilla {

View File

@ -18,6 +18,7 @@
#include "AudioChannelCommon.h" #include "AudioChannelCommon.h"
#include <algorithm> #include <algorithm>
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "nsComponentManagerUtils.h"
static bool static bool
IsAudioAPIEnabled() IsAudioAPIEnabled()

View File

@ -6,6 +6,7 @@
#include "WebVTTLoadListener.h" #include "WebVTTLoadListener.h"
#include "mozilla/dom/TextTrackCue.h" #include "mozilla/dom/TextTrackCue.h"
#include "mozilla/dom/HTMLTrackElement.h" #include "mozilla/dom/HTMLTrackElement.h"
#include "nsIInputStream.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -11,6 +11,7 @@
#include "SourceBuffer.h" #include "SourceBuffer.h"
#include "SourceBufferList.h" #include "SourceBufferList.h"
#include "nsContentTypeParser.h" #include "nsContentTypeParser.h"
#include "nsIInputStream.h"
#ifdef PR_LOGGING #ifdef PR_LOGGING
PRLogModuleInfo* gMediaSourceLog; PRLogModuleInfo* gMediaSourceLog;

View File

@ -18,6 +18,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "nscore.h" #include "nscore.h"
class nsIInputStream;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View File

@ -190,6 +190,7 @@
#include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/BindingUtils.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "WindowNamedPropertiesHandler.h" #include "WindowNamedPropertiesHandler.h"
#include "nsIInterfaceInfoManager.h"
#ifdef MOZ_TIME_MANAGER #ifdef MOZ_TIME_MANAGER
#include "TimeManager.h" #include "TimeManager.h"

View File

@ -15,6 +15,7 @@
#include "nsIDocument.h" #include "nsIDocument.h"
#include "nsString.h" #include "nsString.h"
#include "prprf.h" #include "prprf.h"
#include "nsIException.h"
using namespace mozilla; using namespace mozilla;

View File

@ -49,6 +49,7 @@
#include "mozilla/dom/EventTarget.h" #include "mozilla/dom/EventTarget.h"
#include "Units.h" #include "Units.h"
#include "nsComponentManagerUtils.h"
#ifdef MOZ_B2G #ifdef MOZ_B2G
#include "nsIDOMWindowB2G.h" #include "nsIDOMWindowB2G.h"

View File

@ -55,6 +55,7 @@
#include "StructuredCloneTags.h" #include "StructuredCloneTags.h"
#include "mozilla/dom/ImageData.h" #include "mozilla/dom/ImageData.h"
#include "mozilla/dom/ImageDataBinding.h" #include "mozilla/dom/ImageDataBinding.h"
#include "nsAXPCNativeCallContext.h"
#include "nsJSPrincipals.h" #include "nsJSPrincipals.h"

View File

@ -17,6 +17,7 @@
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include <algorithm> #include <algorithm>
#include "mozilla/dom/FunctionBinding.h" #include "mozilla/dom/FunctionBinding.h"
#include "nsAXPCNativeCallContext.h"
static const char kSetIntervalStr[] = "setInterval"; static const char kSetIntervalStr[] = "setInterval";
static const char kSetTimeoutStr[] = "setTimeout"; static const char kSetTimeoutStr[] = "setTimeout";

View File

@ -28,6 +28,7 @@
#include "nsTraceRefcnt.h" #include "nsTraceRefcnt.h"
#include "qsObjectHelper.h" #include "qsObjectHelper.h"
#include "xpcpublic.h" #include "xpcpublic.h"
#include "nsIVariant.h"
#include "nsWrapperCacheInlines.h" #include "nsWrapperCacheInlines.h"

View File

@ -23,6 +23,8 @@
#define DEVICESTORAGE_SDCARD "sdcard" #define DEVICESTORAGE_SDCARD "sdcard"
#define DEVICESTORAGE_CRASHES "crashes" #define DEVICESTORAGE_CRASHES "crashes"
class nsIInputStream;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
class DeviceStorageEnumerationParameters; class DeviceStorageEnumerationParameters;

View File

@ -17,6 +17,7 @@
#include "nsError.h" #include "nsError.h"
#include "nsStringGlue.h" #include "nsStringGlue.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsIInputStream.h"
#define BEGIN_INDEXEDDB_NAMESPACE \ #define BEGIN_INDEXEDDB_NAMESPACE \
namespace mozilla { namespace dom { namespace indexedDB { namespace mozilla { namespace dom { namespace indexedDB {
@ -28,7 +29,6 @@
using namespace mozilla::dom::indexedDB; using namespace mozilla::dom::indexedDB;
class nsIDOMBlob; class nsIDOMBlob;
class nsIInputStream;
BEGIN_INDEXEDDB_NAMESPACE BEGIN_INDEXEDDB_NAMESPACE

View File

@ -30,6 +30,7 @@
#include "DOMBindingInlines.h" #include "DOMBindingInlines.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "nsComponentManagerUtils.h"
using namespace mozilla; using namespace mozilla;

View File

@ -38,6 +38,7 @@
#include "nsFocusManager.h" #include "nsFocusManager.h"
#include "mozilla/Services.h" #include "mozilla/Services.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "nsISimpleEnumerator.h"
#if DEBUG #if DEBUG
#include "nsIWebNavigation.h" #include "nsIWebNavigation.h"

View File

@ -6,6 +6,7 @@
#include "nsISupports.idl" #include "nsISupports.idl"
#include "nsIXPConnect.idl" #include "nsIXPConnect.idl"
#include "nsIClassInfo.idl"
%{C++ %{C++
#ifdef XP_WIN #ifdef XP_WIN

View File

@ -7,26 +7,15 @@
/* The core XPConnect public interfaces. */ /* The core XPConnect public interfaces. */
#include "nsISupports.idl" #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++ %{ C++
#include "jspubtd.h" #include "jspubtd.h"
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "xptinfo.h"
#include "nsAXPCNativeCallContext.h"
struct JSFreeOp; struct JSFreeOp;
class nsWrapperCache; class nsWrapperCache;
class nsAXPCNativeCallContext;
%} %}
/***************************************************************************/ /***************************************************************************/
@ -58,6 +47,11 @@ interface nsIXPConnectWrappedNative;
interface nsIInterfaceInfo; interface nsIInterfaceInfo;
interface nsIXPCSecurityManager; interface nsIXPCSecurityManager;
interface nsIPrincipal; interface nsIPrincipal;
interface nsIClassInfo;
interface nsIVariant;
interface nsIStackFrame;
interface nsIObjectInputStream;
interface nsIObjectOutputStream;
/***************************************************************************/ /***************************************************************************/
[uuid(909e8641-7c54-4dff-9b94-ba631f057b33)] [uuid(909e8641-7c54-4dff-9b94-ba631f057b33)]

View File

@ -53,6 +53,8 @@
#include "nsICycleCollectorListener.h" #include "nsICycleCollectorListener.h"
#include "nsThread.h" #include "nsThread.h"
#include "mozilla/XPTInterfaceInfoManager.h" #include "mozilla/XPTInterfaceInfoManager.h"
#include "nsIObjectInputStream.h"
#include "nsIObjectOutputStream.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -160,6 +160,7 @@
#include "SandboxPrivate.h" #include "SandboxPrivate.h"
#include "BackstagePass.h" #include "BackstagePass.h"
#include "nsCxPusher.h" #include "nsCxPusher.h"
#include "nsAXPCNativeCallContext.h"
#ifdef XP_WIN #ifdef XP_WIN
// Nasty MS defines // Nasty MS defines

View File

@ -40,6 +40,7 @@
#include "nsDOMClassInfoID.h" #include "nsDOMClassInfoID.h"
#include "mozilla/Likely.h" #include "mozilla/Likely.h"
#include "mozilla/dom/CSSStyleSheetBinding.h" #include "mozilla/dom/CSSStyleSheetBinding.h"
#include "nsComponentManagerUtils.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -23,6 +23,7 @@
#include "nsISupportsPrimitives.h" #include "nsISupportsPrimitives.h"
#include "nsSupportsPrimitives.h" #include "nsSupportsPrimitives.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "nsComponentManagerUtils.h"
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -18,6 +18,7 @@
#include "nsAsyncDOMEvent.h" #include "nsAsyncDOMEvent.h"
#include "nsEventDispatcher.h" #include "nsEventDispatcher.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsComponentManagerUtils.h"
// A helper class for managing our ranges of selection. // A helper class for managing our ranges of selection.
struct nsTreeRange struct nsTreeRange