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

Unified Diff: media/blink/buffered_data_source.h

Issue 2095053003: Merge M52: "When HLS redirects are encountered recreate WebMediaPlayer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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/base/android/media_codec_util.cc ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.h
diff --git a/media/blink/buffered_data_source.h b/media/blink/buffered_data_source.h
index 9ffeb4068c2c3f1d4aff77bf86080a41390ec302..0971983f40cedfbe716e81bb408d66d2d7abbe2a 100644
--- a/media/blink/buffered_data_source.h
+++ b/media/blink/buffered_data_source.h
@@ -114,6 +114,10 @@ class BufferedDataSourceInterface : public DataSource {
// Returns an estimate of the number of bytes held by the data source.
virtual int64_t GetMemoryUsage() const = 0;
+
+ // Returns the post-Initialize() URL after redirects have been followed; this
+ // value may change at a later time.
+ virtual GURL GetUrlAfterRedirects() const = 0;
};
// A data source capable of loading URLs and buffering the data using an
@@ -190,6 +194,8 @@ class MEDIA_BLINK_EXPORT BufferedDataSource
// Returns an estimate of the number of bytes held by the data source.
int64_t GetMemoryUsage() const override;
+ GURL GetUrlAfterRedirects() const override;
+
// DataSource implementation.
// Called from demuxer thread.
void Stop() override;
« no previous file with comments | « media/base/android/media_codec_util.cc ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698