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_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "media/base/video_capture_types.h" |
14 #include "media/base/video_frame.h" | 15 #include "media/base/video_frame.h" |
15 #include "media/video/capture/video_capture_types.h" | |
16 #include "third_party/libjingle/source/talk/media/base/videocapturer.h" | 16 #include "third_party/libjingle/source/talk/media/base/videocapturer.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is | 20 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is |
21 // used for VideoCapturing in libJingle and especially in PeerConnections. | 21 // used for VideoCapturing in libJingle and especially in PeerConnections. |
22 // The class is created and destroyed on the main render thread. | 22 // The class is created and destroyed on the main render thread. |
23 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. | 23 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. |
24 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of | 24 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of |
25 // webrtc::VideoSourceInterface in libJingle. The implementation of | 25 // webrtc::VideoSourceInterface in libJingle. The implementation of |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // cricket::VideoCapturer. | 59 // cricket::VideoCapturer. |
60 class MediaVideoFrameFactory; | 60 class MediaVideoFrameFactory; |
61 MediaVideoFrameFactory* frame_factory_; | 61 MediaVideoFrameFactory* frame_factory_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); | 63 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace content | 66 } // namespace content |
67 | 67 |
68 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 68 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
OLD | NEW |