Chromium Code Reviews| Index: content/renderer/media/media_stream_video_capture_device_source.h |
| diff --git a/content/renderer/media/media_stream_video_capture_device_source.h b/content/renderer/media/media_stream_video_capture_device_source.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2a354dc03e68130ac094e6953d51b8429fe40869 |
| --- /dev/null |
| +++ b/content/renderer/media/media_stream_video_capture_device_source.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
|
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
2014
perkj_chrome
2014/01/17 13:19:45
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |
| +#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |
| + |
| +#include <vector> |
|
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
not needed
perkj_chrome
2014/01/17 13:19:45
Done.
|
| + |
| +#include "base/compiler_specific.h" |
| +#include "content/common/content_export.h" |
| +#include "content/renderer/media/media_stream_video_source.h" |
| + |
| +namespace content { |
| + |
| +// MediaStreamVideoCaptureDeviceSource is an implementation of |
| +// MediaStreamVideoSource for local video capture. |
| +// TODO(perkj): Currently, this use RTCVideoCapturer and a libjingle |
| +// implementation of webrt::MediaStreamSourceInterface. Implement this class |
| +// without using cricket::VideoCapturer and webrtc::VideoSourceInterface as |
| +// part of project Piranha Plant. |
| +class CONTENT_EXPORT MediaStreamVideoCaptureDeviceSource |
|
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
Maybe CapturerMediaStreamVideoSource instead of Me
Jói
2014/01/17 08:57:08
+1
perkj_chrome
2014/01/17 13:19:45
Done.
|
| + : public MediaStreamVideoSource { |
| + public: |
| + MediaStreamVideoCaptureDeviceSource( |
| + const StreamDeviceInfo& device_info, |
| + const SourceStoppedCallback& stop_callback, |
| + MediaStreamDependencyFactory* factory); |
| + virtual ~MediaStreamVideoCaptureDeviceSource(); |
| + |
| + protected: |
| + virtual void Init(const blink::WebMediaConstraints& constraints) OVERRIDE; |
|
Ronghua Wu (Left Chromium)
2014/01/16 23:02:37
why protected? who's going to call?
perkj_chrome
2014/01/17 13:19:45
See new implementation of MediaStreamSource::AddTr
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |