Bug 1399760. P1 - remove the CopySegmentToCache() member function. r=gerald

MozReview-Commit-ID: 3D9RiK3PJUf

--HG--
extra : rebase_source : acf4962bb9fd4f784bbe5d13cc3428e7d60322d3
This commit is contained in:
JW Wang 2017-09-20 11:12:48 +08:00
Родитель 59439b26b7
Коммит dd57b36053
2 изменённых файлов: 3 добавлений и 15 удалений

Просмотреть файл

@ -381,16 +381,6 @@ ChannelMediaResource::OnChannelRedirect(nsIChannel* aOld,
return SetupChannelHeaders(aOffset);
}
nsresult
ChannelMediaResource::CopySegmentToCache(const char* aFromSegment,
uint32_t aCount,
uint32_t* aWriteCount)
{
mCacheStream.NotifyDataReceived(aCount, aFromSegment);
*aWriteCount = aCount;
return NS_OK;
}
nsresult
ChannelMediaResource::CopySegmentToCache(nsIInputStream* aInStream,
void* aResource,
@ -400,7 +390,9 @@ ChannelMediaResource::CopySegmentToCache(nsIInputStream* aInStream,
uint32_t* aWriteCount)
{
ChannelMediaResource* res = static_cast<ChannelMediaResource*>(aResource);
return res->CopySegmentToCache(aFromSegment, aCount, aWriteCount);
res->mCacheStream.NotifyDataReceived(aCount, aFromSegment);
*aWriteCount = aCount;
return NS_OK;
}
nsresult

Просмотреть файл

@ -178,10 +178,6 @@ protected:
uint32_t aCount,
uint32_t* aWriteCount);
nsresult CopySegmentToCache(const char* aFromSegment,
uint32_t aCount,
uint32_t* aWriteCount);
// Main thread access only
RefPtr<Listener> mListener;
// When this flag is set, if we get a network error we should silently