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

Unified Diff: webkit/glue/webmediaplayer_impl.h

Issue 269002: Report stalled event correctly for <video> (Closed)
Patch Set: comments Created 11 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
Index: webkit/glue/webmediaplayer_impl.h
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h
index 93489834173c7fa7d71d19ff23fe4d1a3e6c5c5c..5c5de4496a3ce77490a062a1b6b46b5ac29f184e 100644
--- a/webkit/glue/webmediaplayer_impl.h
+++ b/webkit/glue/webmediaplayer_impl.h
@@ -108,6 +108,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
void PipelineSeekCallback();
void PipelineEndedCallback();
void PipelineErrorCallback();
+ void NetworkEventCallback();
private:
// Invoke |webmediaplayer_| to perform a repaint.
@@ -125,6 +126,9 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
// Notify |webmediaplayer_| that a pipeline error has been set.
void PipelineErrorTask();
+ // Notify |webmediaplayer_| that there's a network event.
+ void NetworkEventTask();
+
// The render message loop where WebKit lives.
MessageLoop* render_loop_;
WebMediaPlayerImpl* webmediaplayer_;
@@ -229,6 +233,8 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
void OnPipelineError();
+ void OnNetworkEvent();
+
private:
// Helpers that set the network/ready state and notifies the client if
// they've changed.

Powered by Google App Engine
This is Rietveld 408576698