blob: 1d980be28b91b4d77cd0f02dc5efb61b4702d996 [file] [log] [blame]
// 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.
#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(const MediaPipelineClient& other);
// 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