blob: 70605877d9097347de8a2d914785ae90b95d4a1f [file] [log] [blame]
// Copyright 2017 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_OBSERVER_H_
#define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_OBSERVER_H_
namespace media {
class AudioDecoderConfig;
} // namespace media
namespace chromecast {
namespace media {
class MediaPipelineImpl;
// Don't use this
class MediaPipelineObserver {
private:
static void NotifyAudioPipelineInitialized(
MediaPipelineImpl* pipeline,
const ::media::AudioDecoderConfig& config);
static void NotifyPipelineDestroyed(MediaPipelineImpl* pipeline);
friend class MediaPipelineImpl;
public:
virtual void OnAudioPipelineInitialized(
MediaPipelineImpl* pipeline,
const ::media::AudioDecoderConfig& config) = 0;
virtual void OnPipelineDestroyed(MediaPipelineImpl* pipeline) = 0;
static void AddObserver(MediaPipelineObserver* observer);
static void RemoveObserver(MediaPipelineObserver* observer);
};
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_OBSERVER_H_