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

Unified Diff: media/base/data_source.h

Issue 2267963002: Add support for cancellation of demuxer reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually abort the data. 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
Index: media/base/data_source.h
diff --git a/media/base/data_source.h b/media/base/data_source.h
index 5aeea838c812ecf9f382636360ce185958e8d780..f83965e237b91330e89949b2736b0c515cf46010 100644
--- a/media/base/data_source.h
+++ b/media/base/data_source.h
@@ -36,6 +36,9 @@ class MEDIA_EXPORT DataSource {
// return an error.
virtual void Stop() = 0;
+ // Similar to Stop(), but only aborts current reads and not future reads.
+ virtual void Abort() = 0;
+
// Returns true and the file size, false if the file size could not be
// retrieved.
virtual bool GetSize(int64_t* size_out) = 0;

Powered by Google App Engine
This is Rietveld 408576698