mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG-- extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
This commit is contained in:
parent
a7505864a8
commit
95b18d794e
@ -58,6 +58,7 @@
|
||||
#endif
|
||||
|
||||
#include "nsImageFrame.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
#include "nsPluginFrame.h"
|
||||
@ -412,6 +413,7 @@ static StaticAutoPtr<nsTArray<nsCOMPtr<nsIContent> > > sPendingPlugins;
|
||||
static StaticAutoPtr<nsTArray<nsCOMPtr<nsITimer> > > sPluginTimers;
|
||||
|
||||
class PluginTimerCallBack final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
~PluginTimerCallBack() {}
|
||||
|
||||
@ -444,11 +446,17 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) final
|
||||
{
|
||||
aName.AssignLiteral("PluginTimerCallBack");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsIContent> mContent;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(PluginTimerCallBack, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(PluginTimerCallBack, nsITimerCallback, nsINamed)
|
||||
#endif
|
||||
|
||||
already_AddRefed<Accessible>
|
||||
|
@ -6790,18 +6790,12 @@ nsDocShell::RefreshURI(nsIURI* aURI, int32_t aDelay, bool aRepeat,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsRefreshTimer* refreshTimer = new nsRefreshTimer();
|
||||
nsCOMPtr<nsITimerCallback> refreshTimer =
|
||||
new nsRefreshTimer(this, aURI, aDelay, aRepeat, aMetaRefresh);
|
||||
|
||||
uint32_t busyFlags = 0;
|
||||
GetBusyFlags(&busyFlags);
|
||||
|
||||
nsCOMPtr<nsISupports> dataRef = refreshTimer; // Get the ref count to 1
|
||||
|
||||
refreshTimer->mDocShell = this;
|
||||
refreshTimer->mURI = aURI;
|
||||
refreshTimer->mDelay = aDelay;
|
||||
refreshTimer->mRepeat = aRepeat;
|
||||
refreshTimer->mMetaRefresh = aMetaRefresh;
|
||||
|
||||
if (!mRefreshURIList) {
|
||||
mRefreshURIList = nsArray::Create();
|
||||
}
|
||||
@ -13632,8 +13626,10 @@ nsDocShell::SetLayoutHistoryState(nsILayoutHistoryState* aLayoutHistoryState)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsRefreshTimer::nsRefreshTimer()
|
||||
: mDelay(0), mRepeat(false), mMetaRefresh(false)
|
||||
nsRefreshTimer::nsRefreshTimer(nsDocShell* aDocShell, nsIURI* aURI,
|
||||
int32_t aDelay, bool aRepeat, bool aMetaRefresh)
|
||||
: mDocShell(aDocShell), mURI(aURI), mDelay(aDelay), mRepeat(aRepeat),
|
||||
mMetaRefresh(aMetaRefresh)
|
||||
{
|
||||
}
|
||||
|
||||
@ -13647,6 +13643,7 @@ NS_IMPL_RELEASE(nsRefreshTimer)
|
||||
NS_INTERFACE_MAP_BEGIN(nsRefreshTimer)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_END_THREADSAFE
|
||||
|
||||
NS_IMETHODIMP
|
||||
@ -13663,6 +13660,13 @@ nsRefreshTimer::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRefreshTimer::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsRefreshTimer");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsDocShell::InterfaceRequestorProxy::InterfaceRequestorProxy(
|
||||
nsIInterfaceRequestor* aRequestor)
|
||||
{
|
||||
|
@ -44,6 +44,7 @@
|
||||
// Interfaces Needed
|
||||
#include "nsIDocCharset.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIRefreshURI.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIWebPageDescriptor.h"
|
||||
@ -106,12 +107,15 @@ enum ViewMode
|
||||
};
|
||||
|
||||
class nsRefreshTimer : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
nsRefreshTimer();
|
||||
nsRefreshTimer(nsDocShell* aDocShell, nsIURI* aURI, int32_t aDelay,
|
||||
bool aRepeat, bool aMetaRefresh);
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
int32_t GetDelay() { return mDelay ;}
|
||||
|
||||
|
@ -52,6 +52,7 @@
|
||||
#include "nsITimer.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsINamed.h"
|
||||
|
||||
#include "nsISelectionController.h"//for the enums
|
||||
#include "nsAutoCopyListener.h"
|
||||
@ -196,6 +197,7 @@ struct CachedOffsetForFrame {
|
||||
};
|
||||
|
||||
class nsAutoScrollTimer final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
|
||||
@ -280,6 +282,12 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("nsAutoScrollTimer");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual ~nsAutoScrollTimer()
|
||||
{
|
||||
@ -299,7 +307,7 @@ private:
|
||||
uint32_t mDelay;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsAutoScrollTimer, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nsAutoScrollTimer, nsITimerCallback, nsINamed)
|
||||
|
||||
nsresult NS_NewDomSelection(nsISelection **aDomSelection)
|
||||
{
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "mozilla/ThrottledEventQueue.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimeoutHandler.h"
|
||||
#include "mozilla/dom/TabGroup.h"
|
||||
#include "OrderedTimeoutIterator.h"
|
||||
@ -1167,6 +1168,7 @@ TimeoutManager::IsTimeoutTracking(uint32_t aTimeoutId)
|
||||
namespace {
|
||||
|
||||
class ThrottleTimeoutsCallback final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
explicit ThrottleTimeoutsCallback(nsGlobalWindow* aWindow)
|
||||
@ -1178,6 +1180,12 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("ThrottleTimeoutsCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~ThrottleTimeoutsCallback() {}
|
||||
|
||||
@ -1187,7 +1195,7 @@ private:
|
||||
RefPtr<nsGlobalWindow> mWindow;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(ThrottleTimeoutsCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(ThrottleTimeoutsCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
NS_IMETHODIMP
|
||||
ThrottleTimeoutsCallback::Notify(nsITimer* aTimer)
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "WebGLContextLossHandler.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsThreadUtils.h"
|
||||
@ -14,6 +15,7 @@
|
||||
namespace mozilla {
|
||||
|
||||
class WatchdogTimerEvent final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
const WeakPtr<WebGLContextLossHandler> mHandler;
|
||||
|
||||
@ -24,6 +26,12 @@ public:
|
||||
: mHandler(handler)
|
||||
{ }
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("WatchdogTimerEvent");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
virtual ~WatchdogTimerEvent() { }
|
||||
|
||||
@ -35,7 +43,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(WatchdogTimerEvent, nsITimerCallback, nsISupports)
|
||||
NS_IMPL_ISUPPORTS(WatchdogTimerEvent, nsITimerCallback, nsINamed)
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
|
@ -71,6 +71,7 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(FileReader)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(FileReader, DOMEventTargetHelper)
|
||||
@ -684,6 +685,14 @@ FileReader::OnInputStreamReady(nsIAsyncInputStream* aStream)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsINamed
|
||||
NS_IMETHODIMP
|
||||
FileReader::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("FileReader");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
FileReader::OnLoadEnd(nsresult aStatus)
|
||||
{
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "nsIAsyncInputStream.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsString.h"
|
||||
#include "nsWeakReference.h"
|
||||
@ -41,6 +42,7 @@ class FileReader final : public DOMEventTargetHelper,
|
||||
public nsSupportsWeakReference,
|
||||
public nsIInputStreamCallback,
|
||||
public nsITimerCallback,
|
||||
public nsINamed,
|
||||
public workers::WorkerHolder
|
||||
{
|
||||
friend class FileReaderDecreaseBusyCounter;
|
||||
@ -54,6 +56,7 @@ public:
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSIINPUTSTREAMCALLBACK
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(FileReader,
|
||||
DOMEventTargetHelper)
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "nsSocketTransport2.h"
|
||||
#include "nsHashPropertyBag.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISimpleEnumerator.h"
|
||||
#include "nsIProperty.h"
|
||||
#include "nsICertOverrideService.h"
|
||||
@ -159,6 +160,7 @@ class FlyWebMDNSService final
|
||||
, public nsIDNSServiceResolveListener
|
||||
, public nsIDNSRegistrationListener
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
friend class FlyWebService;
|
||||
|
||||
@ -180,6 +182,12 @@ public:
|
||||
explicit FlyWebMDNSService(FlyWebService* aService,
|
||||
const nsACString& aServiceType);
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("FlyWebMDNSService");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
virtual ~FlyWebMDNSService() = default;
|
||||
|
||||
@ -296,7 +304,8 @@ NS_IMPL_ISUPPORTS(FlyWebMDNSService,
|
||||
nsIDNSServiceDiscoveryListener,
|
||||
nsIDNSServiceResolveListener,
|
||||
nsIDNSRegistrationListener,
|
||||
nsITimerCallback)
|
||||
nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
FlyWebMDNSService::FlyWebMDNSService(
|
||||
FlyWebService* aService,
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "nsIGeolocationProvider.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
|
||||
NS_IMPL_ISUPPORTS(MLSFallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(MLSFallback, nsITimerCallback, nsINamed)
|
||||
|
||||
MLSFallback::MLSFallback(uint32_t delay)
|
||||
: mDelayMs(delay)
|
||||
@ -59,6 +59,13 @@ MLSFallback::Notify(nsITimer* aTimer)
|
||||
return CreateMLSFallbackProvider();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MLSFallback::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("MLSFallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
MLSFallback::CreateMLSFallbackProvider()
|
||||
{
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsINamed.h"
|
||||
|
||||
class nsIGeolocationUpdate;
|
||||
class nsIGeolocationProvider;
|
||||
@ -28,10 +29,12 @@ class nsIGeolocationProvider;
|
||||
first when expected to do so.
|
||||
*/
|
||||
class MLSFallback : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
explicit MLSFallback(uint32_t delayMs = 2000);
|
||||
nsresult Startup(nsIGeolocationUpdate* aWatcher);
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "nsDOMClassInfoID.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
@ -96,6 +97,7 @@ class nsGeolocationRequest final
|
||||
virtual ~nsGeolocationRequest();
|
||||
|
||||
class TimerCallbackHolder final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
@ -105,6 +107,12 @@ class nsGeolocationRequest final
|
||||
: mRequest(aRequest)
|
||||
{}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("nsGeolocationRequest::TimerCallbackHolder");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~TimerCallbackHolder() = default;
|
||||
WeakPtr<nsGeolocationRequest> mRequest;
|
||||
@ -637,7 +645,9 @@ nsGeolocationRequest::Shutdown()
|
||||
// nsGeolocationRequest::TimerCallbackHolder
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsGeolocationRequest::TimerCallbackHolder, nsISupports, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nsGeolocationRequest::TimerCallbackHolder,
|
||||
nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGeolocationRequest::TimerCallbackHolder::Notify(nsITimer*)
|
||||
|
@ -1107,7 +1107,8 @@ IndexedDatabaseManager::GetLocale()
|
||||
|
||||
NS_IMPL_ADDREF(IndexedDatabaseManager)
|
||||
NS_IMPL_RELEASE_WITH_DESTROY(IndexedDatabaseManager, Destroy())
|
||||
NS_IMPL_QUERY_INTERFACE(IndexedDatabaseManager, nsIObserver, nsITimerCallback)
|
||||
NS_IMPL_QUERY_INTERFACE(IndexedDatabaseManager, nsIObserver, nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
NS_IMETHODIMP
|
||||
IndexedDatabaseManager::Observe(nsISupports* aSubject, const char* aTopic,
|
||||
@ -1163,6 +1164,13 @@ IndexedDatabaseManager::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
IndexedDatabaseManager::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("IndexedDatabaseManager");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
already_AddRefed<FileManager>
|
||||
FileManagerInfo::GetFileManager(PersistenceType aPersistenceType,
|
||||
const nsAString& aName) const
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "nsClassHashtable.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
class nsIEventTarget;
|
||||
@ -45,6 +46,7 @@ class FileManagerInfo;
|
||||
class IndexedDatabaseManager final
|
||||
: public nsIObserver
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
typedef mozilla::dom::quota::PersistenceType PersistenceType;
|
||||
typedef mozilla::dom::quota::QuotaManager QuotaManager;
|
||||
@ -64,6 +66,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
// Returns a non-owning reference.
|
||||
static IndexedDatabaseManager*
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "nsPrintfCString.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "StaticPtr.h"
|
||||
#include "nsIMozBrowserFrame.h"
|
||||
@ -226,6 +227,7 @@ class ParticularProcessPriorityManager final
|
||||
: public WakeLockObserver
|
||||
, public nsIObserver
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
, public nsSupportsWeakReference
|
||||
{
|
||||
~ParticularProcessPriorityManager();
|
||||
@ -274,6 +276,12 @@ public:
|
||||
|
||||
void ShutDown();
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("ParticularProcessPriorityManager");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
static uint32_t sBackgroundPerceivableGracePeriodMS;
|
||||
static uint32_t sBackgroundGracePeriodMS;
|
||||
@ -561,7 +569,8 @@ ProcessPriorityManagerImpl::TabActivityChanged(TabParent* aTabParent,
|
||||
NS_IMPL_ISUPPORTS(ParticularProcessPriorityManager,
|
||||
nsIObserver,
|
||||
nsITimerCallback,
|
||||
nsISupportsWeakReference);
|
||||
nsISupportsWeakReference,
|
||||
nsINamed);
|
||||
|
||||
ParticularProcessPriorityManager::ParticularProcessPriorityManager(
|
||||
ContentParent* aContentParent)
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "mozilla/MediaManager.h"
|
||||
#include "MediaTrackConstraints.h"
|
||||
#include "nsIEventTarget.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
@ -20,7 +21,7 @@
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class FuzzTimerCallBack final : public nsITimerCallback
|
||||
class FuzzTimerCallBack final : public nsITimerCallback, public nsINamed
|
||||
{
|
||||
~FuzzTimerCallBack() {}
|
||||
|
||||
@ -35,11 +36,17 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("FuzzTimerCallBack");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
nsCOMPtr<MediaDevices> mMediaDevices;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(FuzzTimerCallBack, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(FuzzTimerCallBack, nsITimerCallback, nsINamed)
|
||||
|
||||
class MediaDevices::GumResolver : public nsIDOMGetUserMediaSuccessCallback
|
||||
{
|
||||
|
@ -1532,6 +1532,12 @@ MediaStreamGraphImpl::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MediaStreamGraphImpl::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("MediaStreamGraphImpl");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* static */ StaticRefPtr<nsIAsyncShutdownBlocker> gMediaStreamGraphShutdownBlocker;
|
||||
|
||||
@ -3624,7 +3630,8 @@ MediaStreamGraph::DestroyNonRealtimeInstance(MediaStreamGraph* aGraph)
|
||||
graph->ForceShutDown(nullptr);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(MediaStreamGraphImpl, nsIMemoryReporter, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(MediaStreamGraphImpl, nsIMemoryReporter, nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
NS_IMETHODIMP
|
||||
MediaStreamGraphImpl::CollectReports(nsIHandleReportCallback* aHandleReport,
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "mozilla/Monitor.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "nsIMemoryReporter.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIThread.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsIAsyncShutdown.h"
|
||||
@ -99,12 +100,14 @@ public:
|
||||
*/
|
||||
class MediaStreamGraphImpl : public MediaStreamGraph,
|
||||
public nsIMemoryReporter,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIMEMORYREPORTER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
/**
|
||||
* Use aGraphDriverRequested with SYSTEM_THREAD_DRIVER or AUDIO_THREAD_DRIVER
|
||||
|
@ -341,6 +341,13 @@ SimpleTimer::Notify(nsITimer *timer) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
SimpleTimer::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("SimpleTimer");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
SimpleTimer::Init(nsIRunnable* aTask, uint32_t aTimeoutMs, nsIEventTarget* aTarget)
|
||||
{
|
||||
@ -378,7 +385,7 @@ SimpleTimer::Init(nsIRunnable* aTask, uint32_t aTimeoutMs, nsIEventTarget* aTarg
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(SimpleTimer, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(SimpleTimer, nsITimerCallback, nsINamed)
|
||||
|
||||
already_AddRefed<SimpleTimer>
|
||||
SimpleTimer::Create(nsIRunnable* aTask, uint32_t aTimeoutMs, nsIEventTarget* aTarget)
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIThread.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsRect.h"
|
||||
@ -284,10 +285,11 @@ RefPtr<GenericPromise> InvokeUntil(Work aWork, Condition aCondition) {
|
||||
}
|
||||
|
||||
// Simple timer to run a runnable after a timeout.
|
||||
class SimpleTimer : public nsITimerCallback
|
||||
class SimpleTimer : public nsITimerCallback, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
// Create a new timer to run aTask after aTimeoutMs milliseconds
|
||||
// on thread aTarget. If aTarget is null, task is run on the main thread.
|
||||
|
@ -32,7 +32,7 @@ namespace mozilla {
|
||||
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
NS_IMPL_ISUPPORTS(MediaEngineDefaultVideoSource, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(MediaEngineDefaultVideoSource, nsITimerCallback, nsINamed)
|
||||
/**
|
||||
* Default video source.
|
||||
*/
|
||||
@ -286,6 +286,13 @@ MediaEngineDefaultVideoSource::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MediaEngineDefaultVideoSource::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("MediaEngineDefaultVideoSource");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
MediaEngineDefaultVideoSource::NotifyPull(MediaStreamGraph* aGraph,
|
||||
SourceMediaStream *aSource,
|
||||
|
@ -5,6 +5,7 @@
|
||||
#ifndef MEDIAENGINEDEFAULT_H_
|
||||
#define MEDIAENGINEDEFAULT_H_
|
||||
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
#include "nsAutoPtr.h"
|
||||
@ -36,6 +37,7 @@ class MediaEngineDefault;
|
||||
* The default implementation of the MediaEngine interface.
|
||||
*/
|
||||
class MediaEngineDefaultVideoSource : public nsITimerCallback,
|
||||
public nsINamed,
|
||||
#ifdef MOZ_WEBRTC
|
||||
public MediaEngineCameraVideoSource
|
||||
#else
|
||||
@ -87,6 +89,7 @@ public:
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
protected:
|
||||
~MediaEngineDefaultVideoSource();
|
||||
|
@ -36,7 +36,7 @@ nsNPAPIStreamWrapper::~nsNPAPIStreamWrapper()
|
||||
|
||||
// nsNPAPIPluginStreamListener Methods
|
||||
NS_IMPL_ISUPPORTS(nsNPAPIPluginStreamListener,
|
||||
nsITimerCallback, nsIHTTPHeaderListener)
|
||||
nsITimerCallback, nsIHTTPHeaderListener, nsINamed)
|
||||
|
||||
nsNPAPIPluginStreamListener::nsNPAPIPluginStreamListener(nsNPAPIPluginInstance* inst,
|
||||
void* notifyData,
|
||||
@ -773,6 +773,13 @@ nsNPAPIPluginStreamListener::Notify(nsITimer *aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsNPAPIPluginStreamListener::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsNPAPIPluginStreamListener");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsNPAPIPluginStreamListener::StatusLine(const char* line)
|
||||
{
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsIHTTPHeaderListener.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIRequest.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsCOMArray.h"
|
||||
@ -41,7 +42,8 @@ protected:
|
||||
};
|
||||
|
||||
class nsNPAPIPluginStreamListener : public nsITimerCallback,
|
||||
public nsIHTTPHeaderListener
|
||||
public nsIHTTPHeaderListener,
|
||||
public nsINamed
|
||||
{
|
||||
private:
|
||||
typedef mozilla::PluginLibrary PluginLibrary;
|
||||
@ -50,6 +52,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSIHTTPHEADERLISTENER
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
nsNPAPIPluginStreamListener(nsNPAPIPluginInstance* inst, void* notifyData,
|
||||
const char* aURL);
|
||||
|
@ -320,7 +320,8 @@ NS_IMPL_ISUPPORTS(nsPluginHost,
|
||||
nsIPluginHost,
|
||||
nsIObserver,
|
||||
nsITimerCallback,
|
||||
nsISupportsWeakReference)
|
||||
nsISupportsWeakReference,
|
||||
nsINamed)
|
||||
|
||||
already_AddRefed<nsPluginHost>
|
||||
nsPluginHost::GetInst()
|
||||
@ -3734,6 +3735,13 @@ NS_IMETHODIMP nsPluginHost::Notify(nsITimer* timer)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPluginHost::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsPluginHost");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Re-enable any top level browser windows that were disabled by modal dialogs
|
||||
// displayed by the crashed plugin.
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "nsWeakReference.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsTObserverArray.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsPluginTags.h"
|
||||
@ -75,7 +76,8 @@ public:
|
||||
class nsPluginHost final : public nsIPluginHost,
|
||||
public nsIObserver,
|
||||
public nsITimerCallback,
|
||||
public nsSupportsWeakReference
|
||||
public nsSupportsWeakReference,
|
||||
public nsINamed
|
||||
{
|
||||
friend class nsPluginTag;
|
||||
friend class nsFakePluginTag;
|
||||
@ -90,6 +92,7 @@ public:
|
||||
NS_DECL_NSIPLUGINHOST
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
nsresult LoadPlugins();
|
||||
nsresult UnloadPlugins();
|
||||
|
@ -1155,7 +1155,8 @@ PresentationControllingInfo::NotifyData(const nsACString& aData, bool aIsBinary)
|
||||
|
||||
NS_IMPL_ISUPPORTS_INHERITED(PresentationPresentingInfo,
|
||||
PresentationSessionInfo,
|
||||
nsITimerCallback)
|
||||
nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
nsresult
|
||||
PresentationPresentingInfo::Init(nsIPresentationControlChannel* aControlChannel)
|
||||
@ -1542,6 +1543,14 @@ PresentationPresentingInfo::Notify(nsITimer* aTimer)
|
||||
return ReplyError(NS_ERROR_DOM_TIMEOUT_ERR);
|
||||
}
|
||||
|
||||
// nsITimerCallback
|
||||
NS_IMETHODIMP
|
||||
PresentationPresentingInfo::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("PresentationPresentingInfo");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// PromiseNativeHandler
|
||||
void
|
||||
PresentationPresentingInfo::ResolvedCallback(JSContext* aCx,
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsINetworkInfoService.h"
|
||||
#include "nsIPresentationControlChannel.h"
|
||||
#include "nsIPresentationDevice.h"
|
||||
@ -233,11 +234,13 @@ private:
|
||||
class PresentationPresentingInfo final : public PresentationSessionInfo
|
||||
, public PromiseNativeHandler
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_NSIPRESENTATIONCONTROLCHANNELLISTENER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
PresentationPresentingInfo(const nsAString& aUrl,
|
||||
const nsAString& aSessionId,
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsIScriptError.h"
|
||||
@ -4174,6 +4175,7 @@ ServiceWorkerManager::RemoveNavigationInterception(const nsACString& aScope,
|
||||
}
|
||||
|
||||
class UpdateTimerCallback final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
nsCOMPtr<nsIPrincipal> mPrincipal;
|
||||
const nsCString mScope;
|
||||
@ -4207,10 +4209,17 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("UpdateTimerCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(UpdateTimerCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(UpdateTimerCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
bool
|
||||
ServiceWorkerManager::MayHaveActiveServiceWorkerInstance(ContentParent* aContent,
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
#include "nsIHttpHeaderVisitor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsIPushErrorReporter.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
@ -1053,6 +1054,7 @@ namespace {
|
||||
|
||||
class AllowWindowInteractionHandler final : public ExtendableEventCallback
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
, public WorkerHolder
|
||||
{
|
||||
nsCOMPtr<nsITimer> mTimer;
|
||||
@ -1137,6 +1139,14 @@ class AllowWindowInteractionHandler final : public ExtendableEventCallback
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsINamed virtual methods
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("AllowWindowInteractionHandler");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// WorkerHolder virtual methods
|
||||
bool
|
||||
Notify(Status aStatus) override
|
||||
@ -1164,7 +1174,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(AllowWindowInteractionHandler, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(AllowWindowInteractionHandler, nsITimerCallback, nsINamed)
|
||||
|
||||
class SendNotificationEventRunnable final : public ExtendableEventWorkerRunnable
|
||||
{
|
||||
@ -2019,6 +2029,7 @@ ServiceWorkerPrivate::IsIdle() const
|
||||
namespace {
|
||||
|
||||
class ServiceWorkerPrivateTimerCallback final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
typedef void (ServiceWorkerPrivate::*Method)(nsITimer*);
|
||||
@ -2038,6 +2049,13 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("ServiceWorkerPrivateTimerCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~ServiceWorkerPrivateTimerCallback() = default;
|
||||
|
||||
@ -2047,7 +2065,7 @@ private:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(ServiceWorkerPrivateTimerCallback, nsITimerCallback);
|
||||
NS_IMPL_ISUPPORTS(ServiceWorkerPrivateTimerCallback, nsITimerCallback, nsINamed);
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsIMemoryReporter.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
#include "nsIScriptError.h"
|
||||
@ -1212,7 +1213,8 @@ private:
|
||||
};
|
||||
|
||||
class TimerRunnable final : public WorkerRunnable,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
@ -1248,9 +1250,17 @@ private:
|
||||
{
|
||||
return Run();
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("TimerRunnable");
|
||||
return NS_OK;
|
||||
}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS_INHERITED(TimerRunnable, WorkerRunnable, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS_INHERITED(TimerRunnable, WorkerRunnable, nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
class DebuggerImmediateRunnable : public WorkerRunnable
|
||||
{
|
||||
|
@ -3963,6 +3963,7 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsXMLHttpRequestXPCOMifier)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIProgressEventSink)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIStreamListener)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
|
@ -878,7 +878,8 @@ class nsXMLHttpRequestXPCOMifier final : public nsIStreamListener,
|
||||
public nsIAsyncVerifyRedirectCallback,
|
||||
public nsIProgressEventSink,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(nsXMLHttpRequestXPCOMifier,
|
||||
@ -903,6 +904,7 @@ public:
|
||||
NS_FORWARD_NSIASYNCVERIFYREDIRECTCALLBACK(mXHR->)
|
||||
NS_FORWARD_NSIPROGRESSEVENTSINK(mXHR->)
|
||||
NS_FORWARD_NSITIMERCALLBACK(mXHR->)
|
||||
NS_FORWARD_NSINAMED(mXHR->)
|
||||
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
|
||||
|
@ -40,7 +40,8 @@ nsComposerCommandsUpdater::~nsComposerCommandsUpdater()
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsComposerCommandsUpdater, nsISelectionListener,
|
||||
nsIDocumentStateListener, nsITransactionListener, nsITimerCallback)
|
||||
nsIDocumentStateListener, nsITransactionListener,
|
||||
nsITimerCallback, nsINamed)
|
||||
|
||||
#if 0
|
||||
#pragma mark -
|
||||
@ -355,6 +356,13 @@ nsComposerCommandsUpdater::GetCommandUpdater()
|
||||
return updater.forget();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsComposerCommandsUpdater::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsComposerCommandsUpdater");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#if 0
|
||||
#pragma mark -
|
||||
#endif
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "nsCOMPtr.h" // for already_AddRefed, nsCOMPtr
|
||||
#include "nsIDocumentStateListener.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISelectionListener.h"
|
||||
#include "nsISupportsImpl.h" // for NS_DECL_ISUPPORTS
|
||||
#include "nsITimer.h" // for NS_DECL_NSITIMERCALLBACK, etc
|
||||
@ -27,7 +28,8 @@ class nsPICommandUpdater;
|
||||
class nsComposerCommandsUpdater : public nsISelectionListener,
|
||||
public nsIDocumentStateListener,
|
||||
public nsITransactionListener,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
|
||||
@ -45,6 +47,9 @@ public:
|
||||
// nsITimerCallback interfaces
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
|
||||
// nsINamed
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
/** nsITransactionListener interfaces
|
||||
*/
|
||||
NS_IMETHOD WillDo(nsITransactionManager *aManager, nsITransaction *aTransaction, bool *aInterrupt) override;
|
||||
|
@ -104,6 +104,7 @@ NS_IMPL_CYCLE_COLLECTION(TextEditRules, mBogusNode, mCachedSelectionNode)
|
||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TextEditRules)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIEditRules)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIEditRules)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
@ -1589,6 +1590,13 @@ TextEditRules::Notify(nsITimer* aTimer)
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TextEditRules::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("TextEditRules");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
TextEditRules::HideLastPWInput()
|
||||
{
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsIEditRules.h"
|
||||
#include "nsIEditor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsString.h"
|
||||
@ -40,6 +41,7 @@ class Selection;
|
||||
*/
|
||||
class TextEditRules : public nsIEditRules
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
typedef dom::Element Element;
|
||||
@ -68,6 +70,9 @@ public:
|
||||
NS_IMETHOD_(bool) DocumentIsEmpty() override;
|
||||
NS_IMETHOD DocumentModified() override;
|
||||
|
||||
// nsINamed methods
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
protected:
|
||||
virtual ~TextEditRules();
|
||||
|
||||
|
@ -36,7 +36,9 @@ extern nsresult EvaluateAdminConfigScript(const char *js_buffer, size_t length,
|
||||
|
||||
// nsISupports Implementation
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsAutoConfig, nsIAutoConfig, nsITimerCallback, nsIStreamListener, nsIObserver, nsIRequestObserver, nsISupportsWeakReference)
|
||||
NS_IMPL_ISUPPORTS(nsAutoConfig, nsIAutoConfig, nsITimerCallback, nsIStreamListener,
|
||||
nsIObserver, nsIRequestObserver, nsISupportsWeakReference,
|
||||
nsINamed)
|
||||
|
||||
nsAutoConfig::nsAutoConfig()
|
||||
{
|
||||
@ -172,6 +174,13 @@ NS_IMETHODIMP nsAutoConfig::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAutoConfig::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsAutoConfig");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* Observe() is called twice: once at the instantiation time and other
|
||||
after the profile is set. It doesn't do anything but return NS_OK during the
|
||||
creation time. Second time it calls downloadAutoConfig().
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "nsIAutoConfig.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIPrefService.h"
|
||||
@ -20,7 +21,8 @@ class nsAutoConfig : public nsIAutoConfig,
|
||||
public nsITimerCallback,
|
||||
public nsIStreamListener,
|
||||
public nsIObserver,
|
||||
public nsSupportsWeakReference
|
||||
public nsSupportsWeakReference,
|
||||
public nsINamed
|
||||
|
||||
{
|
||||
public:
|
||||
@ -31,6 +33,7 @@ class nsAutoConfig : public nsIAutoConfig,
|
||||
NS_DECL_NSISTREAMLISTENER
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
nsAutoConfig();
|
||||
nsresult Init();
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "nsDocShell.h"
|
||||
#include "nsIDOMMouseEvent.h"
|
||||
#include "nsIDOMWindowUtils.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include "nsIScrollbarMediator.h"
|
||||
#include "nsITimer.h"
|
||||
@ -124,6 +125,7 @@ APZEventState::~APZEventState()
|
||||
{}
|
||||
|
||||
class DelayedFireSingleTapEvent final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
@ -154,6 +156,13 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("DelayedFireSingleTapEvent");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void ClearTimer() {
|
||||
mTimer = nullptr;
|
||||
}
|
||||
@ -171,7 +180,7 @@ private:
|
||||
RefPtr<nsIContent> mTouchRollup;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(DelayedFireSingleTapEvent, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(DelayedFireSingleTapEvent, nsITimerCallback, nsINamed)
|
||||
|
||||
void
|
||||
APZEventState::ProcessSingleTap(const CSSPoint& aPoint,
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsIEventTarget.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "runnable_utils.h"
|
||||
@ -87,7 +88,8 @@ protected:
|
||||
};
|
||||
|
||||
class nrappkitTimerCallback : public nrappkitCallback,
|
||||
public nsITimerCallback {
|
||||
public nsITimerCallback,
|
||||
public nsINamed {
|
||||
public:
|
||||
// We're going to release ourself in the callback, so we need to be threadsafe
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
@ -110,12 +112,18 @@ class nrappkitTimerCallback : public nrappkitCallback,
|
||||
Release(); // Will cause deletion of this object.
|
||||
}
|
||||
|
||||
NS_IMETHOD
|
||||
GetName(nsACString& aName) override {
|
||||
aName.AssignLiteral("nrappkitTimerCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsITimer> timer_;
|
||||
virtual ~nrappkitTimerCallback() {}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(nrappkitTimerCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nrappkitTimerCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
NS_IMETHODIMP nrappkitTimerCallback::Notify(nsITimer *timer) {
|
||||
r_log(LOG_GENERIC, LOG_DEBUG, "Timer callback fired (set in %s:%d)",
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsISocketTransportService.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#include "transportflow.h"
|
||||
#include "transportlayerloopback.h"
|
||||
@ -118,7 +119,7 @@ void TransportLayerLoopback::DeliverPackets() {
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(TransportLayerLoopback::Deliverer, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(TransportLayerLoopback::Deliverer, nsITimerCallback, nsINamed)
|
||||
|
||||
NS_IMETHODIMP TransportLayerLoopback::Deliverer::Notify(nsITimer *timer) {
|
||||
if (!layer_)
|
||||
@ -128,4 +129,10 @@ NS_IMETHODIMP TransportLayerLoopback::Deliverer::Notify(nsITimer *timer) {
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP TransportLayerLoopback::Deliverer::GetName(nsACString& aName) {
|
||||
aName.AssignLiteral("TransportLayerLoopback::Deliverer");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
} // close namespace
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
|
||||
@ -118,7 +119,8 @@ class TransportLayerLoopback : public TransportLayer {
|
||||
|
||||
// A timer to deliver packets if some are available
|
||||
// Fires every 100 ms
|
||||
class Deliverer : public nsITimerCallback {
|
||||
class Deliverer : public nsITimerCallback
|
||||
, public nsINamed {
|
||||
public:
|
||||
explicit Deliverer(TransportLayerLoopback *layer) :
|
||||
layer_(layer) {}
|
||||
@ -128,6 +130,7 @@ class TransportLayerLoopback : public TransportLayer {
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
private:
|
||||
virtual ~Deliverer() {
|
||||
|
@ -25,7 +25,7 @@
|
||||
using namespace mozilla;
|
||||
using mozilla::dom::Link;
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsAndroidHistory, IHistory, nsIRunnable, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nsAndroidHistory, IHistory, nsIRunnable, nsITimerCallback, nsINamed)
|
||||
|
||||
nsAndroidHistory* nsAndroidHistory::sHistory = nullptr;
|
||||
|
||||
@ -194,6 +194,13 @@ nsAndroidHistory::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAndroidHistory::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsAndroidHistory");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsAndroidHistory::SaveVisitURI(nsIURI* aURI) {
|
||||
// Add the URI to our cache so we can take a fast path later
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "IHistory.h"
|
||||
#include "nsDataHashtable.h"
|
||||
#include "nsTPriorityQueue.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsITimer.h"
|
||||
@ -25,13 +26,15 @@
|
||||
|
||||
class nsAndroidHistory final : public mozilla::IHistory,
|
||||
public nsIRunnable,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_IHISTORY
|
||||
NS_DECL_NSIRUNNABLE
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
/**
|
||||
* Obtains a pointer that has had AddRef called on it. Used by the service
|
||||
|
@ -26,7 +26,7 @@ static LazyLogModule gCaptivePortalLog("CaptivePortalService");
|
||||
|
||||
NS_IMPL_ISUPPORTS(CaptivePortalService, nsICaptivePortalService, nsIObserver,
|
||||
nsISupportsWeakReference, nsITimerCallback,
|
||||
nsICaptivePortalCallback)
|
||||
nsICaptivePortalCallback, nsINamed)
|
||||
|
||||
CaptivePortalService::CaptivePortalService()
|
||||
: mState(UNKNOWN)
|
||||
@ -278,6 +278,17 @@ CaptivePortalService::Notify(nsITimer *aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// CaptivePortalService::nsINamed
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
NS_IMETHODIMP
|
||||
CaptivePortalService::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("CaptivePortalService");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// CaptivePortalService::nsIObserver
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "nsICaptivePortalService.h"
|
||||
#include "nsICaptivePortalDetector.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "nsITimer.h"
|
||||
@ -22,6 +23,7 @@ class CaptivePortalService
|
||||
, public nsSupportsWeakReference
|
||||
, public nsITimerCallback
|
||||
, public nsICaptivePortalCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
@ -29,6 +31,7 @@ public:
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSICAPTIVEPORTALCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
CaptivePortalService();
|
||||
nsresult Initialize();
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "nsIDNSService.h"
|
||||
#include "nsIDNSRecord.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISocketTransport.h"
|
||||
#include "nsIThread.h"
|
||||
#include "nsProxyRelease.h"
|
||||
@ -130,6 +131,7 @@ NS_IMPL_ISUPPORTS0(DnsData)
|
||||
class ConnectionData
|
||||
: public nsITransportEventSink
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
virtual ~ConnectionData()
|
||||
{
|
||||
@ -143,6 +145,13 @@ public:
|
||||
NS_DECL_NSITRANSPORTEVENTSINK
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("net::ConnectionData");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
void StartTimer(uint32_t aTimeout);
|
||||
void StopTimer();
|
||||
|
||||
@ -167,7 +176,7 @@ public:
|
||||
nsString mStatus;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(ConnectionData, nsITransportEventSink, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(ConnectionData, nsITransportEventSink, nsITimerCallback, nsINamed)
|
||||
|
||||
|
||||
class RcwnData
|
||||
|
@ -75,7 +75,7 @@ TokenBucketCancelable::Fire()
|
||||
// EventTokenBucket
|
||||
////////////////////////////////////////////
|
||||
|
||||
NS_IMPL_ISUPPORTS(EventTokenBucket, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(EventTokenBucket, nsITimerCallback, nsINamed)
|
||||
|
||||
// by default 1hz with no burst
|
||||
EventTokenBucket::EventTokenBucket(uint32_t eventsPerSecond,
|
||||
@ -358,6 +358,13 @@ EventTokenBucket::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
EventTokenBucket::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("EventTokenBucket");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
EventTokenBucket::UpdateCredits()
|
||||
{
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "ARefBase.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsDeque.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
#include "mozilla/TimeStamp.h"
|
||||
@ -68,11 +69,14 @@ public:
|
||||
|
||||
class TokenBucketCancelable;
|
||||
|
||||
class EventTokenBucket : public nsITimerCallback, public ARefBase
|
||||
class EventTokenBucket : public nsITimerCallback
|
||||
, public nsINamed
|
||||
, public ARefBase
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
// This should be constructed on the main thread
|
||||
EventTokenBucket(uint32_t eventsPerSecond, uint32_t burstSize);
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "nsIDNSListener.h"
|
||||
#include "nsIDNSRecord.h"
|
||||
#include "nsIDNSService.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIURLParser.h"
|
||||
@ -276,6 +277,7 @@ static void SetRunning(ProxyAutoConfig *arg)
|
||||
// The PACResolver is used for dnsResolve()
|
||||
class PACResolver final : public nsIDNSListener
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
@ -311,6 +313,13 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsINamed
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("PACResolver");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult mStatus;
|
||||
nsCOMPtr<nsICancelable> mRequest;
|
||||
nsCOMPtr<nsIDNSRecord> mResponse;
|
||||
@ -320,7 +329,7 @@ public:
|
||||
private:
|
||||
~PACResolver() {}
|
||||
};
|
||||
NS_IMPL_ISUPPORTS(PACResolver, nsIDNSListener, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(PACResolver, nsIDNSListener, nsITimerCallback, nsINamed)
|
||||
|
||||
static
|
||||
void PACLogToConsole(nsString &aMessage)
|
||||
|
@ -235,7 +235,7 @@ ThrottleInputStream::AllowInput()
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
NS_IMPL_ISUPPORTS(ThrottleQueue, nsIInputChannelThrottleQueue, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(ThrottleQueue, nsIInputChannelThrottleQueue, nsITimerCallback, nsINamed)
|
||||
|
||||
ThrottleQueue::ThrottleQueue()
|
||||
: mMeanBytesPerSecond(0)
|
||||
@ -355,6 +355,13 @@ ThrottleQueue::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
ThrottleQueue::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("net::ThrottleQueue");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
ThrottleQueue::QueueStream(ThrottleInputStream* aStream)
|
||||
{
|
||||
|
@ -8,6 +8,7 @@
|
||||
#define mozilla_net_ThrottleQueue_h
|
||||
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIThrottledInputChannel.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
@ -28,6 +29,7 @@ class ThrottleInputStream;
|
||||
class ThrottleQueue final
|
||||
: public nsIInputChannelThrottleQueue
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
|
||||
@ -36,6 +38,7 @@ public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIINPUTCHANNELTHROTTLEQUEUE
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
void QueueStream(ThrottleInputStream* aStream);
|
||||
void DequeueStream(ThrottleInputStream* aStream);
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#ifdef MOZ_USE_WIFI_TICKLER
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIPrefBranch.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
@ -196,7 +197,7 @@ void Tickler::StopTickler()
|
||||
mActive = false;
|
||||
}
|
||||
|
||||
class TicklerTimer final : public nsITimerCallback
|
||||
class TicklerTimer final : public nsITimerCallback, public nsINamed
|
||||
{
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
@ -206,6 +207,13 @@ class TicklerTimer final : public nsITimerCallback
|
||||
mTickler = do_GetWeakReference(aTickler);
|
||||
}
|
||||
|
||||
// nsINamed
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("TicklerTimer");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~TicklerTimer() {}
|
||||
|
||||
@ -237,7 +245,7 @@ void Tickler::SetIPV4Port(uint16_t port)
|
||||
mAddr.inet.port = port;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(TicklerTimer, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(TicklerTimer, nsITimerCallback, nsINamed)
|
||||
|
||||
NS_IMETHODIMP TicklerTimer::Notify(nsITimer *timer)
|
||||
{
|
||||
|
10
netwerk/cache/nsCacheService.cpp
vendored
10
netwerk/cache/nsCacheService.cpp
vendored
@ -23,7 +23,7 @@
|
||||
#include "nsDiskCacheDeviceSQL.h"
|
||||
#include "nsCacheUtils.h"
|
||||
#include "../cache2/CacheObserver.h"
|
||||
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "nsIPrefBranch.h"
|
||||
@ -203,6 +203,7 @@ private:
|
||||
NS_IMPL_ISUPPORTS(nsCacheProfilePrefObserver, nsIObserver)
|
||||
|
||||
class nsSetDiskSmartSizeCallback final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
~nsSetDiskSmartSizeCallback() {}
|
||||
|
||||
@ -217,9 +218,14 @@ public:
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override {
|
||||
aName.AssignLiteral("nsSetDiskSmartSizeCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsSetDiskSmartSizeCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nsSetDiskSmartSizeCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
// Runnable sent to main thread after the cache IO thread calculates available
|
||||
// disk space, so that there is no race in setting mDiskCacheCapacity.
|
||||
|
@ -1192,7 +1192,7 @@ public:
|
||||
|
||||
StaticRefPtr<CacheFileIOManager> CacheFileIOManager::gInstance;
|
||||
|
||||
NS_IMPL_ISUPPORTS(CacheFileIOManager, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(CacheFileIOManager, nsITimerCallback, nsINamed)
|
||||
|
||||
CacheFileIOManager::CacheFileIOManager()
|
||||
: mShuttingDown(false)
|
||||
@ -1626,6 +1626,13 @@ CacheFileIOManager::Notify(nsITimer * aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
CacheFileIOManager::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("CacheFileIOManager");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// static
|
||||
nsresult
|
||||
CacheFileIOManager::OpenFile(const nsACString &aKey,
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "CacheStorageService.h"
|
||||
#include "CacheHashUtils.h"
|
||||
#include "nsIEventTarget.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "mozilla/Atomics.h"
|
||||
@ -259,10 +260,12 @@ NS_DEFINE_STATIC_IID_ACCESSOR(CacheFileIOListener, CACHEFILEIOLISTENER_IID)
|
||||
|
||||
|
||||
class CacheFileIOManager : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
enum {
|
||||
OPEN = 0U,
|
||||
|
@ -108,7 +108,8 @@ NS_IMPL_ISUPPORTS(CacheStorageService,
|
||||
nsICacheStorageService,
|
||||
nsIMemoryReporter,
|
||||
nsITimerCallback,
|
||||
nsICacheTesting)
|
||||
nsICacheTesting,
|
||||
nsINamed)
|
||||
|
||||
CacheStorageService* CacheStorageService::sSelf = nullptr;
|
||||
|
||||
@ -1337,6 +1338,13 @@ CacheStorageService::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
CacheStorageService::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("CacheStorageService");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
CacheStorageService::PurgeOverMemoryLimit()
|
||||
{
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "nsICacheStorageService.h"
|
||||
#include "nsIMemoryReporter.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsICacheTesting.h"
|
||||
|
||||
@ -68,6 +69,7 @@ class CacheStorageService final : public nsICacheStorageService
|
||||
, public nsIMemoryReporter
|
||||
, public nsITimerCallback
|
||||
, public nsICacheTesting
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
@ -75,6 +77,7 @@ public:
|
||||
NS_DECL_NSIMEMORYREPORTER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSICACHETESTING
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
CacheStorageService();
|
||||
|
||||
|
@ -29,7 +29,7 @@ using namespace mozilla;
|
||||
|
||||
NS_IMPL_ISUPPORTS(HSTSPrimingListener, nsIStreamListener,
|
||||
nsIRequestObserver, nsIInterfaceRequestor,
|
||||
nsITimerCallback)
|
||||
nsITimerCallback, nsINamed)
|
||||
|
||||
// default to 2000ms, same as the preference
|
||||
// security.mixed_content.hsts_priming_request_timeout
|
||||
@ -213,6 +213,14 @@ HSTSPrimingListener::Notify(nsITimer* timer)
|
||||
return NS_OK; // unused
|
||||
}
|
||||
|
||||
/** nsINamed **/
|
||||
NS_IMETHODIMP
|
||||
HSTSPrimingListener::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("HSTSPrimingListener");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// static
|
||||
nsresult
|
||||
HSTSPrimingListener::StartHSTSPriming(nsIChannel* aRequestChannel,
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIChannelEventSink.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIThreadRetargetableStreamListener.h"
|
||||
#include "nsITimer.h"
|
||||
@ -90,7 +91,8 @@ enum HSTSPrimingResult {
|
||||
// nsIStreamListener in order to receive events from AsyncOpen2
|
||||
class HSTSPrimingListener final : public nsIStreamListener,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
explicit HSTSPrimingListener(nsIHstsPrimingCallback* aCallback);
|
||||
@ -100,6 +102,7 @@ public:
|
||||
NS_DECL_NSIREQUESTOBSERVER
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
private:
|
||||
~HSTSPrimingListener() {}
|
||||
|
@ -447,6 +447,13 @@ TLSFilterTransaction::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TLSFilterTransaction::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("TLSFilterTransaction");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
TLSFilterTransaction::StartTimerCallback()
|
||||
{
|
||||
@ -1623,7 +1630,7 @@ SocketTransportShim::SetFastOpenCallback(TCPFastOpen *aFastOpen)
|
||||
return mWrapped->SetFastOpenCallback(aFastOpen);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(TLSFilterTransaction, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(TLSFilterTransaction, nsITimerCallback, nsINamed)
|
||||
NS_IMPL_ISUPPORTS(SocketTransportShim, nsISocketTransport, nsITransport)
|
||||
NS_IMPL_ISUPPORTS(InputStreamShim, nsIInputStream, nsIAsyncInputStream)
|
||||
NS_IMPL_ISUPPORTS(OutputStreamShim, nsIOutputStream, nsIAsyncOutputStream)
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "nsAHttpTransaction.h"
|
||||
#include "nsIAsyncInputStream.h"
|
||||
#include "nsIAsyncOutputStream.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsISocketTransport.h"
|
||||
#include "nsITimer.h"
|
||||
#include "NullHttpTransaction.h"
|
||||
@ -103,6 +104,7 @@ class TLSFilterTransaction final
|
||||
, public nsAHttpSegmentReader
|
||||
, public nsAHttpSegmentWriter
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
~TLSFilterTransaction();
|
||||
public:
|
||||
@ -111,6 +113,7 @@ public:
|
||||
NS_DECL_NSAHTTPSEGMENTREADER
|
||||
NS_DECL_NSAHTTPSEGMENTWRITER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
TLSFilterTransaction(nsAHttpTransaction *aWrappedTransaction,
|
||||
const char *tlsHost, int32_t tlsPort,
|
||||
|
@ -3657,6 +3657,7 @@ NS_INTERFACE_MAP_BEGIN(nsHttpConnectionMgr::nsHalfOpenSocket)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITransportEventSink)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
// we have no macro that covers this case.
|
||||
if (aIID.Equals(NS_GET_IID(nsHttpConnectionMgr::nsHalfOpenSocket)) ) {
|
||||
AddRef();
|
||||
@ -4037,6 +4038,13 @@ nsHttpConnectionMgr::nsHalfOpenSocket::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP // method for nsINamed
|
||||
nsHttpConnectionMgr::nsHalfOpenSocket::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsHttpConnectionMgr::nsHalfOpenSocket");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
already_AddRefed<nsHttpConnectionMgr::PendingTransactionInfo>
|
||||
nsHttpConnectionMgr::
|
||||
nsHalfOpenSocket::FindTransactionHelper(bool removeWhenFound)
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "nsWeakReference.h"
|
||||
#include "TCPFastOpen.h"
|
||||
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
@ -358,6 +359,7 @@ private:
|
||||
public nsITransportEventSink,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsITimerCallback,
|
||||
public nsINamed,
|
||||
public nsSupportsWeakReference,
|
||||
public TCPFastOpen
|
||||
{
|
||||
@ -370,6 +372,7 @@ private:
|
||||
NS_DECL_NSITRANSPORTEVENTSINK
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
nsHalfOpenSocket(nsConnectionEntry *ent,
|
||||
nsAHttpTransaction *trans,
|
||||
|
@ -89,7 +89,8 @@ NS_IMPL_ISUPPORTS(WebSocketChannel,
|
||||
nsIInterfaceRequestor,
|
||||
nsIChannelEventSink,
|
||||
nsIThreadRetargetableRequest,
|
||||
nsIObserver)
|
||||
nsIObserver,
|
||||
nsINamed)
|
||||
|
||||
// We implement RFC 6455, which uses Sec-WebSocket-Version: 13 on the wire.
|
||||
#define SEC_WEBSOCKET_VERSION "13"
|
||||
@ -3320,6 +3321,15 @@ WebSocketChannel::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsINamed
|
||||
|
||||
NS_IMETHODIMP
|
||||
WebSocketChannel::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("WebSocketChannel");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsIWebSocketChannel
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "nsIAsyncOutputStream.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsIDNSListener.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsIProtocolProxyCallback.h"
|
||||
#include "nsIChannelEventSink.h"
|
||||
@ -71,7 +72,8 @@ class WebSocketChannel : public BaseWebSocketChannel,
|
||||
public nsIObserver,
|
||||
public nsIProtocolProxyCallback,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsIChannelEventSink
|
||||
public nsIChannelEventSink,
|
||||
public nsINamed
|
||||
{
|
||||
friend class WebSocketFrame;
|
||||
|
||||
@ -88,6 +90,7 @@ public:
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
NS_DECL_NSICHANNELEVENTSINK
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
// nsIWebSocketChannel methods BaseWebSocketChannel didn't implement for us
|
||||
//
|
||||
|
@ -195,6 +195,7 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(AlertImageRequest)
|
||||
NS_INTERFACE_MAP_ENTRY(imgINotificationObserver)
|
||||
NS_INTERFACE_MAP_ENTRY(nsICancelable)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, imgINotificationObserver)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
@ -269,6 +270,13 @@ AlertImageRequest::Notify(nsITimer* aTimer)
|
||||
return NotifyMissing();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
AlertImageRequest::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("AlertImageRequest");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
AlertImageRequest::Cancel(nsresult aReason)
|
||||
{
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsICancelable.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIPrincipal.h"
|
||||
#include "nsString.h"
|
||||
#include "nsITimer.h"
|
||||
@ -18,7 +19,8 @@ namespace mozilla {
|
||||
|
||||
class AlertImageRequest final : public imgINotificationObserver,
|
||||
public nsICancelable,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
@ -27,6 +29,7 @@ public:
|
||||
NS_DECL_IMGINOTIFICATIONOBSERVER
|
||||
NS_DECL_NSICANCELABLE
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
AlertImageRequest(nsIURI* aURI, nsIPrincipal* aPrincipal,
|
||||
bool aInPrivateBrowsing, uint32_t aTimeout,
|
||||
|
@ -55,7 +55,8 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(nsAutoCompleteController)
|
||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsAutoCompleteController)
|
||||
NS_INTERFACE_TABLE_HEAD(nsAutoCompleteController)
|
||||
NS_INTERFACE_TABLE(nsAutoCompleteController, nsIAutoCompleteController,
|
||||
nsIAutoCompleteObserver, nsITimerCallback, nsITreeView)
|
||||
nsIAutoCompleteObserver, nsITimerCallback, nsITreeView,
|
||||
nsINamed)
|
||||
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(nsAutoCompleteController)
|
||||
NS_INTERFACE_MAP_END
|
||||
|
||||
@ -923,6 +924,16 @@ nsAutoCompleteController::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//// nsINamed
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAutoCompleteController::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsAutoCompleteController");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// nsITreeView
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "nsIAutoCompletePopup.h"
|
||||
#include "nsIAutoCompleteResult.h"
|
||||
#include "nsIAutoCompleteSearch.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsString.h"
|
||||
#include "nsITreeView.h"
|
||||
#include "nsITreeSelection.h"
|
||||
@ -23,7 +24,8 @@
|
||||
class nsAutoCompleteController final : public nsIAutoCompleteController,
|
||||
public nsIAutoCompleteObserver,
|
||||
public nsITimerCallback,
|
||||
public nsITreeView
|
||||
public nsITreeView,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
@ -33,6 +35,7 @@ public:
|
||||
NS_DECL_NSIAUTOCOMPLETEOBSERVER
|
||||
NS_DECL_NSITREEVIEW
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
nsAutoCompleteController();
|
||||
|
||||
|
@ -130,6 +130,7 @@ NS_IMPL_ISUPPORTS_CI(
|
||||
, nsIFaviconService
|
||||
, mozIAsyncFavicons
|
||||
, nsITimerCallback
|
||||
, nsINamed
|
||||
)
|
||||
|
||||
nsFaviconService::nsFaviconService()
|
||||
@ -240,6 +241,16 @@ nsFaviconService::Notify(nsITimer* timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//// nsINamed
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFaviconService::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsFaviconService");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// nsIFaviconService
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "nsTHashtable.h"
|
||||
#include "nsToolkitCompsCID.h"
|
||||
#include "nsURIHashKey.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "Database.h"
|
||||
#include "imgITools.h"
|
||||
@ -51,6 +52,7 @@ public:
|
||||
class nsFaviconService final : public nsIFaviconService
|
||||
, public mozIAsyncFavicons
|
||||
, public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
nsFaviconService();
|
||||
@ -124,6 +126,7 @@ public:
|
||||
NS_DECL_NSIFAVICONSERVICE
|
||||
NS_DECL_MOZIASYNCFAVICONS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
private:
|
||||
imgITools* GetImgTools() {
|
||||
|
@ -97,7 +97,8 @@ NS_IMPL_ISUPPORTS(nsUrlClassifierStreamUpdater,
|
||||
nsIStreamListener,
|
||||
nsIObserver,
|
||||
nsIInterfaceRequestor,
|
||||
nsITimerCallback)
|
||||
nsITimerCallback,
|
||||
nsINamed)
|
||||
|
||||
/**
|
||||
* Clear out the update.
|
||||
@ -993,3 +994,13 @@ nsUrlClassifierStreamUpdater::Notify(nsITimer *timer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//// nsINamed
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsUrlClassifierStreamUpdater::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsUrlClassifierStreamUpdater");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <nsISupportsUtils.h>
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsIUrlClassifierStreamUpdater.h"
|
||||
#include "nsIStreamListener.h"
|
||||
@ -25,7 +26,8 @@ class nsUrlClassifierStreamUpdater final : public nsIUrlClassifierStreamUpdater,
|
||||
public nsIStreamListener,
|
||||
public nsIObserver,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsITimerCallback
|
||||
public nsITimerCallback,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
nsUrlClassifierStreamUpdater();
|
||||
@ -38,6 +40,7 @@ public:
|
||||
NS_DECL_NSISTREAMLISTENER
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
private:
|
||||
// No subclassing
|
||||
|
@ -1197,6 +1197,7 @@ NS_INTERFACE_MAP_BEGIN(nsExternalAppHandler)
|
||||
NS_INTERFACE_MAP_ENTRY(nsICancelable)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIBackgroundFileSaverObserver)
|
||||
NS_INTERFACE_MAP_ENTRY(nsINamed)
|
||||
NS_INTERFACE_MAP_END_THREADSAFE
|
||||
|
||||
nsExternalAppHandler::nsExternalAppHandler(nsIMIMEInfo * aMIMEInfo,
|
||||
@ -2563,6 +2564,14 @@ nsExternalAppHandler::Notify(nsITimer* timer)
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsExternalAppHandler::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsExternalAppHandler");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// The following section contains our nsIMIMEService implementation and related methods.
|
||||
//
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "nsIMIMEInfo.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsIFileStreams.h"
|
||||
@ -211,7 +212,8 @@ private:
|
||||
class nsExternalAppHandler final : public nsIStreamListener,
|
||||
public nsIHelperAppLauncher,
|
||||
public nsITimerCallback,
|
||||
public nsIBackgroundFileSaverObserver
|
||||
public nsIBackgroundFileSaverObserver,
|
||||
public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
@ -221,6 +223,7 @@ public:
|
||||
NS_DECL_NSICANCELABLE
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSIBACKGROUNDFILESAVEROBSERVER
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
/**
|
||||
* @param aMIMEInfo MIMEInfo object, representing the type of the
|
||||
|
@ -38,7 +38,7 @@ nsNativeTheme::nsNativeTheme()
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsNativeTheme, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(nsNativeTheme, nsITimerCallback, nsINamed)
|
||||
|
||||
nsIPresShell *
|
||||
nsNativeTheme::GetPresShell(nsIFrame* aFrame)
|
||||
@ -686,6 +686,13 @@ nsNativeTheme::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsNativeTheme::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("nsNativeTheme");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIFrame*
|
||||
nsNativeTheme::GetAdjacentSiblingFrameWithSameAppearance(nsIFrame* aFrame,
|
||||
bool aNextSibling)
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "nsMargin.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
@ -24,13 +25,14 @@ namespace mozilla {
|
||||
class EventStates;
|
||||
} // namespace mozilla
|
||||
|
||||
class nsNativeTheme : public nsITimerCallback
|
||||
class nsNativeTheme : public nsITimerCallback, public nsINamed
|
||||
{
|
||||
protected:
|
||||
virtual ~nsNativeTheme() {}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
enum ScrollbarButtonType {
|
||||
eScrollbarButton_UpTop = 0,
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "nsHashKeys.h"
|
||||
#include "GeckoProfiler.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsITimer.h"
|
||||
#include "ScreenHelperWin.h"
|
||||
#include "mozilla/widget/ScreenManager.h"
|
||||
@ -43,7 +44,8 @@ static mozilla::LazyLogModule gWinWakeLockLog("WinWakeLock");
|
||||
// Gecko. For example when we're playing video in a foreground tab we
|
||||
// don't want the screen saver to turn on.
|
||||
class WinWakeLockListener final : public nsIDOMMozWakeLockListener
|
||||
, public nsITimerCallback {
|
||||
, public nsITimerCallback
|
||||
, public nsINamed {
|
||||
public:
|
||||
NS_DECL_ISUPPORTS;
|
||||
|
||||
@ -52,6 +54,11 @@ public:
|
||||
ResetScreenSaverTimeout();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override {
|
||||
aName.AssignLiteral("WinWakeLockListener");
|
||||
return NS_OK;
|
||||
}
|
||||
private:
|
||||
~WinWakeLockListener() {}
|
||||
|
||||
@ -134,7 +141,7 @@ private:
|
||||
nsCOMPtr<nsITimer> mTimer;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(WinWakeLockListener, nsIDOMMozWakeLockListener, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(WinWakeLockListener, nsIDOMMozWakeLockListener, nsITimerCallback, nsINamed)
|
||||
StaticRefPtr<WinWakeLockListener> sWakeLockListener;
|
||||
|
||||
static void
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "mozilla/WeakPtr.h"
|
||||
#include "base/message_loop.h"
|
||||
#include "base/task.h"
|
||||
#include "nsINamed.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsCOMPtr.h"
|
||||
@ -56,7 +57,7 @@ private:
|
||||
* saves us from worrying about an edge case somehow messing us up here.
|
||||
*/
|
||||
class MessageLoopTimerCallback
|
||||
: public nsITimerCallback
|
||||
: public nsITimerCallback, public nsINamed
|
||||
{
|
||||
public:
|
||||
explicit MessageLoopTimerCallback(MessageLoopIdleTask* aTask);
|
||||
@ -64,6 +65,12 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("MessageLoopTimerCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
WeakPtr<MessageLoopIdleTask> mTask;
|
||||
|
||||
@ -142,7 +149,7 @@ MessageLoopTimerCallback::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(MessageLoopTimerCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(MessageLoopTimerCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -378,7 +378,8 @@ NS_IMPL_QUERY_INTERFACE(LazyIdleThread, nsIThread,
|
||||
nsISerialEventTarget,
|
||||
nsITimerCallback,
|
||||
nsIThreadObserver,
|
||||
nsIObserver)
|
||||
nsIObserver,
|
||||
nsINamed)
|
||||
|
||||
NS_IMETHODIMP
|
||||
LazyIdleThread::DispatchFromScript(nsIRunnable* aEvent, uint32_t aFlags)
|
||||
@ -563,6 +564,13 @@ LazyIdleThread::Notify(nsITimer* aTimer)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
LazyIdleThread::GetName(nsACString& aName)
|
||||
{
|
||||
aName.AssignLiteral("LazyIdleThread");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
LazyIdleThread::OnDispatchedEvent(nsIThreadInternal* /*aThread */)
|
||||
{
|
||||
|
@ -11,6 +11,7 @@
|
||||
#error "This header is only usable from within libxul (MOZILLA_INTERNAL_API)."
|
||||
#endif
|
||||
|
||||
#include "nsINamed.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsIThreadInternal.h"
|
||||
#include "nsITimer.h"
|
||||
@ -37,6 +38,7 @@ class LazyIdleThread final
|
||||
, public nsITimerCallback
|
||||
, public nsIThreadObserver
|
||||
, public nsIObserver
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
@ -45,6 +47,7 @@ public:
|
||||
NS_DECL_NSITIMERCALLBACK
|
||||
NS_DECL_NSITHREADOBSERVER
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSINAMED
|
||||
|
||||
enum ShutdownMethod
|
||||
{
|
||||
|
@ -529,6 +529,7 @@ static void LoadNativeMenus(nsIDOMDocument *aDOMDoc, nsIWidget *aParentWindow)
|
||||
namespace mozilla {
|
||||
|
||||
class WebShellWindowTimerCallback final : public nsITimerCallback
|
||||
, public nsINamed
|
||||
{
|
||||
public:
|
||||
explicit WebShellWindowTimerCallback(nsWebShellWindow* aWindow)
|
||||
@ -547,13 +548,19 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHOD GetName(nsACString& aName) override
|
||||
{
|
||||
aName.AssignLiteral("WebShellWindowTimerCallback");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
private:
|
||||
~WebShellWindowTimerCallback() {}
|
||||
|
||||
RefPtr<nsWebShellWindow> mWindow;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS(WebShellWindowTimerCallback, nsITimerCallback)
|
||||
NS_IMPL_ISUPPORTS(WebShellWindowTimerCallback, nsITimerCallback, nsINamed)
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user