Bug 1678062 - Remove unnecessary includes. r=andi

Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
This commit is contained in:
Simon Giesecke 2020-11-23 16:12:02 +00:00
parent 41c5b23a3e
commit dd80614fa0
302 changed files with 1357 additions and 1043 deletions

View file

@ -10,7 +10,6 @@
#include "nsDataHashtable.h" #include "nsDataHashtable.h"
#include "nsRefPtrHashtable.h" #include "nsRefPtrHashtable.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/DOMString.h" #include "mozilla/dom/DOMString.h"
#include "mozilla/dom/Nullable.h" #include "mozilla/dom/Nullable.h"
@ -19,6 +18,8 @@ class nsINode;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace a11y { namespace a11y {
class Accessible; class Accessible;
} }

View file

@ -8,12 +8,13 @@
#include "mozilla/devtools/HeapSnapshot.h" #include "mozilla/devtools/HeapSnapshot.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/RefCounted.h" #include "mozilla/RefCounted.h"
#include "js/UbiNodeDominatorTree.h" #include "js/UbiNodeDominatorTree.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace devtools { namespace devtools {
class DominatorTree final : public nsISupports, public nsWrapperCache { class DominatorTree final : public nsISupports, public nsWrapperCache {

View file

@ -7,7 +7,6 @@
#define mozilla_devtools_HeapSnapshot__ #define mozilla_devtools_HeapSnapshot__
#include "js/HashTable.h" #include "js/HashTable.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/devtools/DeserializedNode.h" #include "mozilla/devtools/DeserializedNode.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h" #include "mozilla/dom/Nullable.h"
@ -27,6 +26,8 @@
#include "nsXPCOM.h" #include "nsXPCOM.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace devtools { namespace devtools {
class DominatorTree; class DominatorTree;

View file

@ -15,7 +15,6 @@
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "mozilla/Span.h" #include "mozilla/Span.h"
#include "mozilla/Tuple.h" #include "mozilla/Tuple.h"
#include "mozilla/WeakPtr.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/FeaturePolicy.h" #include "mozilla/dom/FeaturePolicy.h"
#include "mozilla/dom/LocationBase.h" #include "mozilla/dom/LocationBase.h"

View file

@ -7,12 +7,16 @@
#ifndef mozilla_dom_SyncedContext_h #ifndef mozilla_dom_SyncedContext_h
#define mozilla_dom_SyncedContext_h #define mozilla_dom_SyncedContext_h
#include "mozilla/EnumSet.h" #include <array>
#include "mozilla/ErrorResult.h" #include <type_traits>
#include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h"
#include "mozilla/Tuple.h"
#include <utility> #include <utility>
#include "mozilla/Attributes.h"
#include "mozilla/EnumSet.h"
#include "nsStringFwd.h"
#include "nscore.h"
// Referenced via macro definitions
#include "mozilla/ErrorResult.h"
class PickleIterator; class PickleIterator;
@ -31,6 +35,8 @@ struct IPDLParamTraits;
namespace dom { namespace dom {
class ContentParent; class ContentParent;
class ContentChild; class ContentChild;
template <typename T>
class MaybeDiscarded;
namespace syncedcontext { namespace syncedcontext {

View file

@ -9,7 +9,6 @@
#include "mozilla/PermissionDelegateHandler.h" #include "mozilla/PermissionDelegateHandler.h"
#include "mozilla/Span.h" #include "mozilla/Span.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/MaybeDiscarded.h" #include "mozilla/dom/MaybeDiscarded.h"
#include "mozilla/dom/SyncedContext.h" #include "mozilla/dom/SyncedContext.h"
#include "mozilla/dom/UserActivation.h" #include "mozilla/dom/UserActivation.h"
@ -27,6 +26,7 @@ namespace dom {
class WindowGlobalParent; class WindowGlobalParent;
class WindowGlobalInit; class WindowGlobalInit;
class BrowsingContext;
class BrowsingContextGroup; class BrowsingContextGroup;
#define MOZ_EACH_WC_FIELD(FIELD) \ #define MOZ_EACH_WC_FIELD(FIELD) \

View file

@ -14,7 +14,9 @@ webidl Element;
%{C++ %{C++
#ifdef MOZILLA_INTERNAL_API #ifdef MOZILLA_INTERNAL_API
#include "mozilla/BasePrincipal.h" // for OriginAttributes namespace mozilla {
class OriginAttributes;
}
#endif #endif
%} %}

View file

@ -21,9 +21,9 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "nsID.h" #include "nsID.h"

View file

@ -8,7 +8,6 @@
#define mozilla_dom_AbortController_h #define mozilla_dom_AbortController_h
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
@ -16,6 +15,8 @@
class nsIGlobalObject; class nsIGlobalObject;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class AbortSignal; class AbortSignal;

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "nsCSSPseudoElements.h" #include "nsCSSPseudoElements.h"

View file

@ -10,7 +10,6 @@
#include "mozilla/dom/AbortSignal.h" #include "mozilla/dom/AbortSignal.h"
#include "mozilla/dom/MutableBlobStorage.h" #include "mozilla/dom/MutableBlobStorage.h"
#include "nsIInputStreamPump.h" #include "nsIInputStreamPump.h"
#include "nsNetUtil.h"
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"

View file

@ -15,7 +15,6 @@
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Mutex.h" #include "mozilla/Mutex.h"
class nsIGlobalObject; class nsIGlobalObject;
@ -23,6 +22,8 @@ class nsIGlobalObject;
class nsIInputStream; class nsIInputStream;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BodyStream; class BodyStream;

View file

@ -10,11 +10,12 @@
#include "nsString.h" #include "nsString.h"
#include "nsError.h" #include "nsError.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
#include "mozilla/dom/FormData.h" #include "mozilla/dom/FormData.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BodyUtil final { class BodyUtil final {

View file

@ -13,28 +13,21 @@
#include "WrapperFactory.h" #include "WrapperFactory.h"
#include "mozilla/Base64.h" #include "mozilla/Base64.h"
#include "mozilla/BasePrincipal.h"
#include "mozilla/CycleCollectedJSRuntime.h" #include "mozilla/CycleCollectedJSRuntime.h"
#include "mozilla/IntentionalCrash.h" #include "mozilla/IntentionalCrash.h"
#include "mozilla/PerformanceMetricsCollector.h" #include "mozilla/PerformanceMetricsCollector.h"
#include "mozilla/PerfStats.h" #include "mozilla/PerfStats.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
#include "mozilla/ProcInfo.h" #include "mozilla/ProcInfo.h"
#include "mozilla/RDDProcessManager.h"
#include "mozilla/ResultExtensions.h" #include "mozilla/ResultExtensions.h"
#include "mozilla/SharedStyleSheetCache.h" #include "mozilla/SharedStyleSheetCache.h"
#include "mozilla/TimeStamp.h" #include "mozilla/TimeStamp.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/ContentParent.h" #include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/IdleDeadline.h" #include "mozilla/dom/IdleDeadline.h"
#include "mozilla/dom/InProcessParent.h" #include "mozilla/dom/InProcessParent.h"
#include "mozilla/dom/InProcessChild.h"
#include "mozilla/dom/JSActorService.h" #include "mozilla/dom/JSActorService.h"
#include "mozilla/dom/MediaMetadata.h"
#include "mozilla/dom/MediaSessionBinding.h" #include "mozilla/dom/MediaSessionBinding.h"
#include "mozilla/dom/PBrowserParent.h" #include "mozilla/dom/PBrowserParent.h"
#include "mozilla/dom/PWindowGlobalParent.h"
#include "mozilla/dom/Performance.h" #include "mozilla/dom/Performance.h"
#include "mozilla/dom/PopupBlocker.h" #include "mozilla/dom/PopupBlocker.h"
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
@ -43,12 +36,9 @@
#include "mozilla/dom/WindowBinding.h" // For IdleRequestCallback/Options #include "mozilla/dom/WindowBinding.h" // For IdleRequestCallback/Options
#include "mozilla/dom/WindowGlobalParent.h" #include "mozilla/dom/WindowGlobalParent.h"
#include "mozilla/dom/WorkerPrivate.h" #include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/gfx/GPUProcessManager.h"
#include "mozilla/ipc/GeckoChildProcessHost.h" #include "mozilla/ipc/GeckoChildProcessHost.h"
#include "mozilla/net/UrlClassifierFeatureFactory.h" #include "mozilla/net/UrlClassifierFeatureFactory.h"
#include "mozilla/net/SocketProcessHost.h"
#include "IOActivityMonitor.h" #include "IOActivityMonitor.h"
#include "nsIOService.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
#include "mozJSComponentLoader.h" #include "mozJSComponentLoader.h"
#include "GeckoProfiler.h" #include "GeckoProfiler.h"

View file

@ -11,13 +11,14 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ChromeUtilsBinding.h" #include "mozilla/dom/ChromeUtilsBinding.h"
#include "mozilla/dom/Exceptions.h" #include "mozilla/dom/Exceptions.h"
#include "mozilla/ErrorResult.h"
#include "nsDOMNavigationTiming.h" // for DOMHighResTimeStamp #include "nsDOMNavigationTiming.h" // for DOMHighResTimeStamp
#include "nsIDOMProcessChild.h" #include "nsIDOMProcessChild.h"
#include "nsIDOMProcessParent.h" #include "nsIDOMProcessParent.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace devtools { namespace devtools {
class HeapSnapshot; class HeapSnapshot;
} // namespace devtools } // namespace devtools

View file

@ -4,19 +4,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file, * 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/. */ * You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "Crypto.h" #include "Crypto.h"
#include "jsfriendapi.h" #include "js/ScalarType.h"
#include "js/experimental/TypedData.h" // JS_GetArrayBufferViewType #include "js/experimental/TypedData.h" // JS_GetArrayBufferViewType
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsIRandomGenerator.h" #include "nsIRandomGenerator.h"
#include "MainThreadUtils.h"
#include "nsXULAppAPI.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/CryptoBinding.h" #include "mozilla/dom/CryptoBinding.h"
#include "mozilla/dom/SubtleCrypto.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
using mozilla::dom::ContentChild;
namespace mozilla::dom { namespace mozilla::dom {
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Crypto) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Crypto)

View file

@ -11,7 +11,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/CycleCollectedJSContext.h" // for MicroTaskRunnable #include "mozilla/CycleCollectedJSContext.h" // for MicroTaskRunnable
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/CustomElementRegistryBinding.h" #include "mozilla/dom/CustomElementRegistryBinding.h"
#include "mozilla/dom/Document.h" #include "mozilla/dom/Document.h"
@ -23,6 +22,8 @@
#include "nsContentUtils.h" #include "nsContentUtils.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct CustomElementData; struct CustomElementData;

View file

@ -10,7 +10,6 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsIScriptGlobalObject.h" #include "nsIScriptGlobalObject.h"
@ -19,6 +18,8 @@
#include "nsString.h" #include "nsString.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Document; class Document;
class DocumentType; class DocumentType;

View file

@ -10,7 +10,6 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "mozilla/dom/Document.h" #include "mozilla/dom/Document.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Span.h" #include "mozilla/Span.h"
#include "mozilla/dom/DOMParserBinding.h" #include "mozilla/dom/DOMParserBinding.h"
#include "mozilla/dom/TypedArray.h" #include "mozilla/dom/TypedArray.h"
@ -18,6 +17,8 @@
class nsIGlobalObject; class nsIGlobalObject;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class DOMParser final : public nsISupports, public nsWrapperCache { class DOMParser final : public nsISupports, public nsWrapperCache {

View file

@ -8,7 +8,6 @@
#define mozilla_dom_FormData_h #define mozilla_dom_FormData_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/HTMLFormSubmission.h" #include "mozilla/dom/HTMLFormSubmission.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
@ -17,6 +16,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class HTMLFormElement; class HTMLFormElement;

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"

View file

@ -12,14 +12,13 @@
#include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/LocationBase.h" #include "mozilla/dom/LocationBase.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsIWeakReferenceUtils.h"
#include "nsPIDOMWindow.h"
#include "nsString.h" #include "nsString.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
class nsIDocShell; class nsIDocShell;
class nsIPrincipal;
class nsIURI; class nsIURI;
class nsDocShellLoadState; class nsPIDOMWindowInner;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -8,7 +8,6 @@
#define mozilla_dom_LocationBase_h #define mozilla_dom_LocationBase_h
#include "mozilla/AlreadyAddRefed.h" #include "mozilla/AlreadyAddRefed.h"
#include "mozilla/ErrorResult.h"
#include "nsStringFwd.h" #include "nsStringFwd.h"
class nsIDocShell; class nsIDocShell;
@ -17,6 +16,8 @@ class nsIURI;
class nsDocShellLoadState; class nsDocShellLoadState;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BrowsingContext; class BrowsingContext;

View file

@ -21,10 +21,11 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/NonRefcountedDOMObject.h" #include "mozilla/dom/NonRefcountedDOMObject.h"
#include "mozilla/ErrorResult.h"
#include "nsID.h" #include "nsID.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class MozQueryInterface final : public NonRefcountedDOMObject { class MozQueryInterface final : public NonRefcountedDOMObject {

View file

@ -12,7 +12,6 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Fetch.h" #include "mozilla/dom/Fetch.h"
#include "mozilla/dom/Nullable.h" #include "mozilla/dom/Nullable.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "nsHashKeys.h" #include "nsHashKeys.h"
#include "nsInterfaceHashtable.h" #include "nsInterfaceHashtable.h"
@ -28,6 +27,8 @@ class nsIPrincipal;
class nsIURI; class nsIURI;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class AddonManager; class AddonManager;
class BodyExtractorBase; class BodyExtractorBase;

View file

@ -8,10 +8,11 @@
#define mozilla_dom_PlacesEvent_h #define mozilla_dom_PlacesEvent_h
#include "mozilla/dom/PlacesEventBinding.h" #include "mozilla/dom/PlacesEventBinding.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class PlacesEvent : public nsWrapperCache { class PlacesEvent : public nsWrapperCache {

View file

@ -11,11 +11,11 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/PlacesObserversBinding.h" #include "mozilla/dom/PlacesObserversBinding.h"
#include "mozilla/dom/PlacesEvent.h" #include "mozilla/dom/PlacesEvent.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/places/INativePlacesEventCallback.h" #include "mozilla/places/INativePlacesEventCallback.h"
#include "nsIWeakReferenceUtils.h" #include "nsIWeakReferenceUtils.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {

View file

@ -9,7 +9,6 @@
#include "mozilla/WeakPtr.h" #include "mozilla/WeakPtr.h"
#include "mozilla/dom/PlacesObserversBinding.h" #include "mozilla/dom/PlacesObserversBinding.h"
#include "mozilla/ErrorResult.h"
#include "nsIWeakReferenceUtils.h" #include "nsIWeakReferenceUtils.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"

View file

@ -7,12 +7,17 @@
#ifndef mozilla_dom_PopupBlocker_h #ifndef mozilla_dom_PopupBlocker_h
#define mozilla_dom_PopupBlocker_h #define mozilla_dom_PopupBlocker_h
#include "mozilla/BasicEvents.h" #include <stdint.h>
#include "mozilla/Attributes.h"
#include "mozilla/TimeStamp.h"
class AutoPopupStatePusherInternal;
class nsIPrincipal; class nsIPrincipal;
namespace mozilla { namespace mozilla {
class WidgetEvent;
namespace dom { namespace dom {
class Event;
class PopupBlocker final { class PopupBlocker final {
public: public:

View file

@ -7,10 +7,11 @@
#ifndef mozilla_dom_Pose_h #ifndef mozilla_dom_Pose_h
#define mozilla_dom_Pose_h #define mozilla_dom_Pose_h
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Pose : public nsWrapperCache { class Pose : public nsWrapperCache {

View file

@ -10,7 +10,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/AppUnits.h" #include "mozilla/AppUnits.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "mozilla/WritingModes.h" #include "mozilla/WritingModes.h"
#include "mozilla/dom/DOMRect.h" #include "mozilla/dom/DOMRect.h"
@ -26,6 +25,8 @@
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Element; class Element;

View file

@ -7,7 +7,6 @@
#ifndef mozilla_dom_StaticRange_h #ifndef mozilla_dom_StaticRange_h
#define mozilla_dom_StaticRange_h #define mozilla_dom_StaticRange_h
#include "mozilla/ErrorResult.h"
#include "mozilla/RangeBoundary.h" #include "mozilla/RangeBoundary.h"
#include "mozilla/dom/AbstractRange.h" #include "mozilla/dom/AbstractRange.h"
#include "mozilla/dom/StaticRangeBinding.h" #include "mozilla/dom/StaticRangeBinding.h"
@ -15,6 +14,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class StaticRange final : public AbstractRange { class StaticRange final : public AbstractRange {

View file

@ -7,19 +7,25 @@
#ifndef mozilla_dom_StructuredCloneBlob_h #ifndef mozilla_dom_StructuredCloneBlob_h
#define mozilla_dom_StructuredCloneBlob_h #define mozilla_dom_StructuredCloneBlob_h
#include "mozilla/dom/BindingDeclarations.h" #include "js/TypeDecls.h"
#include "mozilla/dom/StructuredCloneHolder.h" #include "mozilla/AlreadyAddRefed.h"
#include "mozilla/dom/StructuredCloneHolderBinding.h"
#include "jsapi.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h"
#include "mozilla/dom/StructuredCloneHolder.h"
#include "nsIMemoryReporter.h" #include "nsIMemoryReporter.h"
#include "nsISupports.h" #include "nsISupports.h"
struct JSStructuredCloneReader;
struct JSStructuredCloneWriter;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class GlobalObject;
class StructuredCloneBlob final : public nsIMemoryReporter { class StructuredCloneBlob final : public nsIMemoryReporter {
MOZ_DEFINE_MALLOC_SIZE_OF(MallocSizeOf) MOZ_DEFINE_MALLOC_SIZE_OF(MallocSizeOf)

View file

@ -8,9 +8,10 @@
#define mozilla_dom_Text_h #define mozilla_dom_Text_h
#include "mozilla/dom/CharacterData.h" #include "mozilla/dom/CharacterData.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Text : public CharacterData { class Text : public CharacterData {

View file

@ -12,7 +12,6 @@
#define nsDOMAttributeMap_h #define nsDOMAttributeMap_h
#include "mozilla/MemoryReporting.h" #include "mozilla/MemoryReporting.h"
#include "mozilla/ErrorResult.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsRefPtrHashtable.h" #include "nsRefPtrHashtable.h"
#include "nsString.h" #include "nsString.h"
@ -22,6 +21,8 @@ class nsAtom;
class nsINode; class nsINode;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Attr; class Attr;
class DocGroup; class DocGroup;

View file

@ -8,12 +8,15 @@
#define nsDOMSerializer_h_ #define nsDOMSerializer_h_
#include "mozilla/dom/NonRefcountedDOMObject.h" #include "mozilla/dom/NonRefcountedDOMObject.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/XMLSerializerBinding.h" #include "mozilla/dom/XMLSerializerBinding.h"
class nsINode; class nsINode;
class nsIOutputStream; class nsIOutputStream;
namespace mozilla {
class ErrorResult;
}
class nsDOMSerializer final : public mozilla::dom::NonRefcountedDOMObject { class nsDOMSerializer final : public mozilla::dom::NonRefcountedDOMObject {
public: public:
nsDOMSerializer(); nsDOMSerializer();

View file

@ -12,7 +12,6 @@
#include "mozilla/dom/Document.h" #include "mozilla/dom/Document.h"
#include "nsIFocusManager.h" #include "nsIFocusManager.h"
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsIWidget.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"

View file

@ -4,169 +4,304 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsGlobalWindow.h" #include "nsGlobalWindowInner.h"
#include <algorithm> #include <inttypes.h>
#include <math.h>
#include "mozilla/MemoryReporting.h" #include <stdio.h>
#include <stdlib.h>
// Local Includes #include <string.h>
#include <cstdint>
#include <new>
#include <type_traits>
#include <utility>
#include "AudioChannelService.h"
#include "AutoplayPolicy.h" #include "AutoplayPolicy.h"
#include "Crypto.h"
#include "GeckoProfiler.h"
#include "MainThreadUtils.h"
#include "Navigator.h" #include "Navigator.h"
#include "nsContentSecurityManager.h" #include "PaintWorkletImpl.h"
#include "nsScreen.h" #include "SessionStorageCache.h"
#include "nsHistory.h" #include "Units.h"
#include "nsDOMNavigationTiming.h" #include "VRManagerChild.h"
#include "nsIDOMStorageManager.h" #include "WindowDestroyedEvent.h"
#include "WindowNamedPropertiesHandler.h"
#include "js/ComparisonOperators.h"
#include "js/CompileOptions.h"
#include "js/Id.h"
#include "js/PropertyDescriptor.h"
#include "js/RealmOptions.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "js/Value.h"
#include "js/Warnings.h"
#include "js/shadow/String.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "mozIDOMWindow.h"
#include "moz_external_vr.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/ArrayIterator.h"
#include "mozilla/ArrayUtils.h"
#include "mozilla/Attributes.h"
#include "mozilla/BaseProfilerMarkersPrerequisites.h"
#include "mozilla/BasicEvents.h"
#include "mozilla/CallState.h"
#include "mozilla/CycleCollectedJSContext.h"
#include "mozilla/DOMEventTargetHelper.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/EventListenerManager.h"
#include "mozilla/EventQueue.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/FlushType.h"
#include "mozilla/Likely.h"
#include "mozilla/LinkedList.h"
#include "mozilla/Logging.h"
#include "mozilla/MacroForEach.h"
#include "mozilla/Maybe.h"
#include "mozilla/OwningNonNull.h"
#include "mozilla/PermissionDelegateHandler.h"
#include "mozilla/Preferences.h"
#include "mozilla/PresShell.h"
#include "mozilla/ProcessHangMonitor.h"
#include "mozilla/RefPtr.h"
#include "mozilla/Result.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/ScrollOrigin.h"
#include "mozilla/ScrollTypes.h"
#include "mozilla/Services.h"
#include "mozilla/SizeOfState.h"
#include "mozilla/Span.h"
#include "mozilla/SpinEventLoopUntil.h"
#include "mozilla/Sprintf.h"
#include "mozilla/StaticPrefs_browser.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/StorageAccess.h"
#include "mozilla/TaskCategory.h"
#include "mozilla/Telemetry.h"
#include "mozilla/TelemetryHistogramEnums.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/Unused.h"
#include "mozilla/dom/AudioContext.h"
#include "mozilla/dom/BarProps.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/BrowserChild.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/CSPEvalChecker.h"
#include "mozilla/dom/CallbackDebuggerNotification.h" #include "mozilla/dom/CallbackDebuggerNotification.h"
#include "mozilla/dom/ContentChild.h" #include "mozilla/dom/ChromeMessageBroadcaster.h"
#include "mozilla/dom/ClientInfo.h"
#include "mozilla/dom/ClientManager.h"
#include "mozilla/dom/ClientSource.h"
#include "mozilla/dom/ClientState.h"
#include "mozilla/dom/ClientsBinding.h"
#include "mozilla/dom/Console.h"
#include "mozilla/dom/ContentFrameMessageManager.h" #include "mozilla/dom/ContentFrameMessageManager.h"
#include "mozilla/dom/ContentMediaController.h" #include "mozilla/dom/ContentMediaController.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/CSPEvalChecker.h"
#include "mozilla/dom/CustomElementRegistry.h" #include "mozilla/dom/CustomElementRegistry.h"
#include "mozilla/dom/DebuggerNotification.h"
#include "mozilla/dom/DocumentInlines.h"
#include "mozilla/dom/DOMJSProxyHandler.h" #include "mozilla/dom/DOMJSProxyHandler.h"
#include "mozilla/dom/DebuggerNotification.h"
#include "mozilla/dom/DebuggerNotificationBinding.h"
#include "mozilla/dom/DebuggerNotificationManager.h"
#include "mozilla/dom/DispatcherTrait.h"
#include "mozilla/dom/DocGroup.h"
#include "mozilla/dom/Document.h"
#include "mozilla/dom/DocumentInlines.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/EventTarget.h" #include "mozilla/dom/EventTarget.h"
#include "mozilla/dom/Fetch.h"
#include "mozilla/dom/Gamepad.h"
#include "mozilla/dom/GamepadManager.h"
#include "mozilla/dom/HashChangeEvent.h"
#include "mozilla/dom/HashChangeEventBinding.h"
#include "mozilla/dom/IDBFactory.h"
#include "mozilla/dom/IdleRequest.h"
#include "mozilla/dom/ImageBitmap.h"
#include "mozilla/dom/ImageBitmapSource.h"
#include "mozilla/dom/InstallTriggerBinding.h"
#include "mozilla/dom/IntlUtils.h"
#include "mozilla/dom/LSObject.h"
#include "mozilla/dom/LoadedScript.h"
#include "mozilla/dom/LocalStorage.h" #include "mozilla/dom/LocalStorage.h"
#include "mozilla/dom/LocalStorageCommon.h" #include "mozilla/dom/LocalStorageCommon.h"
#include "mozilla/dom/LSObject.h" #include "mozilla/dom/Location.h"
#include "mozilla/dom/NavigatorBinding.h"
#include "mozilla/dom/Nullable.h"
#include "mozilla/dom/PartitionedLocalStorage.h" #include "mozilla/dom/PartitionedLocalStorage.h"
#include "mozilla/dom/Storage.h"
#include "mozilla/dom/IdleRequest.h"
#include "mozilla/dom/Performance.h" #include "mozilla/dom/Performance.h"
#include "mozilla/dom/PopStateEvent.h"
#include "mozilla/dom/PopStateEventBinding.h"
#include "mozilla/dom/PopupBlocker.h"
#include "mozilla/dom/PrimitiveConversions.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/RootedDictionary.h"
#include "mozilla/dom/ScriptLoader.h" #include "mozilla/dom/ScriptLoader.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/ServiceWorker.h"
#include "mozilla/dom/ServiceWorkerDescriptor.h"
#include "mozilla/dom/ServiceWorkerRegistration.h"
#include "mozilla/dom/SessionStorageManager.h" #include "mozilla/dom/SessionStorageManager.h"
#include "mozilla/dom/SharedWorker.h"
#include "mozilla/dom/Storage.h"
#include "mozilla/dom/StorageEvent.h" #include "mozilla/dom/StorageEvent.h"
#include "mozilla/dom/StorageEventBinding.h" #include "mozilla/dom/StorageEventBinding.h"
#include "mozilla/dom/StorageNotifierService.h" #include "mozilla/dom/StorageNotifierService.h"
#include "mozilla/dom/StorageUtils.h" #include "mozilla/dom/StorageUtils.h"
#include "mozilla/dom/TabMessageTypes.h"
#include "mozilla/dom/Timeout.h" #include "mozilla/dom/Timeout.h"
#include "mozilla/dom/TimeoutHandler.h" #include "mozilla/dom/TimeoutHandler.h"
#include "mozilla/dom/TimeoutManager.h" #include "mozilla/dom/TimeoutManager.h"
#include "mozilla/dom/ToJSValue.h"
#include "mozilla/dom/U2F.h"
#include "mozilla/dom/VRDisplay.h"
#include "mozilla/dom/VRDisplayEvent.h"
#include "mozilla/dom/VRDisplayEventBinding.h"
#include "mozilla/dom/VREventObserver.h"
#include "mozilla/dom/VisualViewport.h" #include "mozilla/dom/VisualViewport.h"
#include "mozilla/dom/WindowProxyHolder.h"
#ifdef MOZ_GLEAN
# include "mozilla/glean/Glean.h"
#endif
#include "mozilla/IntegerPrintfMacros.h"
#include "mozilla/Result.h"
#if defined(MOZ_WIDGET_ANDROID)
# include "mozilla/dom/WindowOrientationObserver.h"
#endif
#include "nsDOMOfflineResourceList.h"
#include "nsICookieService.h"
#include "nsError.h"
#include "nsISizeOfEventTarget.h"
#include "nsDOMJSUtils.h"
#include "nsArrayUtils.h"
#include "mozilla/dom/WakeLock.h" #include "mozilla/dom/WakeLock.h"
#include "mozilla/dom/power/PowerManagerService.h" #include "mozilla/dom/WebIDLGlobalNameHash.h"
#include "mozilla/dom/WindowBinding.h"
#include "mozilla/dom/WindowContext.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "mozilla/dom/WindowProxyHolder.h"
#include "mozilla/dom/WorkerCommon.h"
#include "mozilla/dom/Worklet.h"
#include "mozilla/dom/XRPermissionRequest.h"
#include "mozilla/dom/cache/CacheStorage.h"
#include "mozilla/dom/cache/Types.h"
#include "mozilla/fallible.h"
#include "mozilla/gfx/BasePoint.h"
#include "mozilla/gfx/BaseRect.h"
#include "mozilla/gfx/BaseSize.h"
#include "mozilla/gfx/Rect.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/intl/LocaleService.h"
#include "mozilla/net/CookieJarSettings.h"
#include "nsAtom.h"
#include "nsBaseHashtable.h"
#include "nsCCUncollectableMarker.h"
#include "nsCOMPtr.h"
#include "nsCRT.h"
#include "nsCRTGlue.h"
#include "nsCanvasFrame.h"
#include "nsCharTraits.h"
#include "nsCheapSets.h"
#include "nsContentUtils.h"
#include "nsCoord.h"
#include "nsCycleCollectionNoteChild.h"
#include "nsCycleCollectionTraversalCallback.h"
#include "nsDOMNavigationTiming.h"
#include "nsDOMOfflineResourceList.h"
#include "nsDebug.h"
#include "nsDocShell.h"
#include "nsFocusManager.h"
#include "nsFrameMessageManager.h"
#include "nsGkAtoms.h"
#include "nsGlobalWindowOuter.h"
#include "nsHashKeys.h"
#include "nsHistory.h"
#include "nsIAddonPolicyService.h"
#include "nsIArray.h"
#include "nsIBaseWindow.h"
#include "nsIBrowserChild.h"
#include "nsICancelableRunnable.h"
#include "nsIChannel.h"
#include "nsIContentSecurityPolicy.h" #include "nsIContentSecurityPolicy.h"
#include "nsIControllers.h"
#include "nsICookieJarSettings.h"
#include "nsICookieService.h"
#include "nsID.h"
#include "nsIDOMStorageManager.h"
#include "nsIDeviceSensors.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeOwner.h" #include "nsIDocShellTreeOwner.h"
#include "nsIDocumentLoader.h" #include "nsIDocumentLoader.h"
#include "nsIInterfaceRequestorUtils.h" #include "nsIDragService.h"
#include "nsIScriptContext.h" #include "nsIFocusManager.h"
#include "nsIController.h"
#include "nsISlowScriptDebug.h"
#include "nsWindowMemoryReporter.h"
#include "nsWindowSizes.h"
#include "WindowNamedPropertiesHandler.h"
#include "nsFrameSelection.h"
#include "nsNetUtil.h"
#include "nsVariant.h"
#include "nsPrintfCString.h"
#include "mozilla/intl/LocaleService.h"
#include "WindowDestroyedEvent.h"
// Helper Classes
#include "nsJSUtils.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "js/Warnings.h" // JS::WarnASCII
#include "js/Wrapper.h"
#include "nsCharSeparatedTokenizer.h"
#include "nsReadableUtils.h"
#include "nsJSEnvironment.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/Preferences.h"
#include "mozilla/Likely.h"
#include "mozilla/SpinEventLoopUntil.h"
#include "mozilla/Sprintf.h"
#include "mozilla/StorageAccess.h"
#include "mozilla/Unused.h"
// Other Classes
#include "mozilla/dom/BarProps.h"
#include "nsContentCID.h"
#include "nsLayoutStatics.h"
#include "nsCCUncollectableMarker.h"
#include "mozilla/dom/WorkerCommon.h"
#include "mozilla/dom/ToJSValue.h"
#include "nsJSPrincipals.h"
#include "mozilla/Attributes.h"
#include "mozilla/Debug.h"
#include "mozilla/EventListenerManager.h"
#include "mozilla/EventStates.h"
#include "mozilla/MouseEvents.h"
#include "mozilla/PresShell.h"
#include "mozilla/ProcessHangMonitor.h"
#include "mozilla/ScrollTypes.h"
#include "mozilla/ThrottledEventQueue.h"
#include "AudioChannelService.h"
#include "nsAboutProtocolUtils.h"
#include "nsCharTraits.h" // NS_IS_HIGH/LOW_SURROGATE
#include "PostMessageEvent.h"
#include "mozilla/dom/DocGroup.h"
#include "mozilla/StaticPrefs_browser.h"
#include "mozilla/StaticPrefs_dom.h"
#include "PaintWorkletImpl.h"
// Interfaces Needed
#include "nsIFrame.h" #include "nsIFrame.h"
#include "nsCanvasFrame.h" #include "nsIGlobalObject.h"
#include "nsIIOService.h"
#include "nsIIdleRunnable.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsILoadContext.h"
#include "nsILoadGroup.h"
#include "nsILoadInfo.h"
#include "nsINamed.h"
#include "nsINode.h"
#include "nsIObserver.h"
#include "nsIObserverService.h"
#include "nsIPermission.h"
#include "nsIPermissionManager.h"
#include "nsIPrefBranch.h"
#include "nsIPrincipal.h"
#include "nsIPrompt.h"
#include "nsIRunnable.h"
#include "nsIScreen.h"
#include "nsIScreenManager.h"
#include "nsIScriptContext.h"
#include "nsIScriptGlobalObject.h"
#include "nsIScriptObjectPrincipal.h"
#include "nsIScrollableFrame.h"
#include "nsISerialEventTarget.h"
#include "nsISimpleEnumerator.h"
#include "nsISizeOfEventTarget.h"
#include "nsISlowScriptDebug.h"
#include "nsISupportsUtils.h"
#include "nsIThread.h"
#include "nsITimedChannel.h"
#include "nsIURI.h"
#include "nsIVariant.h"
#include "nsIWeakReference.h"
#include "nsIWebBrowserChrome.h"
#include "nsIWebNavigation.h"
#include "nsIWebProgressListener.h"
#include "nsIWidget.h" #include "nsIWidget.h"
#include "nsIWidgetListener.h" #include "nsIWidgetListener.h"
#include "nsIBaseWindow.h" #include "nsJSPrincipals.h"
#include "nsIDeviceSensors.h" #include "nsJSUtils.h"
#include "nsIContent.h" #include "nsLayoutStatics.h"
#include "nsIDocShell.h" #include "nsLiteralString.h"
#include "mozilla/dom/Document.h" #include "nsNetUtil.h"
#include "Crypto.h" #include "nsPIDOMWindow.h"
#include "nsDOMString.h" #include "nsPIDOMWindowInlines.h"
#include "nsThreadUtils.h" #include "nsPIWindowRoot.h"
#include "nsILoadContext.h" #include "nsPoint.h"
#include "nsIScrollableFrame.h" #include "nsPresContext.h"
#include "nsView.h"
#include "nsViewManager.h"
#include "nsIPrompt.h"
#include "nsIAddonPolicyService.h"
#include "nsIWebNavigation.h"
#include "nsIWebBrowserChrome.h"
#include "nsDOMCID.h"
#include "nsDOMWindowUtils.h"
#include "nsIControllers.h"
#include "nsGlobalWindowCommands.h"
#include "nsQueryObject.h" #include "nsQueryObject.h"
#include "nsContentUtils.h" #include "nsRefPtrHashtable.h"
#include "nsCSSProps.h" #include "nsSandboxFlags.h"
#include "mozilla/EventDispatcher.h" #include "nsScreen.h"
#include "mozilla/EventStateManager.h"
#include "nsIObserverService.h"
#include "nsFocusManager.h"
#include "nsITimedChannel.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsString.h"
#include "nsStringFlags.h"
#include "nsStringFwd.h"
#include "nsTArray.h"
#include "nsTLiteralString.h"
#include "nsTObserverArray.h"
#include "nsTStringRepr.h"
#include "nsThreadUtils.h"
#include "nsWeakReference.h"
#include "nsWindowMemoryReporter.h"
#include "nsWindowSizes.h"
#include "nsWrapperCache.h"
#include "nsWrapperCacheInlines.h"
#include "nsXULAppAPI.h"
#include "nsrootidl.h"
#include "prclist.h"
#include "prtypes.h"
#include "xpcprivate.h"
#include "xpcpublic.h"
#ifdef MOZ_XUL #ifdef MOZ_XUL
# include "nsIDOMXULControlElement.h" # include "nsIDOMXULControlElement.h"
# include "nsMenuPopupFrame.h" # include "nsMenuPopupFrame.h"
#endif #endif
#include "mozilla/dom/CustomEvent.h"
#include "nsIScreenManager.h"
#include "nsICSSDeclaration.h"
#include "nsIPermission.h"
#include "xpcprivate.h"
#ifdef NS_PRINTING #ifdef NS_PRINTING
# include "nsIPrintSettings.h" # include "nsIPrintSettings.h"
@ -174,72 +309,6 @@
# include "nsIWebBrowserPrint.h" # include "nsIWebBrowserPrint.h"
#endif #endif
#include "nsWindowRoot.h"
#include "nsNetCID.h"
#include "nsIArray.h"
#include "nsIDragService.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/Selection.h"
#include "nsFrameLoader.h"
#include "nsXPCOMCID.h"
#include "mozilla/Logging.h"
#include "prenv.h"
#include "mozilla/dom/IDBFactory.h"
#include "mozilla/dom/MessageChannel.h"
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/Gamepad.h"
#include "mozilla/dom/GamepadManager.h"
#include "gfxVR.h"
#include "mozilla/dom/VRDisplay.h"
#include "mozilla/dom/VRDisplayEvent.h"
#include "mozilla/dom/VRDisplayEventBinding.h"
#include "mozilla/dom/VREventObserver.h"
#include "mozilla/dom/XRPermissionRequest.h"
#include "nsRefreshDriver.h"
#include "Layers.h"
#include "mozilla/BasePrincipal.h"
#include "mozilla/Services.h"
#include "mozilla/Telemetry.h"
#include "mozilla/dom/Location.h"
#include "nsHTMLDocument.h"
#include "nsWrapperCacheInlines.h"
#include "mozilla/DOMEventTargetHelper.h"
#include "prrng.h"
#include "nsSandboxFlags.h"
#include "mozilla/dom/AudioContext.h"
#include "mozilla/dom/BrowserElementDictionariesBinding.h"
#include "mozilla/dom/cache/CacheStorage.h"
#include "mozilla/dom/Console.h"
#include "mozilla/dom/Fetch.h"
#include "mozilla/dom/FunctionBinding.h"
#include "mozilla/dom/HashChangeEvent.h"
#include "mozilla/dom/IntlUtils.h"
#include "mozilla/dom/PopStateEvent.h"
#include "mozilla/dom/PopupBlocker.h"
#include "mozilla/dom/PopupBlockedEvent.h"
#include "mozilla/dom/PrimitiveConversions.h"
#include "mozilla/dom/WindowBinding.h"
#include "nsIBrowserChild.h"
#include "mozilla/dom/LoadedScript.h"
#include "mozilla/dom/MediaQueryList.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/NavigatorBinding.h"
#include "mozilla/dom/ImageBitmap.h"
#include "mozilla/dom/ImageBitmapBinding.h"
#include "mozilla/dom/InstallTriggerBinding.h"
#include "mozilla/dom/SharedWorker.h"
#include "mozilla/dom/ServiceWorker.h"
#include "mozilla/dom/ServiceWorkerRegistration.h"
#include "mozilla/dom/ServiceWorkerRegistrationDescriptor.h"
#include "mozilla/dom/U2F.h"
#include "mozilla/dom/WebIDLGlobalNameHash.h"
#include "mozilla/dom/Worklet.h"
#ifdef HAVE_SIDEBAR #ifdef HAVE_SIDEBAR
# include "mozilla/dom/ExternalBinding.h" # include "mozilla/dom/ExternalBinding.h"
#endif #endif
@ -248,23 +317,16 @@
# include "mozilla/dom/SpeechSynthesis.h" # include "mozilla/dom/SpeechSynthesis.h"
#endif #endif
#include "mozilla/dom/ClientManager.h"
#include "mozilla/dom/ClientSource.h"
#include "mozilla/dom/ClientState.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "mozilla/dom/BrowserChild.h"
#include "mozilla/net/CookieJarSettings.h"
#include "AccessCheck.h"
#include "SessionStorageCache.h"
#ifdef ANDROID #ifdef ANDROID
# include <android/log.h> # include <android/log.h>
#endif #endif
#ifdef MOZ_WIDGET_ANDROID
# include "mozilla/dom/WindowOrientationObserver.h"
#endif
#ifdef XP_WIN #ifdef XP_WIN
# include "mozilla/Debug.h"
# include <process.h> # include <process.h>
# define getpid _getpid # define getpid _getpid
#else #else

View file

@ -41,7 +41,6 @@
#include "mozilla/dom/StorageEventBinding.h" #include "mozilla/dom/StorageEventBinding.h"
#include "mozilla/dom/UnionTypes.h" #include "mozilla/dom/UnionTypes.h"
#include "mozilla/CallState.h" #include "mozilla/CallState.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "mozilla/OwningNonNull.h" #include "mozilla/OwningNonNull.h"
@ -98,6 +97,8 @@ class PromiseDocumentFlushedResolver;
namespace mozilla { namespace mozilla {
class AbstractThread; class AbstractThread;
class ErrorResult;
namespace dom { namespace dom {
class BarProp; class BarProp;
class BrowsingContext; class BrowsingContext;

View file

@ -39,7 +39,6 @@
#include "mozilla/dom/StorageEvent.h" #include "mozilla/dom/StorageEvent.h"
#include "mozilla/dom/StorageEventBinding.h" #include "mozilla/dom/StorageEventBinding.h"
#include "mozilla/dom/UnionTypes.h" #include "mozilla/dom/UnionTypes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/LinkedList.h" #include "mozilla/LinkedList.h"
#include "nsWrapperCacheInlines.h" #include "nsWrapperCacheInlines.h"
@ -84,6 +83,7 @@ class nsWindowSizes;
namespace mozilla { namespace mozilla {
class AbstractThread; class AbstractThread;
class DOMEventTargetHelper; class DOMEventTargetHelper;
class ErrorResult;
class ThrottledEventQueue; class ThrottledEventQueue;
namespace dom { namespace dom {
class BarProp; class BarProp;

View file

@ -7,7 +7,6 @@
#define nsHistory_h___ #define nsHistory_h___
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/HistoryBinding.h" #include "mozilla/dom/HistoryBinding.h"
#include "mozilla/dom/ChildSHistory.h" #include "mozilla/dom/ChildSHistory.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
@ -22,6 +21,10 @@ class nsISHistory;
class nsIWeakReference; class nsIWeakReference;
class nsPIDOMWindowInner; class nsPIDOMWindowInner;
namespace mozilla {
class ErrorResult;
}
// Script "History" object // Script "History" object
class nsHistory final : public nsISupports, public nsWrapperCache { class nsHistory final : public nsISupports, public nsWrapperCache {
public: public:

View file

@ -6,13 +6,13 @@
#ifndef nsIDocumentObserver_h___ #ifndef nsIDocumentObserver_h___
#define nsIDocumentObserver_h___ #define nsIDocumentObserver_h___
#include "mozilla/EventStates.h"
#include "mozilla/StyleSheet.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsIMutationObserver.h" #include "nsIMutationObserver.h"
class nsIContent; class nsIContent;
namespace mozilla { namespace mozilla {
class EventStates;
namespace dom { namespace dom {
class Document; class Document;
} }

View file

@ -21,7 +21,6 @@
#include "nsIContentPolicy.h" #include "nsIContentPolicy.h"
#include "nsIImageLoadingContent.h" #include "nsIImageLoadingContent.h"
#include "nsIRequest.h" #include "nsIRequest.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Promise.h" #include "mozilla/dom/Promise.h"
#include "nsAttrValue.h" #include "nsAttrValue.h"
@ -35,6 +34,8 @@ class imgRequestProxy;
namespace mozilla { namespace mozilla {
class AsyncEventDispatcher; class AsyncEventDispatcher;
class ErrorResult;
namespace dom { namespace dom {
struct BindContext; struct BindContext;
class Document; class Document;

View file

@ -15,8 +15,6 @@
*/ */
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/Utf8.h" // mozilla::Utf8Unit
#include "GeckoProfiler.h" #include "GeckoProfiler.h"
#include "jsapi.h" #include "jsapi.h"
@ -34,6 +32,8 @@ class nsIScriptGlobalObject;
class nsXBLPrototypeBinding; class nsXBLPrototypeBinding;
namespace mozilla { namespace mozilla {
union Utf8Unit;
namespace dom { namespace dom {
class AutoJSAPI; class AutoJSAPI;
class Element; class Element;

View file

@ -13,11 +13,14 @@
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "mozilla/dom/CallbackObject.h" #include "mozilla/dom/CallbackObject.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/NodeFilterBinding.h" #include "mozilla/dom/NodeFilterBinding.h"
class nsINode; class nsINode;
namespace mozilla {
class ErrorResult;
}
class nsTraversal { class nsTraversal {
public: public:
nsTraversal(nsINode* aRoot, uint32_t aWhatToShow, nsTraversal(nsINode* aRoot, uint32_t aWhatToShow,

View file

@ -10,8 +10,6 @@
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "js/HeapAPI.h" #include "js/HeapAPI.h"
#include "js/Id.h" // must come before js/RootingAPI.h
#include "js/Value.h" // must come before js/RootingAPI.h
#include "js/RootingAPI.h" #include "js/RootingAPI.h"
#include "js/TracingAPI.h" #include "js/TracingAPI.h"
#include "jsfriendapi.h" #include "jsfriendapi.h"

View file

@ -17,28 +17,47 @@
#ifndef mozilla_dom_CallbackObject_h #ifndef mozilla_dom_CallbackObject_h
#define mozilla_dom_CallbackObject_h #define mozilla_dom_CallbackObject_h
#include "nsISupports.h" #include <cstddef>
#include "nsISupportsImpl.h" #include <cstdint>
#include "nsCycleCollectionParticipant.h" #include <utility>
#include "js/RootingAPI.h"
#include "js/Wrapper.h" #include "js/Wrapper.h"
#include "mozilla/Assertions.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/HoldDropJSObjects.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/OwningNonNull.h"
#include "mozilla/dom/ScriptSettings.h"
#include "mozilla/dom/BindingCallContext.h"
#include "nsWrapperCache.h"
#include "nsJSEnvironment.h"
#include "xpcpublic.h"
#include "jsapi.h" #include "jsapi.h"
#include "js/ContextOptions.h" #include "mozilla/AlreadyAddRefed.h"
#include "js/Object.h" // JS::GetCompartment #include "mozilla/Assertions.h"
#include "js/TracingAPI.h" #include "mozilla/Attributes.h"
#include "mozilla/HoldDropJSObjects.h"
#include "mozilla/Maybe.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/RefPtr.h"
#include "mozilla/dom/BindingCallContext.h"
#include "mozilla/dom/ScriptSettings.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsID.h"
#include "nsIGlobalObject.h"
#include "nsISupports.h"
#include "nsISupportsUtils.h"
#include "nsStringFwd.h"
class JSAutoRealm;
class JSObject;
class JSTracer;
class nsCycleCollectionTraversalCallback;
struct JSContext;
namespace JS {
class AutoSetAsyncStackForNewCalls;
class Realm;
class Value;
} // namespace JS
namespace mozilla { namespace mozilla {
class ErrorResult;
class PromiseJobRunnable; class PromiseJobRunnable;
template <class T>
class OwningNonNull;
namespace dom { namespace dom {

View file

@ -27,14 +27,12 @@
#ifndef mozilla_dom_IterableIterator_h #ifndef mozilla_dom_IterableIterator_h
#define mozilla_dom_IterableIterator_h #define mozilla_dom_IterableIterator_h
#include "js/TypeDecls.h"
#include "js/Value.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsWrapperCache.h" #include "mozilla/dom/IterableIteratorBinding.h"
#include "nsPIDOMWindow.h"
#include "nsCOMPtr.h"
#include "mozilla/dom/RootedDictionary.h" #include "mozilla/dom/RootedDictionary.h"
#include "mozilla/dom/ToJSValue.h" #include "mozilla/dom/ToJSValue.h"
#include "js/Wrapper.h"
#include "mozilla/dom/IterableIteratorBinding.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -18,7 +18,6 @@
#include "jsapi.h" #include "jsapi.h"
#include "js/Conversions.h" #include "js/Conversions.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/FloatingPoint.h" #include "mozilla/FloatingPoint.h"
#include "mozilla/dom/BindingCallContext.h" #include "mozilla/dom/BindingCallContext.h"

View file

@ -7,24 +7,37 @@
#ifndef mozilla_dom_ToJSValue_h #ifndef mozilla_dom_ToJSValue_h
#define mozilla_dom_ToJSValue_h #define mozilla_dom_ToJSValue_h
#include "mozilla/Assertions.h" #include <cstddef> // for size_t
#include "mozilla/UniquePtr.h" #include <cstdint> // for int32_t, int64_t, uint32_t, uint64_t
#include "mozilla/dom/BindingUtils.h" #include <type_traits> // for is_base_of, enable_if_t, enable_if, is_pointer, is_same, void_t
#include "mozilla/dom/CallbackObject.h" #include <utility> // for forward
#include "mozilla/dom/NonRefcountedDOMObject.h" #include "ErrorList.h" // for nsresult
#include "mozilla/dom/TypedArray.h" #include "js/Array.h" // for NewArrayObject
#include "jsapi.h" #include "js/GCVector.h" // for RootedVector, MutableWrappedPtrOperations
#include "js/Array.h" // JS::NewArrayObject #include "js/RootingAPI.h" // for MutableHandle, Rooted, Handle, Heap
#include "nsISupports.h" #include "js/Value.h" // for Value
#include "nsTArray.h" #include "js/ValueArray.h" // for HandleValueArray
#include "nsWrapperCache.h" #include "jsapi.h" // for CurrentGlobalOrNull
#include <type_traits> #include "mozilla/Assertions.h" // for AssertionConditionType, MOZ_ASSERT, MOZ_ASSERT_HELPER1
#include "mozilla/Attributes.h" // for MOZ_MUST_USE
#include "mozilla/UniquePtr.h" // for UniquePtr
#include "mozilla/Unused.h" // for Unused
#include "mozilla/dom/BindingUtils.h" // for MaybeWrapValue, MaybeWrapObjectOrNullValue, XPCOMObjectToJsval, GetOrCreateDOMReflector
#include "mozilla/dom/CallbackObject.h" // for CallbackObject
#include "nsID.h" // for NS_GET_TEMPLATE_IID, nsIID
#include "nsISupports.h" // for nsISupports
#include "nsStringFwd.h" // for nsAString
#include "nsTArrayForwardDeclare.h"
#include "xpcObjectHelper.h" // for xpcObjectHelper
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
class CallbackObject;
class Promise; class Promise;
class WindowProxyHolder; class WindowProxyHolder;
template <typename TypedArrayType>
class TypedArrayCreator;
// If ToJSValue returns false, it must set an exception on the // If ToJSValue returns false, it must set an exception on the
// JSContext. // JSContext.

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"

View file

@ -7,7 +7,6 @@
#ifndef mozilla_dom_cache_ReadStream_h #ifndef mozilla_dom_cache_ReadStream_h
#define mozilla_dom_cache_ReadStream_h #define mozilla_dom_cache_ReadStream_h
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/SafeRefPtr.h" #include "mozilla/dom/SafeRefPtr.h"
#include "mozilla/ipc/FileDescriptor.h" #include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
@ -18,6 +17,8 @@
#include "nsTArrayForwardDeclare.h" #include "nsTArrayForwardDeclare.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace ipc { namespace ipc {
class AutoIPCStream; class AutoIPCStream;
} // namespace ipc } // namespace ipc

View file

@ -10,9 +10,10 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/gfx/2D.h" #include "mozilla/gfx/2D.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
enum class CanvasWindingRule : uint8_t; enum class CanvasWindingRule : uint8_t;

View file

@ -13,7 +13,6 @@
#include "mozilla/gfx/2D.h" #include "mozilla/gfx/2D.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/EnumeratedArray.h" #include "mozilla/EnumeratedArray.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "mozilla/SurfaceFromElementResult.h" #include "mozilla/SurfaceFromElementResult.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
@ -28,6 +27,7 @@ class nsGlobalWindowInner;
class nsXULElement; class nsXULElement;
namespace mozilla { namespace mozilla {
class ErrorResult;
class PresShell; class PresShell;
namespace gl { namespace gl {

View file

@ -20,7 +20,6 @@
#include "mozilla/dom/Nullable.h" #include "mozilla/dom/Nullable.h"
#include "mozilla/dom/TypedArray.h" #include "mozilla/dom/TypedArray.h"
#include "mozilla/EnumeratedArray.h" #include "mozilla/EnumeratedArray.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/gfx/2D.h" #include "mozilla/gfx/2D.h"
#include "mozilla/Mutex.h" #include "mozilla/Mutex.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"

View file

@ -10,7 +10,6 @@
#include "mozilla/dom/ClientOpPromise.h" #include "mozilla/dom/ClientOpPromise.h"
#include "mozilla/dom/DOMMozPromiseRequestHolder.h" #include "mozilla/dom/DOMMozPromiseRequestHolder.h"
#include "mozilla/dom/WorkerPrivate.h" #include "mozilla/dom/WorkerPrivate.h"
#include "mozilla/ErrorResult.h"
class nsIGlobalObject; class nsIGlobalObject;

View file

@ -7,7 +7,6 @@
#define _mozilla_dom_ClientHandleParent_h #define _mozilla_dom_ClientHandleParent_h
#include "mozilla/dom/PClientHandleParent.h" #include "mozilla/dom/PClientHandleParent.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -8,10 +8,14 @@
#define _mozilla_dom_ClientInfo_h #define _mozilla_dom_ClientInfo_h
#include "X11UndefineNone.h" #include "X11UndefineNone.h"
#include "mozilla/dom/ClientBinding.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/TimeStamp.h" #include "mozilla/TimeStamp.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
#include "nsCOMPtr.h"
#include "nsString.h"
class nsIPrincipal;
struct nsID;
namespace mozilla { namespace mozilla {
@ -23,6 +27,8 @@ class PrincipalInfo;
namespace dom { namespace dom {
class IPCClientInfo; class IPCClientInfo;
enum class FrameType : uint8_t;
enum class ClientType : uint8_t;
// This class provides a simple structure that represents a global living // This class provides a simple structure that represents a global living
// in the system. Its thread safe and can be transferred across process // in the system. Its thread safe and can be transferred across process

View file

@ -6,10 +6,11 @@
#ifndef _mozilla_dom_ClientOpPromise_h #ifndef _mozilla_dom_ClientOpPromise_h
#define _mozilla_dom_ClientOpPromise_h #define _mozilla_dom_ClientOpPromise_h
#include "mozilla/ErrorResult.h"
#include "mozilla/MozPromise.h" #include "mozilla/MozPromise.h"
namespace mozilla { namespace mozilla {
class CopyableErrorResult;
namespace dom { namespace dom {
class ClientOpResult; class ClientOpResult;

View file

@ -7,19 +7,18 @@
#ifndef mozilla_dom_Console_h #ifndef mozilla_dom_Console_h
#define mozilla_dom_Console_h #define mozilla_dom_Console_h
#include "domstubs.h"
#include "mozilla/dom/ConsoleBinding.h" #include "mozilla/dom/ConsoleBinding.h"
#include "mozilla/JSObjectHolder.h"
#include "mozilla/TimeStamp.h" #include "mozilla/TimeStamp.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsDataHashtable.h" #include "nsDataHashtable.h"
#include "nsHashKeys.h" #include "nsHashKeys.h"
#include "nsIObserver.h" #include "nsIObserver.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"
#include "nsDOMNavigationTiming.h"
#include "nsPIDOMWindow.h"
class nsIConsoleAPIStorage; class nsIConsoleAPIStorage;
class nsIPrincipal; class nsIGlobalObject;
class nsPIDOMWindowInner;
class nsIStackFrame; class nsIStackFrame;
namespace mozilla { namespace mozilla {
@ -28,7 +27,6 @@ namespace dom {
class AnyCallback; class AnyCallback;
class ConsoleCallData; class ConsoleCallData;
class ConsoleInstance; class ConsoleInstance;
class ConsoleInstanceDumpCallback;
class ConsoleRunnable; class ConsoleRunnable;
class ConsoleCallDataRunnable; class ConsoleCallDataRunnable;
class ConsoleProfileRunnable; class ConsoleProfileRunnable;

View file

@ -7,12 +7,13 @@
#ifndef mozilla_dom_DataTransferItem_h #ifndef mozilla_dom_DataTransferItem_h
#define mozilla_dom_DataTransferItem_h #define mozilla_dom_DataTransferItem_h
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/DataTransfer.h" #include "mozilla/dom/DataTransfer.h"
#include "mozilla/dom/DOMString.h" #include "mozilla/dom/DOMString.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class FileSystemEntry; class FileSystemEntry;

View file

@ -7,28 +7,33 @@
#ifndef mozilla_dom_Event_h_ #ifndef mozilla_dom_Event_h_
#define mozilla_dom_Event_h_ #define mozilla_dom_Event_h_
#include "mozilla/Attributes.h" #include <cstdint>
#include "mozilla/BasicEvents.h"
#include "nsISupports.h"
#include "nsCOMPtr.h"
#include "nsPIDOMWindow.h"
#include "nsPoint.h"
#include "nsCycleCollectionParticipant.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/EventBinding.h"
#include "mozilla/dom/PopupBlocker.h"
#include "nsIScriptGlobalObject.h"
#include "Units.h" #include "Units.h"
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "nsIGlobalObject.h" #include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/BasicEvents.h"
#include "mozilla/RefPtr.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsID.h"
#include "nsISupports.h"
#include "nsStringFwd.h"
#include "nsWrapperCache.h"
// XXX(Bug 1674080) Remove this and let Codegen.py generate it instead when // XXX(Bug 1674080) Remove this and let Codegen.py generate it instead when
// needed. // needed.
#include "mozilla/HoldDropJSObjects.h" #include "mozilla/HoldDropJSObjects.h"
class nsIContent;
class nsPresContext;
class PickleIterator; class PickleIterator;
class nsCycleCollectionTraversalCallback;
class nsIContent;
class nsIGlobalObject;
class nsIPrincipal;
class nsPIDOMWindowInner;
class nsPresContext;
namespace IPC { namespace IPC {
class Message; class Message;
@ -39,6 +44,7 @@ namespace dom {
class BeforeUnloadEvent; class BeforeUnloadEvent;
class CustomEvent; class CustomEvent;
class Document;
class DragEvent; class DragEvent;
class EventTarget; class EventTarget;
class EventMessageAutoOverride; class EventMessageAutoOverride;
@ -51,6 +57,8 @@ class TimeEvent;
class UIEvent; class UIEvent;
class WantsPopupControlCheck; class WantsPopupControlCheck;
class XULCommandEvent; class XULCommandEvent;
struct EventInit;
#define GENERATED_EVENT(EventClass_) class EventClass_; #define GENERATED_EVENT(EventClass_) class EventClass_;
#include "mozilla/dom/GeneratedEventList.h" #include "mozilla/dom/GeneratedEventList.h"
#undef GENERATED_EVENT #undef GENERATED_EVENT

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"

View file

@ -13,7 +13,6 @@
#include "nsString.h" #include "nsString.h"
#include "mozilla/DebugOnly.h" #include "mozilla/DebugOnly.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AbortSignal.h" #include "mozilla/dom/AbortSignal.h"
#include "mozilla/dom/BodyConsumer.h" #include "mozilla/dom/BodyConsumer.h"
#include "mozilla/dom/BodyStream.h" #include "mozilla/dom/BodyStream.h"
@ -25,6 +24,8 @@ class nsIGlobalObject;
class nsIEventTarget; class nsIEventTarget;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BlobOrArrayBufferViewOrArrayBufferOrFormDataOrURLSearchParamsOrUSVString; class BlobOrArrayBufferViewOrArrayBufferOrFormDataOrURLSearchParamsOrUSVString;

View file

@ -10,7 +10,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsError.h" #include "nsError.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
#include "mozilla/dom/FormData.h" #include "mozilla/dom/FormData.h"

View file

@ -8,6 +8,7 @@
#define mozilla_dom_BaseBlobImpl_h #define mozilla_dom_BaseBlobImpl_h
#include "mozilla/dom/BlobImpl.h" #include "mozilla/dom/BlobImpl.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {

View file

@ -8,7 +8,6 @@
#define mozilla_dom_Blob_h #define mozilla_dom_Blob_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/BlobImpl.h" #include "mozilla/dom/BlobImpl.h"
#include "mozilla/dom/BodyConsumer.h" #include "mozilla/dom/BodyConsumer.h"
@ -21,6 +20,8 @@ class nsIGlobalObject;
class nsIInputStream; class nsIInputStream;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct BlobPropertyBag; struct BlobPropertyBag;

View file

@ -8,7 +8,6 @@
#define mozilla_dom_BlobImpl_h #define mozilla_dom_BlobImpl_h
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/ErrorResult.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
#include "nsString.h" #include "nsString.h"
@ -22,6 +21,8 @@
class nsIInputStream; class nsIInputStream;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
// This is the abstract class for any File backend. It must be nsISupports // This is the abstract class for any File backend. It must be nsISupports

View file

@ -8,7 +8,6 @@
#define mozilla_dom_FileCreatorHelper_h #define mozilla_dom_FileCreatorHelper_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "nsISupportsImpl.h" #include "nsISupportsImpl.h"
@ -22,6 +21,8 @@ class nsIFile;
class nsIGlobalObject; class nsIGlobalObject;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct ChromeFilePropertyBag; struct ChromeFilePropertyBag;

View file

@ -11,11 +11,12 @@
#include "Blob.h" #include "Blob.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/Maybe.h" #include "mozilla/Maybe.h"
#include "mozilla/dom/BaseBlobImpl.h" #include "mozilla/dom/BaseBlobImpl.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
// This is just a sentinel value to be sure that we don't call // This is just a sentinel value to be sure that we don't call

View file

@ -8,13 +8,14 @@
#define mozilla_dom_Directory_h #define mozilla_dom_Directory_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/File.h" #include "mozilla/dom/File.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class FileSystemBase; class FileSystemBase;

View file

@ -7,13 +7,14 @@
#ifndef mozilla_dom_FileSystemTaskBase_h #ifndef mozilla_dom_FileSystemTaskBase_h
#define mozilla_dom_FileSystemTaskBase_h #define mozilla_dom_FileSystemTaskBase_h
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/FileSystemRequestParent.h" #include "mozilla/dom/FileSystemRequestParent.h"
#include "mozilla/dom/PFileSystemRequestChild.h" #include "mozilla/dom/PFileSystemRequestChild.h"
#include "nsIGlobalObject.h" #include "nsIGlobalObject.h"
#include "nsThreadUtils.h" #include "nsThreadUtils.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BlobImpl; class BlobImpl;

View file

@ -9,9 +9,10 @@
#include "mozilla/dom/Directory.h" #include "mozilla/dom/Directory.h"
#include "mozilla/dom/FileSystemTaskBase.h" #include "mozilla/dom/FileSystemTaskBase.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BlobImpl; class BlobImpl;

View file

@ -9,9 +9,10 @@
#include "mozilla/dom/Directory.h" #include "mozilla/dom/Directory.h"
#include "mozilla/dom/FileSystemTaskBase.h" #include "mozilla/dom/FileSystemTaskBase.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BlobImpl; class BlobImpl;

View file

@ -10,9 +10,10 @@
#include "mozilla/dom/Directory.h" #include "mozilla/dom/Directory.h"
#include "mozilla/dom/FileSystemTaskBase.h" #include "mozilla/dom/FileSystemTaskBase.h"
#include "mozilla/dom/GetFilesHelper.h" #include "mozilla/dom/GetFilesHelper.h"
#include "mozilla/ErrorResult.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BlobImpl; class BlobImpl;

View file

@ -8,7 +8,6 @@
#define mozilla_dom_FileSystem_h #define mozilla_dom_FileSystem_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"

View file

@ -8,13 +8,14 @@
#define mozilla_dom_FileSystemDirectoryReader_h #define mozilla_dom_FileSystemDirectoryReader_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/FileSystemDirectoryEntry.h" #include "mozilla/dom/FileSystemDirectoryEntry.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class Directory; class Directory;

View file

@ -8,7 +8,6 @@
#define mozilla_dom_FileSystemEntry_h #define mozilla_dom_FileSystemEntry_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/FileSystemBinding.h" #include "mozilla/dom/FileSystemBinding.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
@ -16,6 +15,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class FileSystem; class FileSystem;

View file

@ -7,7 +7,6 @@
#ifndef mozilla_dom_gamepad_Gamepad_h #ifndef mozilla_dom_gamepad_Gamepad_h
#define mozilla_dom_gamepad_Gamepad_h #define mozilla_dom_gamepad_Gamepad_h
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/GamepadBinding.h" #include "mozilla/dom/GamepadBinding.h"
#include "mozilla/dom/GamepadButton.h" #include "mozilla/dom/GamepadButton.h"
#include "mozilla/dom/GamepadPose.h" #include "mozilla/dom/GamepadPose.h"

View file

@ -11,13 +11,14 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/dom/HTMLOptionElement.h" #include "mozilla/dom/HTMLOptionElement.h"
#include "mozilla/ErrorResult.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsError.h" #include "nsError.h"
#include "nsGenericHTMLElement.h" #include "nsGenericHTMLElement.h"
#include "nsTArray.h" #include "nsTArray.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class DocGroup; class DocGroup;

View file

@ -13,7 +13,6 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/UnionTypes.h" #include "mozilla/dom/UnionTypes.h"
#include "mozilla/dom/HTMLOptionsCollection.h" #include "mozilla/dom/HTMLOptionsCollection.h"
#include "mozilla/ErrorResult.h"
#include "nsCheapSets.h" #include "nsCheapSets.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsError.h" #include "nsError.h"
@ -27,6 +26,7 @@ class nsISelectControlFrame;
namespace mozilla { namespace mozilla {
class ErrorResult;
class EventChainPostVisitor; class EventChainPostVisitor;
class EventChainPreVisitor; class EventChainPreVisitor;
class SelectContentData; class SelectContentData;

View file

@ -11,10 +11,10 @@
#include "nsISupports.h" #include "nsISupports.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "mozilla/ErrorResult.h"
#include "TimeUnits.h" #include "TimeUnits.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class TimeRanges; class TimeRanges;

View file

@ -13,7 +13,6 @@
#include "nsIFormControl.h" #include "nsIFormControl.h"
#include "nsGkAtoms.h" #include "nsGkAtoms.h"
#include "nsContentCreatorFunctions.h" #include "nsContentCreatorFunctions.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "mozilla/dom/DOMRect.h" #include "mozilla/dom/DOMRect.h"
@ -27,6 +26,7 @@ class nsIURI;
struct nsSize; struct nsSize;
namespace mozilla { namespace mozilla {
class ErrorResult;
class EventChainPostVisitor; class EventChainPostVisitor;
class EventChainPreVisitor; class EventChainPreVisitor;
class EventChainVisitor; class EventChainVisitor;

View file

@ -8,7 +8,6 @@
#define nsGenericHTMLFrameElement_h #define nsGenericHTMLFrameElement_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/nsBrowserElement.h" #include "mozilla/dom/nsBrowserElement.h"
#include "nsFrameLoader.h" #include "nsFrameLoader.h"
@ -17,6 +16,8 @@
#include "nsIMozBrowserFrame.h" #include "nsIMozBrowserFrame.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class BrowserParent; class BrowserParent;
template <typename> template <typename>

View file

@ -12,7 +12,6 @@
#include "js/Array.h" // JS::GetArrayLength #include "js/Array.h" // JS::GetArrayLength
#include "js/RootingAPI.h" #include "js/RootingAPI.h"
#include "jsapi.h" #include "jsapi.h"
#include "mozilla/ErrorResult.h"
#include "nsString.h" #include "nsString.h"
class mozIStorageStatement; class mozIStorageStatement;

View file

@ -16,14 +16,9 @@
#include "mozilla/EventForwards.h" #include "mozilla/EventForwards.h"
#include "mozilla/RefPtr.h" #include "mozilla/RefPtr.h"
#include "mozilla/dom/BrowserBridgeParent.h" #include "mozilla/dom/BrowserBridgeParent.h"
#include "mozilla/dom/File.h"
#include "mozilla/dom/PBrowserParent.h" #include "mozilla/dom/PBrowserParent.h"
#include "mozilla/dom/PContent.h"
#include "mozilla/dom/PFilePickerParent.h"
#include "mozilla/dom/TabContext.h" #include "mozilla/dom/TabContext.h"
#include "mozilla/dom/ipc/IdType.h" #include "mozilla/dom/ipc/IdType.h"
#include "mozilla/gfx/CrossProcessPaint.h"
#include "mozilla/layers/CompositorBridgeParent.h"
#include "mozilla/layout/RemoteLayerTreeOwner.h" #include "mozilla/layout/RemoteLayerTreeOwner.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsIAuthPromptProvider.h" #include "nsIAuthPromptProvider.h"
@ -32,17 +27,24 @@
#include "nsIKeyEventInPluginCallback.h" #include "nsIKeyEventInPluginCallback.h"
#include "nsIRemoteTab.h" #include "nsIRemoteTab.h"
#include "nsIWidget.h" #include "nsIWidget.h"
#include "nsIXULBrowserWindow.h"
#include "nsWeakReference.h" #include "nsWeakReference.h"
class imgIContainer;
class nsCycleCollectionTraversalCallback;
class nsDocShellLoadState;
class nsFrameLoader; class nsFrameLoader;
class nsIBrowser;
class nsIContent; class nsIContent;
class nsIPrincipal; class nsIContentSecurityPolicy;
class nsIURI;
class nsILoadContext;
class nsIDocShell; class nsIDocShell;
class nsILoadContext;
class nsIPrincipal;
class nsIRequest;
class nsIURI;
class nsIWebBrowserPersistDocumentReceiver; class nsIWebBrowserPersistDocumentReceiver;
class nsIWebProgress; class nsIWebProgress;
class nsIXULBrowserWindow;
class nsPIDOMWindowOuter;
namespace mozilla { namespace mozilla {
@ -50,17 +52,12 @@ namespace a11y {
class DocAccessibleParent; class DocAccessibleParent;
} }
namespace layers {
struct TextureFactoryIdentifier;
} // namespace layers
namespace widget { namespace widget {
struct IMENotification; struct IMENotification;
} // namespace widget } // namespace widget
namespace gfx { namespace gfx {
class SourceSurface; class SourceSurface;
class DataSourceSurface;
} // namespace gfx } // namespace gfx
namespace dom { namespace dom {

View file

@ -13,12 +13,13 @@
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/StructuredCloneHolder.h" #include "mozilla/dom/StructuredCloneHolder.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
class nsIGlobalObject; class nsIGlobalObject;
class nsQueryActorChild; class nsQueryActorChild;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class ClonedErrorHolder final { class ClonedErrorHolder final {

View file

@ -8,14 +8,13 @@
#define mozilla_dom_ContentChild_h #define mozilla_dom_ContentChild_h
#include "mozilla/Atomics.h" #include "mozilla/Atomics.h"
#include "mozilla/dom/MediaControlKeySource.h" #include "mozilla/dom/BlobImpl.h"
#include "mozilla/dom/GetFilesHelper.h"
#include "mozilla/dom/PContentChild.h" #include "mozilla/dom/PContentChild.h"
#include "mozilla/dom/ProcessActor.h" #include "mozilla/dom/ProcessActor.h"
#include "mozilla/dom/RemoteType.h" #include "mozilla/dom/RemoteType.h"
#include "mozilla/ipc/InputStreamUtils.h" #include "mozilla/ipc/InputStreamUtils.h"
#include "mozilla/ipc/ProtocolUtils.h" #include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/widget/ThemeChangeKind.h"
#include "mozilla/LookAndFeel.h"
#include "mozilla/StaticPtr.h" #include "mozilla/StaticPtr.h"
#include "mozilla/UniquePtr.h" #include "mozilla/UniquePtr.h"
#include "nsClassHashtable.h" #include "nsClassHashtable.h"
@ -46,10 +45,19 @@ class RemoteSpellcheckEngineChild;
class ChildProfilerController; class ChildProfilerController;
class BenchmarkStorageChild; class BenchmarkStorageChild;
namespace ipc {
class PChildToParentStreamChild;
class PFileDescriptorSetChild;
} // namespace ipc
namespace loader { namespace loader {
class PScriptCacheChild; class PScriptCacheChild;
} }
namespace widget {
enum class ThemeChangeKind : uint8_t;
}
using mozilla::loader::PScriptCacheChild; using mozilla::loader::PScriptCacheChild;
#if !defined(XP_WIN) #if !defined(XP_WIN)
@ -71,8 +79,8 @@ class AlertObserver;
class ConsoleListener; class ConsoleListener;
class ClonedMessageData; class ClonedMessageData;
class BrowserChild; class BrowserChild;
class GetFilesHelperChild;
class TabContext; class TabContext;
enum class CallerType : uint32_t;
class ContentChild final : public PContentChild, class ContentChild final : public PContentChild,
public nsIDOMProcessChild, public nsIDOMProcessChild,

View file

@ -7,19 +7,17 @@
#ifndef mozilla_dom_ProcessActor_h #ifndef mozilla_dom_ProcessActor_h
#define mozilla_dom_ProcessActor_h #define mozilla_dom_ProcessActor_h
#include "nsWrapperCache.h"
#include "nsISupports.h"
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h"
#include "nsRefPtrHashtable.h"
#include "nsString.h"
#include "mozilla/dom/JSActor.h"
#include "mozilla/dom/JSActorManager.h" #include "mozilla/dom/JSActorManager.h"
#include "nsStringFwd.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class JSActorProtocol;
class JSActorService;
// Common base class for Content{Parent, Child} and InProcess{Parent, Child}. // Common base class for Content{Parent, Child} and InProcess{Parent, Child}.
class ProcessActor : public JSActorManager { class ProcessActor : public JSActorManager {
protected: protected:

View file

@ -7,19 +7,15 @@
#ifndef mozilla_dom_ipc_RemoteBrowser_h #ifndef mozilla_dom_ipc_RemoteBrowser_h
#define mozilla_dom_ipc_RemoteBrowser_h #define mozilla_dom_ipc_RemoteBrowser_h
#include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/ipc/IdType.h" #include "mozilla/dom/ipc/IdType.h"
#include "mozilla/dom/EffectsInfo.h"
#include "mozilla/layers/LayersTypes.h" #include "mozilla/layers/LayersTypes.h"
#include "nsILoadContext.h"
#include "nsIPrincipal.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "nsISupportsImpl.h"
#include "nsIURI.h"
#include "nsRect.h" #include "nsRect.h"
#include "Units.h" #include "Units.h"
class nsDocShellLoadState;
class nsFrameLoader; class nsFrameLoader;
class nsILoadContext;
class nsIContent; class nsIContent;
namespace mozilla { namespace mozilla {
@ -28,6 +24,8 @@ namespace dom {
class BrowserHost; class BrowserHost;
class BrowserBridgeHost; class BrowserBridgeHost;
class BrowsingContext;
class EffectsInfo;
class OwnerShowInfo; class OwnerShowInfo;
/** /**

View file

@ -10,7 +10,6 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "nsISupports.h" #include "nsISupports.h"
#include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/BrowsingContext.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsString.h" #include "nsString.h"
#include "mozilla/dom/JSActor.h" #include "mozilla/dom/JSActor.h"
@ -18,6 +17,8 @@
#include "mozilla/dom/WindowGlobalTypes.h" #include "mozilla/dom/WindowGlobalTypes.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
// Common base class for WindowGlobal{Parent, Child}. // Common base class for WindowGlobal{Parent, Child}.

View file

@ -10,7 +10,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "ipc/IPCMessageUtils.h" #include "ipc/IPCMessageUtils.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/PromiseNativeHandler.h" #include "mozilla/dom/PromiseNativeHandler.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsDataHashtable.h" #include "nsDataHashtable.h"
@ -20,6 +19,8 @@ class nsIGlobalObject;
class nsQueryJSActor; class nsQueryJSActor;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
namespace ipc { namespace ipc {

View file

@ -9,11 +9,12 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/dom/JSActor.h" #include "mozilla/dom/JSActor.h"
#include "mozilla/ErrorResult.h"
#include "nsRefPtrHashtable.h" #include "nsRefPtrHashtable.h"
#include "nsString.h" #include "nsString.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace ipc { namespace ipc {
class IProtocol; class IProtocol;
} }

View file

@ -8,7 +8,6 @@
#define mozilla_dom_JSActorService_h #define mozilla_dom_JSActorService_h
#include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/BrowsingContext.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsRefPtrHashtable.h" #include "nsRefPtrHashtable.h"
#include "nsString.h" #include "nsString.h"
@ -19,6 +18,8 @@
#include "mozilla/EventListenerManager.h" #include "mozilla/EventListenerManager.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct ProcessActorOptions; struct ProcessActorOptions;

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ContentParent.h" #include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/JSActor.h" #include "mozilla/dom/JSActor.h"
@ -18,6 +17,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class JSProcessActorParent final : public JSActor { class JSProcessActorParent final : public JSActor {

View file

@ -9,13 +9,14 @@
#include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/JSActorService.h" #include "mozilla/dom/JSActorService.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsString.h" #include "nsString.h"
#include "nsTArray.h" #include "nsTArray.h"
#include "nsIObserver.h" #include "nsIObserver.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct ProcessActorOptions; struct ProcessActorOptions;

View file

@ -7,24 +7,30 @@
#ifndef mozilla_dom_JSWindowActorChild_h #ifndef mozilla_dom_JSWindowActorChild_h
#define mozilla_dom_JSWindowActorChild_h #define mozilla_dom_JSWindowActorChild_h
#include "js/TypeDecls.h" #include "js/RootingAPI.h"
#include "mozilla/Attributes.h" #include "mozilla/AlreadyAddRefed.h"
#include "mozilla/ErrorResult.h" #include "mozilla/RefPtr.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ContentChild.h"
#include "mozilla/dom/JSActor.h" #include "mozilla/dom/JSActor.h"
#include "mozilla/dom/WindowGlobalChild.h"
#include "nsCOMPtr.h"
#include "nsCycleCollectionParticipant.h" #include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h" #include "nsIGlobalObject.h"
#include "nsIDOMProcessChild.h" #include "nsISupports.h"
#include "nsStringFwd.h"
class nsIDocShell;
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
template <typename> template <typename>
struct Nullable; struct Nullable;
class BrowsingContext;
class Document; class Document;
class WindowGlobalChild;
class WindowProxyHolder; class WindowProxyHolder;
} // namespace dom } // namespace dom

View file

@ -9,7 +9,6 @@
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h" #include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/ContentParent.h" #include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/JSActor.h" #include "mozilla/dom/JSActor.h"
@ -17,6 +16,8 @@
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
class WindowGlobalParent; class WindowGlobalParent;

View file

@ -10,7 +10,6 @@
#include "mozilla/dom/BrowsingContext.h" #include "mozilla/dom/BrowsingContext.h"
#include "mozilla/dom/JSActorService.h" #include "mozilla/dom/JSActorService.h"
#include "mozilla/extensions/MatchPattern.h" #include "mozilla/extensions/MatchPattern.h"
#include "mozilla/ErrorResult.h"
#include "nsIURI.h" #include "nsIURI.h"
#include "nsString.h" #include "nsString.h"
#include "nsTArray.h" #include "nsTArray.h"
@ -18,6 +17,8 @@
#include "nsIDOMEventListener.h" #include "nsIDOMEventListener.h"
namespace mozilla { namespace mozilla {
class ErrorResult;
namespace dom { namespace dom {
struct WindowActorOptions; struct WindowActorOptions;

View file

@ -8,7 +8,6 @@
#define mozilla_dom_MediaStreamError_h #define mozilla_dom_MediaStreamError_h
#include "mozilla/Attributes.h" #include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "nsWrapperCache.h" #include "nsWrapperCache.h"
#include "js/TypeDecls.h" #include "js/TypeDecls.h"
#include "nsPIDOMWindow.h" #include "nsPIDOMWindow.h"

Some files were not shown because too many files have changed in this diff Show more