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

Unified Diff: chromecast/media/cma/pipeline/media_pipeline_client.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 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: chromecast/media/cma/pipeline/media_pipeline_client.h
diff --git a/chromecast/media/cma/pipeline/media_pipeline_client.h b/chromecast/media/cma/pipeline/media_pipeline_client.h
index 1918ef17f2fc050144f4706ce51e1ddc49b4459a..022374821f22d4ff310108295db10133be32ed6f 100644
--- a/chromecast/media/cma/pipeline/media_pipeline_client.h
+++ b/chromecast/media/cma/pipeline/media_pipeline_client.h
@@ -13,12 +13,35 @@
namespace chromecast {
namespace media {
-struct MediaPipelineClient {
+struct RendererMediaPipelineClient {
typedef base::Callback<void(
base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
- MediaPipelineClient();
- ~MediaPipelineClient();
+ RendererMediaPipelineClient();
+ ~RendererMediaPipelineClient();
+
+ // Callback used to report a playback error as a ::media::PipelineStatus.
+ ::media::PipelineStatusCB error_cb;
+
+ // Callback used to report the latest playback time,
+ // as well as the maximum time available for rendering.
+ TimeUpdateCB time_update_cb;
+
+ // Callback used to report the buffering status.
+ ::media::BufferingStateCB buffering_state_cb;
+
+ // Callback used to report the creation and destruction of
+ // MediaPipelineBackend
+ base::Closure pipeline_backend_created_cb;
+ base::Closure pipeline_backend_destroyed_cb;
+};
+
+struct BrowserMediaPipelineClient {
+ typedef base::Callback<
+ void(base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
+
+ BrowserMediaPipelineClient();
+ ~BrowserMediaPipelineClient();
// Callback used to report a playback error as a ::media::PipelineStatus.
::media::PipelineStatusCB error_cb;

Powered by Google App Engine
This is Rietveld 408576698