Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: content/renderer/media/media_stream_video_capturer_source.h

Issue 131763002: Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_video_capturer_source.h
diff --git a/content/renderer/media/media_stream_video_capturer_source.h b/content/renderer/media/media_stream_video_capturer_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..2cd46bc2d525cb1cc1887fcd4890e4d98d41bacd
--- /dev/null
+++ b/content/renderer/media/media_stream_video_capturer_source.h
@@ -0,0 +1,40 @@
+// 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_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
+#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+#include "content/renderer/media/media_stream_video_source.h"
+
+namespace content {
+
+// MediaStreamVideoCapturerSource 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 MediaStreamVideoCapturerSource
+ : public MediaStreamVideoSource {
+ public:
+ MediaStreamVideoCapturerSource(
+ const StreamDeviceInfo& device_info,
+ const SourceStoppedCallback& stop_callback,
+ MediaStreamDependencyFactory* factory);
+ virtual ~MediaStreamVideoCapturerSource();
+
+ protected:
+ virtual void InitAdapter(
+ const blink::WebMediaConstraints& constraints) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
« no previous file with comments | « content/renderer/media/media_stream_source_observer.cc ('k') | content/renderer/media/media_stream_video_capturer_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698