[MediaRouter] Update MR-2-Extension's PostMessage to return boolean.
[chromium-blink-merge.git] / chromecast / media / cma / pipeline / av_pipeline_client.h
blob692871603d792fa4b2f5c9ca8874e68b156c0ef8
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_AV_PIPELINE_CLIENT_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_CLIENT_H_
8 #include "base/callback.h"
9 #include "base/time/time.h"
10 #include "media/base/pipeline_status.h"
12 namespace chromecast {
13 namespace media {
15 struct AvPipelineClient {
16 typedef base::Callback<void(
17 base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
19 AvPipelineClient();
20 ~AvPipelineClient();
22 // End of stream notification.
23 base::Closure eos_cb;
25 // Asynchronous playback error notification.
26 ::media::PipelineStatusCB playback_error_cb;
28 // Callback used to report the playback statistics.
29 ::media::StatisticsCB statistics_cb;
32 } // namespace media
33 } // namespace chromecast
35 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_CLIENT_H_