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

Unified Diff: media/blink/multibuffer_data_source.h

Issue 2445993003: Make sure we get at least one progress callback (Closed)
Patch Set: fix tests Created 4 years, 2 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 | « no previous file | media/blink/multibuffer_data_source.cc » ('j') | media/blink/multibuffer_data_source.cc » ('J')
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 f45e4fd08d3b295532d1cef07f1bb7fe4b1dc505..fed8e2dccadfc9c75e866859cf9f5a0b7442017b 100644
--- a/media/blink/multibuffer_data_source.h
+++ b/media/blink/multibuffer_data_source.h
@@ -162,12 +162,14 @@ class MEDIA_BLINK_EXPORT MultibufferDataSource : public DataSource {
// MultiBufferReader progress callback.
void ProgressCallback(int64_t begin, int64_t end);
+ // Update progress based on current reader state.
+ void UpdateProgress();
+
// call downloading_cb_ if needed.
// If |force_loading| is true, we call downloading_cb_ and tell it that
// we are currently loading, regardless of what reader_->IsLoading() says.
// Caller must hold |lock_|.
void UpdateLoadingState_Locked(bool force_loading);
- void UpdateLoadingState();
// Update |reader_|'s preload and buffer settings.
void UpdateBufferSizes();
« no previous file with comments | « no previous file | media/blink/multibuffer_data_source.cc » ('j') | media/blink/multibuffer_data_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698