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

Unified Diff: media/blink/multibuffer_data_source.h

Issue 1815893002: Merge M50: "Disable "pause-and-buffer" on Android, cancel suspended players." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/blink/buffered_data_source_unittest.cc ('k') | media/blink/multibuffer_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/multibuffer_data_source.h
diff --git a/media/blink/multibuffer_data_source.h b/media/blink/multibuffer_data_source.h
index 749cdeda243ed1b33620b46d65818cbd94f4aa29..ce8b9e9e8eed3d6540a8a89d38f441827e6f288f 100644
--- a/media/blink/multibuffer_data_source.h
+++ b/media/blink/multibuffer_data_source.h
@@ -92,10 +92,12 @@ class MEDIA_BLINK_EXPORT MultibufferDataSource
// Returns true if the resource is local.
bool assume_fully_buffered() override;
- // Cancels any open network connections once reaching the deferred state for
- // preload=metadata, non-streaming resources that have not started playback.
- // If already deferred, connections will be immediately closed.
- void OnBufferingHaveEnough() override;
+ // Cancels any open network connections once reaching the deferred state. If
+ // |always_cancel| is false this is done only for preload=metadata, non-
+ // streaming resources that have not started playback. If |always_cancel| is
+ // true, all resource types will have their connections canceled. If already
+ // deferred, connections will be immediately closed.
+ void OnBufferingHaveEnough(bool always_cancel) override;
int64_t GetMemoryUsage() const override;
« no previous file with comments | « media/blink/buffered_data_source_unittest.cc ('k') | media/blink/multibuffer_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698