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

Unified Diff: webkit/media/webmediaplayer_proxy.cc

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 a596ed8faec274814f72830acd6ddede38a715be..895a55b65123cb4d1df60a2f8edbdeae02f030b5 100644
--- a/webkit/media/webmediaplayer_proxy.cc
+++ b/webkit/media/webmediaplayer_proxy.cc
@@ -12,6 +12,7 @@
#include "webkit/media/web_video_renderer.h"
#include "webkit/media/webmediaplayer_impl.h"
+using media::NetworkEvent;
using media::PipelineStatus;
namespace webkit_media {
@@ -127,9 +128,9 @@ void WebMediaPlayerProxy::PipelineErrorCallback(PipelineStatus error) {
this, &WebMediaPlayerProxy::PipelineErrorTask, error));
}
-void WebMediaPlayerProxy::NetworkEventCallback(bool is_downloading_data) {
+void WebMediaPlayerProxy::NetworkEventCallback(NetworkEvent type) {
render_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &WebMediaPlayerProxy::NetworkEventTask, is_downloading_data));
+ this, &WebMediaPlayerProxy::NetworkEventTask, type));
}
void WebMediaPlayerProxy::AddDataSource(WebDataSource* data_source) {
@@ -173,10 +174,10 @@ void WebMediaPlayerProxy::PipelineErrorTask(PipelineStatus error) {
webmediaplayer_->OnPipelineError(error);
}
-void WebMediaPlayerProxy::NetworkEventTask(bool is_downloading_data) {
+void WebMediaPlayerProxy::NetworkEventTask(NetworkEvent type) {
DCHECK(MessageLoop::current() == render_loop_);
if (webmediaplayer_)
- webmediaplayer_->OnNetworkEvent(is_downloading_data);
+ webmediaplayer_->OnNetworkEvent(type);
}
void WebMediaPlayerProxy::GetCurrentFrame(
« 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