Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: media/filters/chunk_demuxer.h

Issue 2267963002: Add support for cancellation of demuxer reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix and add tests. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/blocking_url_protocol.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index 1e4f357f262f342c34adef88fed71c561aeb6db2..3d0409e90f74051a1852a25ca07df48d404f7dd4 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -201,6 +201,7 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
DemuxerStream* GetStream(DemuxerStream::Type type) override;
base::TimeDelta GetStartTime() const override;
int64_t GetMemoryUsage() const override;
+ void AbortPendingReads() override;
// ChunkDemuxer reads are abortable. StartWaitingForSeek() and
// CancelPendingSeek() always abort pending and future reads until the
@@ -373,8 +374,7 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// Start returning data on all DemuxerStreams.
void StartReturningData();
- // Aborts pending reads on all DemuxerStreams.
- void AbortPendingReads();
+ void AbortPendingReads_Locked();
// Completes any pending reads if it is possible to do so.
void CompletePendingReadsIfPossible();
« no previous file with comments | « media/filters/blocking_url_protocol.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698