[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / pipeline / media_pipeline_client.h
blob692263c6e6a3306bbfc170fb75ff8899f2d6f9ea
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_
8 #include "base/callback.h"
9 #include "base/time/time.h"
10 #include "media/base/buffering_state.h"
11 #include "media/base/pipeline_status.h"
13 namespace chromecast {
14 namespace media {
16 struct MediaPipelineClient {
17 typedef base::Callback<void(
18 base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
20 MediaPipelineClient();
21 ~MediaPipelineClient();
23 // Callback used to report a playback error as a ::media::PipelineStatus.
24 ::media::PipelineStatusCB error_cb;
26 // Callback used to report the latest playback time,
27 // as well as the maximum time available for rendering.
28 TimeUpdateCB time_update_cb;
30 // Callback used to report the buffering status.
31 ::media::BufferingStateCB buffering_state_cb;
34 } // namespace media
35 } // namespace chromecast
37 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_