OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/gtest_prod_util.h" | |
10 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
11 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
12 #include "content/common/media/video_capture.h" | 11 #include "content/common/media/video_capture.h" |
13 #include "content/renderer/media/media_stream_video_source.h" | 12 #include "content/renderer/media/media_stream_video_source.h" |
14 | 13 |
15 namespace media{ | 14 namespace media { |
16 class VideoCapturerSource; | 15 class VideoCapturerSource; |
17 } // namespace media | 16 } // namespace media |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 | 19 |
21 // Representation of a video stream coming from a camera, owned by Blink as | 20 // Representation of a video stream coming from a camera, owned by Blink as |
22 // WebMediaStreamSource. Objects of this class are created and live on main | 21 // WebMediaStreamSource. Objects of this class are created and live on main |
23 // Render thread. Objects can be constructed either by indicating a |device| to | 22 // Render thread. Objects can be constructed either by indicating a |device| to |
24 // look for, or by plugging in a |source| constructed elsewhere. | 23 // look for, or by plugging in a |source| constructed elsewhere. |
25 class CONTENT_EXPORT MediaStreamVideoCapturerSource | 24 class CONTENT_EXPORT MediaStreamVideoCapturerSource |
(...skipping 27 matching lines...) Expand all Loading... |
53 | 52 |
54 // The source that provides video frames. | 53 // The source that provides video frames. |
55 const scoped_ptr<media::VideoCapturerSource> source_; | 54 const scoped_ptr<media::VideoCapturerSource> source_; |
56 | 55 |
57 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); | 56 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
58 }; | 57 }; |
59 | 58 |
60 } // namespace content | 59 } // namespace content |
61 | 60 |
62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 61 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |