зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393345 - remove MediaResource::IsSuspended() which has no callers. r=gerald
MozReview-Commit-ID: Jn6TIXpFflR --HG-- extra : rebase_source : 0efc64660523f1e846feb247075ab69e54f5f24a
This commit is contained in:
Родитель
fad0962338
Коммит
e8dd02d4f8
|
@ -68,7 +68,6 @@ private:
|
|||
return std::max(aOffset, int64_t(mLength));
|
||||
}
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override { return true; }
|
||||
bool IsSuspended() override { return false; }
|
||||
nsresult ReadFromCache(char* aBuffer,
|
||||
int64_t aOffset,
|
||||
uint32_t aCount) override
|
||||
|
|
|
@ -1163,7 +1163,6 @@ public:
|
|||
return std::max(aOffset, mSize);
|
||||
}
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override { return true; }
|
||||
bool IsSuspended() override { return true; }
|
||||
bool IsTransportSeekable() override { return true; }
|
||||
|
||||
nsresult GetCachedRanges(MediaByteRangeSet& aRanges) override;
|
||||
|
|
|
@ -202,8 +202,6 @@ public:
|
|||
// Returns true if all the data from aOffset to the end of the stream
|
||||
// is in cache. If the end of the stream is not known, we return false.
|
||||
virtual bool IsDataCachedToEndOfResource(int64_t aOffset) = 0;
|
||||
// Returns true if this stream has been suspended.
|
||||
virtual bool IsSuspended() = 0;
|
||||
// Reads only data which is cached in the media cache. If you try to read
|
||||
// any data which overlaps uncached data, or if aCount bytes otherwise can't
|
||||
// be read, this function will return failure. This function be called from
|
||||
|
@ -459,6 +457,8 @@ public:
|
|||
// Resume the current load since data is wanted again
|
||||
nsresult CacheClientResume();
|
||||
|
||||
bool IsSuspended();
|
||||
|
||||
void ThrottleReadahead(bool bThrottle) override;
|
||||
|
||||
// Main thread
|
||||
|
@ -491,7 +491,6 @@ public:
|
|||
int64_t GetNextCachedData(int64_t aOffset) override;
|
||||
int64_t GetCachedDataEnd(int64_t aOffset) override;
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override;
|
||||
bool IsSuspended() override;
|
||||
bool IsTransportSeekable() override;
|
||||
|
||||
size_t SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const override {
|
||||
|
|
|
@ -34,7 +34,6 @@ public:
|
|||
{
|
||||
return false;
|
||||
}
|
||||
bool IsSuspended() override { return false; }
|
||||
nsresult ReadFromCache(char* aBuffer, int64_t aOffset,
|
||||
uint32_t aCount) override
|
||||
{
|
||||
|
|
|
@ -57,7 +57,6 @@ public:
|
|||
int64_t GetNextCachedData(int64_t aOffset) override { UNIMPLEMENTED(); return -1; }
|
||||
int64_t GetCachedDataEnd(int64_t aOffset) override { UNIMPLEMENTED(); return -1; }
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override { UNIMPLEMENTED(); return false; }
|
||||
bool IsSuspended() override { UNIMPLEMENTED(); return false; }
|
||||
nsresult ReadFromCache(char* aBuffer, int64_t aOffset, uint32_t aCount) override { UNIMPLEMENTED(); return NS_ERROR_FAILURE; }
|
||||
|
||||
already_AddRefed<nsIPrincipal> GetCurrentPrincipal() override
|
||||
|
|
|
@ -41,7 +41,6 @@ public:
|
|||
int64_t GetNextCachedData(int64_t aOffset) override { UNIMPLEMENTED(); return -1; }
|
||||
int64_t GetCachedDataEnd(int64_t aOffset) override { UNIMPLEMENTED(); return -1; }
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override { UNIMPLEMENTED(); return false; }
|
||||
bool IsSuspended() override { UNIMPLEMENTED(); return false; }
|
||||
nsresult ReadFromCache(char* aBuffer, int64_t aOffset, uint32_t aCount) override { UNIMPLEMENTED(); return NS_ERROR_FAILURE; }
|
||||
|
||||
already_AddRefed<nsIPrincipal> GetCurrentPrincipal() override
|
||||
|
|
|
@ -69,11 +69,6 @@ public:
|
|||
return GetLength();
|
||||
}
|
||||
bool IsDataCachedToEndOfResource(int64_t aOffset) override { return false; }
|
||||
bool IsSuspended() override
|
||||
{
|
||||
UNIMPLEMENTED();
|
||||
return false;
|
||||
}
|
||||
nsresult ReadFromCache(char* aBuffer,
|
||||
int64_t aOffset,
|
||||
uint32_t aCount) override;
|
||||
|
|
Загрузка…
Ссылка в новой задаче