#ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_FACTORY_H_
#define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_FACTORY_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoencoderfactory.h"
namespace media {
class GpuVideoAcceleratorFactories;
}
namespace content {
class CONTENT_EXPORT RTCVideoEncoderFactory
: NON_EXPORTED_BASE(public cricket::WebRtcVideoEncoderFactory) {
public:
explicit RTCVideoEncoderFactory(
const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories);
virtual ~RTCVideoEncoderFactory();
virtual webrtc::VideoEncoder* CreateVideoEncoder(
webrtc::VideoCodecType type) OVERRIDE;
virtual void AddObserver(Observer* observer) OVERRIDE;
virtual void RemoveObserver(Observer* observer) OVERRIDE;
virtual const std::vector<VideoCodec>& codecs() const OVERRIDE;
virtual void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) OVERRIDE;
private:
const scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_;
std::vector<VideoCodec> codecs_;
DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoderFactory);
};
}
#endif