| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..692263c6e6a3306bbfc170fb75ff8899f2d6f9ea
|
| --- /dev/null
|
| +++ b/chromecast/media/cma/pipeline/media_pipeline_client.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_
|
| +#define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_
|
| +
|
| +#include "base/callback.h"
|
| +#include "base/time/time.h"
|
| +#include "media/base/buffering_state.h"
|
| +#include "media/base/pipeline_status.h"
|
| +
|
| +namespace chromecast {
|
| +namespace media {
|
| +
|
| +struct MediaPipelineClient {
|
| + typedef base::Callback<void(
|
| + base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
|
| +
|
| + MediaPipelineClient();
|
| + ~MediaPipelineClient();
|
| +
|
| + // 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;
|
| +};
|
| +
|
| +} // namespace media
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_CLIENT_H_
|
|
|