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

Side by Side Diff: content/renderer/media/media_stream_video_capture_device_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698