#ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_
#define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_PARAMS_H_
#include "base/callback.h"
#include "base/memory/ref_counted.h"
namespace media {
class AudioRendererSink;
}
namespace content {
class WebMediaPlayerParams {
public:
WebMediaPlayerParams(
const base::Callback<void(const base::Closure&)>& defer_load_cb,
const scoped_refptr<media::AudioRendererSink>& audio_renderer_sink);
~WebMediaPlayerParams();
base::Callback<void(const base::Closure&)> defer_load_cb() const {
return defer_load_cb_;
}
const scoped_refptr<media::AudioRendererSink>& audio_renderer_sink() const {
return audio_renderer_sink_;
}
private:
base::Callback<void(const base::Closure&)> defer_load_cb_;
scoped_refptr<media::AudioRendererSink> audio_renderer_sink_;
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
};
}
#endif