| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "content/renderer/media/media_stream_video_source.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 // MediaStreamVideoCaptureDeviceSource is an implementation of |
| 15 // MediaStreamVideoSource. |
| 16 class CONTENT_EXPORT MediaStreamVideoCaptureDeviceSource |
| 17 : public MediaStreamVideoSource { |
| 18 public: |
| 19 MediaStreamVideoCaptureDeviceSource(const StreamDeviceInfo& device_info, |
| 20 const SourceStopCallback& stop_callback); |
| 21 virtual ~MediaStreamVideoCaptureDeviceSource(); |
| 22 |
| 23 void Init(const blink::WebMediaConstraints& constraints, |
| 24 MediaStreamDependencyFactory* factory); |
| 25 |
| 26 virtual void ApplyConstraints(const blink::WebMediaStreamTrack& track, |
| 27 const blink::WebMediaConstraints& constraints, |
| 28 const ConstraintsCallback& callback) OVERRIDE; |
| 29 |
| 30 private: |
| 31 blink::WebMediaConstraints current_constraints_; |
| 32 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCaptureDeviceSource); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURE_DEVICE_SOURCE_H_ |
| OLD | NEW |