| Index: content/renderer/media/capturer_media_stream_video_source.h
|
| diff --git a/content/renderer/media/capturer_media_stream_video_source.h b/content/renderer/media/capturer_media_stream_video_source.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8e9f4e991f94d760ad9180f21ff24fb00b256a42
|
| --- /dev/null
|
| +++ b/content/renderer/media/capturer_media_stream_video_source.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2014 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_CAPTURER_MEDIA_STREAM_VIDEO_SOURCE_H_
|
| +#define CONTENT_RENDERER_MEDIA_CAPTURER_MEDIA_STREAM_VIDEO_SOURCE_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "content/common/content_export.h"
|
| +#include "content/renderer/media/media_stream_video_source.h"
|
| +
|
| +namespace content {
|
| +
|
| +// CapturerMediaStreamVideoSource is an implementation of
|
| +// MediaStreamVideoSource used for local video capture such as USB cameras
|
| +// and tab 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 CapturerMediaStreamVideoSource
|
| + : public MediaStreamVideoSource {
|
| + public:
|
| + CapturerMediaStreamVideoSource(
|
| + const StreamDeviceInfo& device_info,
|
| + const SourceStoppedCallback& stop_callback,
|
| + MediaStreamDependencyFactory* factory);
|
| + virtual ~CapturerMediaStreamVideoSource();
|
| +
|
| + protected:
|
| + virtual void Init(const blink::WebMediaConstraints& constraints) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(CapturerMediaStreamVideoSource);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_CAPTURER_MEDIA_STREAM_VIDEO_SOURCE_H_
|
|
|