Chromium Code Reviews| Index: content/renderer/media/rtc_video_decoder_factory_tv.h |
| diff --git a/content/renderer/media/rtc_video_decoder_factory_tv.h b/content/renderer/media/rtc_video_decoder_factory_tv.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9293e525258e49fcd87ddaf953b29dfe68ab65e8 |
| --- /dev/null |
| +++ b/content/renderer/media/rtc_video_decoder_factory_tv.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2013 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |
| +#define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/message_loop.h" |
| +#include "content/common/content_export.h" |
| +#include "media/base/demuxer.h" |
| +#include "third_party/libjingle/source/talk/media/webrtc/webrtcvideodecoderfactory.h" |
| + |
| +namespace webrtc { |
| +class VideoDecoder; |
| +} |
| + |
| +namespace content { |
| + |
| +class MediaStreamDependencyFactory; |
| + |
| +class CONTENT_EXPORT RTCVideoDecoderFactoryTv |
|
dwkang1
2013/05/06 09:43:38
Any reason to have a separate factory for TV? (We
wonsik
2013/05/06 12:28:43
This factory takes pointer to MediaStreamDependenc
|
| + : NON_EXPORTED_BASE(public cricket::WebRtcVideoDecoderFactory) { |
| + public: |
| + RTCVideoDecoderFactoryTv( |
| + const MediaStreamDependencyFactory* media_stream_dependency_factory); |
| + |
| + // cricket::WebRtcVideoDecoderFactory implementation. |
| + virtual webrtc::VideoDecoder* CreateVideoDecoder( |
| + webrtc::VideoCodecType type) OVERRIDE; |
| + virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) OVERRIDE; |
| + |
| + private: |
| + const MediaStreamDependencyFactory* const media_stream_dependency_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoderFactoryTv); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_FACTORY_TV_H_ |