| 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..0716bc0ccc2b8da3d5512bd298019b2141d037bc
|
| --- /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.
|
| +// 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 "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.
|
| +class CONTENT_EXPORT MediaStreamVideoCaptureDeviceSource
|
| + : public MediaStreamVideoSource {
|
| + public:
|
| + MediaStreamVideoCaptureDeviceSource(const StreamDeviceInfo& device_info,
|
| + const SourceStopCallback& stop_callback);
|
| + virtual ~MediaStreamVideoCaptureDeviceSource();
|
| +
|
| + void Init(const blink::WebMediaConstraints& constraints,
|
| + MediaStreamDependencyFactory* factory);
|
| +
|
| + virtual void ApplyConstraints(const blink::WebMediaStreamTrack& track,
|
| + const blink::WebMediaConstraints& constraints,
|
| + const ConstraintsCallback& callback) OVERRIDE;
|
| +
|
| + private:
|
| + blink::WebMediaConstraints current_constraints_;
|
| + DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCaptureDeviceSource);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_
|
|
|