Bug 1909502 - Remove IID of GlobalTeardownObserver r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D217464
This commit is contained in:
Kagami Sascha Rosylight 2024-07-24 12:15:15 +00:00
parent 84e10a11f0
commit 42bfbbeac5
3 changed files with 1 additions and 24 deletions

View File

@ -8,15 +8,8 @@
#define DOM_BASE_GLOBALFREEZEOBSERVER_H_
#include "mozilla/Attributes.h"
#include "mozilla/dom/EventTarget.h"
#include "mozilla/RefPtr.h"
#include "nsCycleCollectionParticipant.h"
#include "nsID.h"
#include "nsIGlobalObject.h"
#include "nsIScriptGlobalObject.h"
#include "nsISupports.h"
#include "nsISupportsUtils.h"
#include "nsPIDOMWindow.h"
namespace mozilla {

View File

@ -8,28 +8,16 @@
#define DOM_BASE_GLOBALTEARDOWNOBSERVER_H_
#include "mozilla/Attributes.h"
#include "mozilla/RefPtr.h"
#include "nsID.h"
#include "nsIGlobalObject.h"
#include "nsIScriptGlobalObject.h"
#include "nsISupports.h"
#include "nsISupportsUtils.h"
#define NS_GLOBALTEARDOWNOBSERVER_IID \
{ \
0xc31fddb9, 0xec49, 0x4f24, { \
0x90, 0x16, 0xb5, 0x2b, 0x26, 0x6c, 0xb6, 0x29 \
} \
}
namespace mozilla {
class GlobalTeardownObserver
: public nsISupports,
public LinkedListElement<GlobalTeardownObserver> {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_GLOBALTEARDOWNOBSERVER_IID)
GlobalTeardownObserver();
explicit GlobalTeardownObserver(nsIGlobalObject* aGlobalObject,
bool aHasOrHasHadOwnerWindow = false);
@ -74,9 +62,6 @@ class GlobalTeardownObserver
bool mHasOrHasHadOwnerWindow = false;
};
NS_DEFINE_STATIC_IID_ACCESSOR(GlobalTeardownObserver,
NS_GLOBALTEARDOWNOBSERVER_IID)
} // namespace mozilla
#endif

View File

@ -76,7 +76,6 @@ NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_THIS_END
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMEventTargetHelper)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, EventTarget)
NS_INTERFACE_MAP_ENTRY(GlobalTeardownObserver)
NS_INTERFACE_MAP_ENTRY(dom::EventTarget)
NS_INTERFACE_MAP_ENTRY_CONCRETE(DOMEventTargetHelper)
NS_INTERFACE_MAP_END