зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884061 - Part 3x: Use NS_DECL_THREADSAFE_ISUPPORTS in widget/, r=jimm
--HG-- extra : rebase_source : 9e6f7d33802b3f8698616fa6f68c8500f275ae9c
This commit is contained in:
Родитель
3e64a4bf63
Коммит
c0dfb98101
|
@ -44,7 +44,7 @@
|
|||
|
||||
using namespace mozilla;
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS0(nsFilePickerCallback)
|
||||
NS_IMPL_ISUPPORTS0(nsFilePickerCallback)
|
||||
|
||||
nsRefPtr<AndroidBridge> AndroidBridge::sBridge = nullptr;
|
||||
static unsigned sJavaEnvThreadIndex = 0;
|
||||
|
|
|
@ -87,7 +87,7 @@ typedef struct AndroidSystemColors {
|
|||
|
||||
class nsFilePickerCallback : nsISupports {
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
virtual void handleResult(nsAString& filePath) = 0;
|
||||
nsFilePickerCallback() {}
|
||||
protected:
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
nsresult Init()
|
||||
{
|
||||
|
@ -240,7 +240,7 @@ private:
|
|||
ScopedClose mShutdownPipeWrite;
|
||||
};
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(MemoryPressureWatcher, nsIRunnable, nsIObserver);
|
||||
NS_IMPL_ISUPPORTS2(MemoryPressureWatcher, nsIRunnable, nsIObserver);
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ protected:
|
|||
nsID mSessionGroupingParameter;
|
||||
SessionState mState;
|
||||
|
||||
nsAutoRefCnt mRefCnt;
|
||||
ThreadSafeAutoRefCnt mRefCnt;
|
||||
NS_DECL_OWNINGTHREAD
|
||||
|
||||
static AudioSession* sService;
|
||||
|
@ -151,8 +151,8 @@ AudioSession::GetSingleton()
|
|||
}
|
||||
|
||||
// It appears Windows will use us on a background thread ...
|
||||
NS_IMPL_THREADSAFE_ADDREF(AudioSession)
|
||||
NS_IMPL_THREADSAFE_RELEASE(AudioSession)
|
||||
NS_IMPL_ADDREF(AudioSession)
|
||||
NS_IMPL_RELEASE(AudioSession)
|
||||
|
||||
STDMETHODIMP
|
||||
AudioSession::QueryInterface(REFIID iid, void **ppv)
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace crashreporter {
|
|||
class LSPAnnotationGatherer : public nsRunnable
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
||||
void Annotate();
|
||||
|
@ -32,7 +32,7 @@ public:
|
|||
nsCOMPtr<nsIThread> mThread;
|
||||
};
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(LSPAnnotationGatherer, nsIRunnable)
|
||||
NS_IMPL_ISUPPORTS1(LSPAnnotationGatherer, nsIRunnable)
|
||||
|
||||
void
|
||||
LSPAnnotationGatherer::Annotate()
|
||||
|
|
|
@ -201,7 +201,7 @@ namespace widget {
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
// nsIWinTaskbar
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(WinTaskbar, nsIWinTaskbar)
|
||||
NS_IMPL_ISUPPORTS1(WinTaskbar, nsIWinTaskbar)
|
||||
|
||||
bool
|
||||
WinTaskbar::Initialize() {
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
WinTaskbar();
|
||||
~WinTaskbar();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIWINTASKBAR
|
||||
|
||||
// Registers the global app user model id for the instance.
|
||||
|
|
|
@ -40,9 +40,9 @@ namespace widget {
|
|||
#ifdef MOZ_PLACES
|
||||
NS_IMPL_ISUPPORTS1(AsyncFaviconDataReady, nsIFaviconDataCallback)
|
||||
#endif
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(AsyncEncodeAndWriteIcon, nsIRunnable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(AsyncDeleteIconFromDisk, nsIRunnable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(AsyncDeleteAllFaviconsFromDisk, nsIRunnable)
|
||||
NS_IMPL_ISUPPORTS1(AsyncEncodeAndWriteIcon, nsIRunnable)
|
||||
NS_IMPL_ISUPPORTS1(AsyncDeleteIconFromDisk, nsIRunnable)
|
||||
NS_IMPL_ISUPPORTS1(AsyncDeleteAllFaviconsFromDisk, nsIRunnable)
|
||||
|
||||
|
||||
const char FaviconHelper::kJumpListCacheDir[] = "jumpListCache";
|
||||
|
|
|
@ -296,7 +296,7 @@ class AsyncEncodeAndWriteIcon : public nsIRunnable
|
|||
{
|
||||
public:
|
||||
const bool mURLShortcut;
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
||||
// Warning: AsyncEncodeAndWriteIcon assumes ownership of the aData buffer passed in
|
||||
|
@ -320,7 +320,7 @@ private:
|
|||
class AsyncDeleteIconFromDisk : public nsIRunnable
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
||||
AsyncDeleteIconFromDisk(const nsAString &aIconPath);
|
||||
|
@ -333,7 +333,7 @@ private:
|
|||
class AsyncDeleteAllFaviconsFromDisk : public nsIRunnable
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
||||
AsyncDeleteAllFaviconsFromDisk();
|
||||
|
|
|
@ -87,7 +87,7 @@ void InitGfxDriverInfoShutdownObserver()
|
|||
using namespace mozilla::widget;
|
||||
using namespace mozilla;
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(GfxInfoBase, nsIGfxInfo, nsIObserver, nsISupportsWeakReference)
|
||||
NS_IMPL_ISUPPORTS3(GfxInfoBase, nsIGfxInfo, nsIObserver, nsISupportsWeakReference)
|
||||
|
||||
#define BLACKLIST_PREF_BRANCH "gfx.blacklist."
|
||||
#define SUGGESTED_VERSION_PREF BLACKLIST_PREF_BRANCH "suggested-driver-version"
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
GfxInfoBase();
|
||||
virtual ~GfxInfoBase();
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIOBSERVER
|
||||
|
||||
// We only declare a subset of the nsIGfxInfo interface. It's up to derived
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
// next thread event for at most this many ticks:
|
||||
#define THREAD_EVENT_STARVATION_LIMIT PR_MillisecondsToInterval(20)
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(nsBaseAppShell, nsIAppShell, nsIThreadObserver,
|
||||
nsIObserver)
|
||||
NS_IMPL_ISUPPORTS3(nsBaseAppShell, nsIAppShell, nsIThreadObserver, nsIObserver)
|
||||
|
||||
nsBaseAppShell::nsBaseAppShell()
|
||||
: mSuspendNativeCount(0)
|
||||
|
|
|
@ -22,7 +22,7 @@ class nsBaseAppShell : public nsIAppShell, public nsIThreadObserver,
|
|||
public nsIObserver
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIAPPSHELL
|
||||
NS_DECL_NSITHREADOBSERVER
|
||||
NS_DECL_NSIOBSERVER
|
||||
|
|
Загрузка…
Ссылка в новой задаче