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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« 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