mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1688292 - Fix non-unified build errors in netwerk/cache2/ r=necko-reviewers,valentin
This is a drive-by fix while I was looking into something else. Differential Revision: https://phabricator.services.mozilla.com/D102795
This commit is contained in:
parent
3b7821e9cb
commit
bc943f076f
@ -121,3 +121,4 @@ gfx/wr/
|
||||
gfx/ycbcr/
|
||||
hal/
|
||||
image/
|
||||
netwerk/cache2/
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheIndex.h"
|
||||
|
||||
#include "nsIAsyncOutputStream.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsISeekableStream.h"
|
||||
|
@ -10,10 +10,14 @@
|
||||
#include "CacheFileChunk.h"
|
||||
#include "CacheFileInputStream.h"
|
||||
#include "CacheFileOutputStream.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheIndex.h"
|
||||
#include "CacheLog.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TelemetryHistogramEnums.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsICacheEntry.h"
|
||||
#include "nsProxyRelease.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
|
@ -12,9 +12,11 @@
|
||||
#include "nsClassHashtable.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
|
||||
class nsIAsyncOutputStream;
|
||||
class nsICacheEntry;
|
||||
class nsICacheEntryMetaDataVisitor;
|
||||
class nsIInputStream;
|
||||
class nsIOutputStream;
|
||||
class nsICacheEntryMetaDataVisitor;
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
@ -5,9 +5,11 @@
|
||||
#include "CacheLog.h"
|
||||
#include "CacheFileContextEvictor.h"
|
||||
#include "CacheFileIOManager.h"
|
||||
#include "CacheFileMetadata.h"
|
||||
#include "CacheIndex.h"
|
||||
#include "CacheIndexIterator.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheObserver.h"
|
||||
#include "nsIFile.h"
|
||||
#include "LoadContextInfo.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
@ -6,8 +6,9 @@
|
||||
#define CacheFileContextEvictor__h__
|
||||
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsString.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
class nsIFile;
|
||||
class nsILoadContextInfo;
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "CacheIndex.h"
|
||||
#include "CacheLog.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheObserver.h"
|
||||
#include "LoadContextInfo.h"
|
||||
#include "mozilla/Tokenizer.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
@ -5,6 +5,8 @@
|
||||
#include "CacheHashUtils.h"
|
||||
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/EndianUtils.h"
|
||||
#include "mozilla/SHA1.h"
|
||||
#include "plstr.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
#include "CacheIOThread.h"
|
||||
#include "CacheFileIOManager.h"
|
||||
#include "CacheLog.h"
|
||||
#include "CacheObserver.h"
|
||||
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsISupportsImpl.h"
|
||||
@ -14,6 +16,8 @@
|
||||
#include "mozilla/EventQueue.h"
|
||||
#include "mozilla/IOInterposer.h"
|
||||
#include "mozilla/ThreadEventQueue.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TelemetryHistogramEnums.h"
|
||||
#include "GeckoProfiler.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "CacheLog.h"
|
||||
#include "CacheFileIOManager.h"
|
||||
#include "CacheFileMetadata.h"
|
||||
#include "CacheFileUtils.h"
|
||||
#include "CacheIndexIterator.h"
|
||||
#include "CacheIndexContextIterator.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
@ -179,8 +179,7 @@ bool CacheObserver::EntryIsTooBig(int64_t aSize, bool aUsingDisk) {
|
||||
bool CacheObserver::IsPastShutdownIOLag() {
|
||||
#ifdef DEBUG
|
||||
return false;
|
||||
#endif
|
||||
|
||||
#else
|
||||
if (sShutdownDemandedTime == PR_INTERVAL_NO_TIMEOUT ||
|
||||
MaxShutdownIOLag() == UINT32_MAX) {
|
||||
return false;
|
||||
@ -194,6 +193,7 @@ bool CacheObserver::IsPastShutdownIOLag() {
|
||||
}
|
||||
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -1019,8 +1019,6 @@ NS_IMETHODIMP CacheStorageService::AsyncVisitAllStorages(
|
||||
RefPtr<WalkDiskCacheRunnable> event =
|
||||
new WalkDiskCacheRunnable(nullptr, aVisitEntries, aVisitor);
|
||||
return event->Walk();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Methods used by CacheEntry for management of in-memory structures.
|
||||
|
Loading…
Reference in New Issue
Block a user