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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "media/base/video_capture_types.h" | 16 #include "media/base/video_capture_types.h" |
17 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
18 #include "third_party/libjingle/source/talk/media/base/videocapturer.h" | 18 #include "third_party/webrtc/media/base/videocapturer.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is | 22 // WebRtcVideoCapturerAdapter implements a simple cricket::VideoCapturer that is |
23 // used for VideoCapturing in libJingle and especially in PeerConnections. | 23 // used for VideoCapturing in libJingle and especially in PeerConnections. |
24 // The class is created and destroyed on the main render thread. | 24 // The class is created and destroyed on the main render thread. |
25 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. | 25 // PeerConnection access cricket::VideoCapturer from a libJingle worker thread. |
26 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of | 26 // An instance of WebRtcVideoCapturerAdapter is owned by an instance of |
27 // webrtc::VideoSourceInterface in libJingle. The implementation of | 27 // webrtc::VideoSourceInterface in libJingle. The implementation of |
28 // webrtc::VideoSourceInterface guarantees that this object is not deleted | 28 // webrtc::VideoSourceInterface guarantees that this object is not deleted |
(...skipping 28 matching lines...) Expand all Loading... |
57 bool running_; | 57 bool running_; |
58 | 58 |
59 class MediaVideoFrameFactory; | 59 class MediaVideoFrameFactory; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); | 61 DISALLOW_COPY_AND_ASSIGN(WebRtcVideoCapturerAdapter); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ | 66 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_CAPTURER_ADAPTER_H_ |
OLD | NEW |