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

Unified Diff: webkit/glue/webmediaplayer_proxy.h

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and minor fix 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
Index: webkit/glue/webmediaplayer_proxy.h
diff --git a/webkit/glue/webmediaplayer_proxy.h b/webkit/glue/webmediaplayer_proxy.h
index 9fd3d25e9f919ba80612d7d816a8c68fd33ddcec..158e2dbf3d13babbd36cbecec0cf17934bb8afc7 100644
--- a/webkit/glue/webmediaplayer_proxy.h
+++ b/webkit/glue/webmediaplayer_proxy.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
+#include "media/base/pipeline.h"
#include "media/filters/chunk_demuxer_client.h"
#include "webkit/glue/media/web_data_source.h"
@@ -52,7 +53,7 @@ class WebMediaPlayerProxy
void PipelineSeekCallback(media::PipelineStatus status);
void PipelineEndedCallback(media::PipelineStatus status);
void PipelineErrorCallback(media::PipelineStatus error);
- void NetworkEventCallback(bool network_activity);
+ void NetworkEventCallback(media::NetworkEvent type);
// ChunkDemuxerClient implementation.
virtual void DemuxerOpened(media::ChunkDemuxer* demuxer) OVERRIDE;
@@ -94,7 +95,7 @@ class WebMediaPlayerProxy
void PipelineErrorTask(media::PipelineStatus error);
// Notify |webmediaplayer_| that there's a network event.
- void NetworkEventTask(bool network_activity);
+ void NetworkEventTask(media::NetworkEvent type);
// The render message loop where WebKit lives.
MessageLoop* render_loop_;

Powered by Google App Engine
This is Rietveld 408576698