From ced20cc4d76eb368cb29d568836bbcfd1cf9c423 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Wed, 29 Jul 2015 21:56:30 -0400 Subject: [PATCH] Bug 1189090 - Rework the nsISupports implementation in the ScopeCheckingGetCallback and its subclasses; r=nsm --- dom/notification/Notification.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dom/notification/Notification.cpp b/dom/notification/Notification.cpp index 73454a12473..1ade511a9cb 100644 --- a/dom/notification/Notification.cpp +++ b/dom/notification/Notification.cpp @@ -69,8 +69,6 @@ class ScopeCheckingGetCallback : public nsINotificationStorageCallback { const nsString mScope; public: - NS_DECL_ISUPPORTS - explicit ScopeCheckingGetCallback(const nsAString& aScope) : mScope(aScope) {} @@ -121,8 +119,6 @@ protected: nsTArray mStrings; }; -NS_IMPL_ISUPPORTS(ScopeCheckingGetCallback, nsINotificationStorageCallback) - class NotificationStorageCallback final : public ScopeCheckingGetCallback { public: @@ -190,7 +186,9 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(NotificationStorageCallback) NS_IMPL_CYCLE_COLLECTION(NotificationStorageCallback, mWindow, mPromise); NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(NotificationStorageCallback) -NS_INTERFACE_MAP_END_INHERITING(ScopeCheckingGetCallback) + NS_INTERFACE_MAP_ENTRY(nsINotificationStorageCallback) + NS_INTERFACE_MAP_ENTRY(nsISupports) +NS_INTERFACE_MAP_END class NotificationGetRunnable final : public nsRunnable { @@ -1766,7 +1764,7 @@ class WorkerGetCallback final : public ScopeCheckingGetCallback { nsRefPtr mPromiseProxy; public: - NS_DECL_ISUPPORTS_INHERITED + NS_DECL_ISUPPORTS WorkerGetCallback(PromiseWorkerProxy* aProxy, const nsAString& aScope) : ScopeCheckingGetCallback(aScope), mPromiseProxy(aProxy) @@ -1808,7 +1806,7 @@ private: {} }; -NS_IMPL_ISUPPORTS_INHERITED0(WorkerGetCallback, ScopeCheckingGetCallback) +NS_IMPL_ISUPPORTS(WorkerGetCallback, nsINotificationStorageCallback) class WorkerGetRunnable final : public nsRunnable {