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

Unified Diff: media/blink/multibuffer_data_source.h

Issue 1509663003: make multibuffer work with layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_cache.integrate3
Patch Set: merged & formatted Created 5 years 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') | 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 c47932c0a263b344d2e6579aed2c89c8b37dfd1d..8cf3e54467a0c81317e50cae1fc892b80ed94730 100644
--- a/media/blink/multibuffer_data_source.h
+++ b/media/blink/multibuffer_data_source.h
@@ -142,7 +142,9 @@ class MEDIA_BLINK_EXPORT MultibufferDataSource
void ProgressCallback(int64 begin, int64 end);
// call downloading_cb_ if needed.
- void UpdateLoadingState();
+ // If |force_loading| is true, we call downloading_cb_ and tell it that
+ // we are currently loading, regardless of what reader_->IsLoading() says.
+ void UpdateLoadingState(bool force_loading);
// Update |reader_|'s preload and buffer settings.
void UpdateBufferSizes();
@@ -162,6 +164,8 @@ class MEDIA_BLINK_EXPORT MultibufferDataSource
// i.e. range request is not supported.
bool streaming_;
+ // This is the loading state that we last reported to our owner through
+ // |downloading_cb_|.
bool loading_;
// The task runner of the render thread.
« no previous file with comments | « no previous file | media/blink/multibuffer_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698