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 Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
CacheFile.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
CacheFile.h Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
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 Bug 1805535 - Add null check to avoid crash in CacheFileIOManager::SyncRemoveDir r=necko-reviewers,jesup 2023-01-12 08:05:44 +00:00
CacheFileIOManager.h Bug 1705676 - Purge HTTP disk cache using backgroundtasks (out-of-process) r=nalexander,necko-reviewers,dragana 2022-08-15 07:07:45 +00:00
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 Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
CacheHashUtils.cpp
CacheHashUtils.h
CacheIndex.cpp Bug 1745972 - Added assertions to verify additions and removals of mRecs. r=necko-reviewers,kershaw 2022-12-12 21:32:12 +00:00
CacheIndex.h Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
CacheIndexContextIterator.cpp
CacheIndexContextIterator.h
CacheIndexIterator.cpp Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
CacheIndexIterator.h
CacheIOThread.cpp Bug 1794376 - Rename BlockingIOWatcher and simplify code r=edgul 2022-10-28 12:36:48 +00:00
CacheIOThread.h Bug 1207753 - netwerk/cache2 thread-safety annotations r=necko-reviewers,valentin 2022-11-12 00:00:49 +00:00
CacheLog.cpp
CacheLog.h
CacheObserver.cpp Bug 1705676 - Purge HTTP disk cache using backgroundtasks (out-of-process) r=nalexander,necko-reviewers,dragana 2022-08-15 07:07:45 +00:00
CacheObserver.h
CachePurgeLock.cpp Bug 1705676 - Add CachePurgeLock to lock access to the purged cache directory r=nalexander,necko-reviewers,dragana 2022-08-15 07:07:45 +00:00
CachePurgeLock.h Bug 1705676 - Add CachePurgeLock to lock access to the purged cache directory r=nalexander,necko-reviewers,dragana 2022-08-15 07:07:45 +00:00
CacheStorage.cpp
CacheStorage.h
CacheStorageService.cpp Bug 1787729 - Move NS_HasRootDomain, CheckForBrokenChromeURL, IsCoepCredentiallessEnabled to mozilla::net namespace r=necko-reviewers,kershaw 2022-08-31 11:19:14 +00:00
CacheStorageService.h Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
moz.build Bug 1791633 - separate nsITLSSocketControl from nsITransportSecurityInfo r=necko-reviewers,kershaw,jschanck 2022-11-16 16:37:29 +00:00
nsICacheEntry.idl Bug 1784098 - make nsICacheEntry.securityInfo explicit as nsITransportSecurityInfo r=kershaw,necko-reviewers 2022-08-23 03:37:18 +00:00
nsICacheEntryDoomCallback.idl
nsICacheEntryOpenCallback.idl
nsICachePurgeLock.idl Bug 1705676 - Add CachePurgeLock to lock access to the purged cache directory r=nalexander,necko-reviewers,dragana 2022-08-15 07:07:45 +00:00
nsICacheStorage.idl
nsICacheStorageService.idl
nsICacheStorageVisitor.idl Bug 1768679 - Add 'Alt Data size' column to about:cache r=necko-reviewers,dragana 2022-08-04 16:20:17 +00:00
nsICacheTesting.idl