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

Unified Diff: webkit/media/webmediaplayer_proxy.cc

Issue 10854151: Allow transitioning to HAVE_METADATA before pipeline initialization completes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and address final comments Created 8 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
« no previous file with comments | « webkit/media/webmediaplayer_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webmediaplayer_proxy.cc
diff --git a/webkit/media/webmediaplayer_proxy.cc b/webkit/media/webmediaplayer_proxy.cc
index bac3d8b62bf3b1f94537a996f6e60e0177c8142c..acb59e858dbf8dbb820b91eaeb3a5ef3aef36424 100644
--- a/webkit/media/webmediaplayer_proxy.cc
+++ b/webkit/media/webmediaplayer_proxy.cc
@@ -89,12 +89,6 @@ void WebMediaPlayerProxy::Detach() {
frame_provider_ = NULL;
}
-void WebMediaPlayerProxy::PipelineInitializationCallback(
- PipelineStatus status) {
- render_loop_->PostTask(FROM_HERE, base::Bind(
- &WebMediaPlayerProxy::PipelineInitializationTask, this, status));
-}
-
void WebMediaPlayerProxy::PipelineSeekCallback(PipelineStatus status) {
render_loop_->PostTask(FROM_HERE, base::Bind(
&WebMediaPlayerProxy::PipelineSeekTask, this, status));
@@ -111,6 +105,12 @@ void WebMediaPlayerProxy::PipelineErrorCallback(PipelineStatus error) {
&WebMediaPlayerProxy::PipelineErrorTask, this, error));
}
+void WebMediaPlayerProxy::PipelineBufferingStateCallback(
+ media::Pipeline::BufferingState buffering_state) {
+ render_loop_->PostTask(FROM_HERE, base::Bind(
+ &WebMediaPlayerProxy::PipelineBufferingStateTask, this, buffering_state));
+}
+
void WebMediaPlayerProxy::RepaintTask() {
DCHECK(render_loop_->BelongsToCurrentThread());
{
@@ -123,12 +123,6 @@ void WebMediaPlayerProxy::RepaintTask() {
}
}
-void WebMediaPlayerProxy::PipelineInitializationTask(PipelineStatus status) {
- DCHECK(render_loop_->BelongsToCurrentThread());
- if (webmediaplayer_)
- webmediaplayer_->OnPipelineInitialize(status);
-}
-
void WebMediaPlayerProxy::PipelineSeekTask(PipelineStatus status) {
DCHECK(render_loop_->BelongsToCurrentThread());
if (webmediaplayer_)
@@ -147,6 +141,13 @@ void WebMediaPlayerProxy::PipelineErrorTask(PipelineStatus error) {
webmediaplayer_->OnPipelineError(error);
}
+void WebMediaPlayerProxy::PipelineBufferingStateTask(
+ media::Pipeline::BufferingState buffering_state) {
+ DCHECK(render_loop_->BelongsToCurrentThread());
+ if (webmediaplayer_)
+ webmediaplayer_->OnPipelineBufferingState(buffering_state);
+}
+
void WebMediaPlayerProxy::SetOpaqueTask(bool opaque) {
DCHECK(render_loop_->BelongsToCurrentThread());
if (webmediaplayer_)
« no previous file with comments | « webkit/media/webmediaplayer_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698