| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 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_CAPTURER_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_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 // MediaStreamVideoCapturerSource is an implementation of |
| 15 // MediaStreamVideoSource used for local video capture such as USB cameras |
| 16 // and tab capture. |
| 17 // TODO(perkj): Currently, this use RTCVideoCapturer and a libjingle |
| 18 // implementation of webrt::MediaStreamSourceInterface. Implement this class |
| 19 // without using cricket::VideoCapturer and webrtc::VideoSourceInterface as |
| 20 // part of project Piranha Plant. |
| 21 class CONTENT_EXPORT MediaStreamVideoCapturerSource |
| 22 : public MediaStreamVideoSource { |
| 23 public: |
| 24 MediaStreamVideoCapturerSource( |
| 25 const StreamDeviceInfo& device_info, |
| 26 const SourceStoppedCallback& stop_callback, |
| 27 MediaStreamDependencyFactory* factory); |
| 28 virtual ~MediaStreamVideoCapturerSource(); |
| 29 |
| 30 protected: |
| 31 virtual void InitAdapter( |
| 32 const blink::WebMediaConstraints& constraints) OVERRIDE; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
| OLD | NEW |