gecko-dev/netwerk/cache2
Nika Layzell 9d6bb19c23 Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
..
CacheEntry.cpp Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin 2023-01-16 23:14:11 +00:00
CacheEntry.h
CacheFile.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
CacheFile.h
CacheFileChunk.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
CacheFileChunk.h
CacheFileContextEvictor.cpp
CacheFileContextEvictor.h
CacheFileInputStream.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
CacheFileInputStream.h
CacheFileIOManager.cpp
CacheFileIOManager.h
CacheFileMetadata.cpp
CacheFileMetadata.h
CacheFileOutputStream.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
CacheFileOutputStream.h
CacheFileUtils.cpp
CacheFileUtils.h
CacheHashUtils.cpp
CacheHashUtils.h
CacheIndex.cpp
CacheIndex.h
CacheIndexContextIterator.cpp
CacheIndexContextIterator.h
CacheIndexIterator.cpp
CacheIndexIterator.h
CacheIOThread.cpp
CacheIOThread.h
CacheLog.cpp
CacheLog.h
CacheObserver.cpp
CacheObserver.h
CachePurgeLock.cpp
CachePurgeLock.h
CacheStorage.cpp
CacheStorage.h
CacheStorageService.cpp
CacheStorageService.h Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
moz.build
nsICacheEntry.idl
nsICacheEntryDoomCallback.idl
nsICacheEntryOpenCallback.idl
nsICachePurgeLock.idl
nsICacheStorage.idl
nsICacheStorageService.idl
nsICacheStorageVisitor.idl
nsICacheTesting.idl