| 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_TRACK_ADAPTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_TRACK_ADAPTER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_TRACK_ADAPTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_TRACK_ADAPTER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "content/public/renderer/media_stream_video_sink.h" | 10 #include "content/public/renderer/media_stream_video_sink.h" |
| 11 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" | 11 #include "content/renderer/media/webrtc/webrtc_video_capturer_adapter.h" |
| 12 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 12 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
| 13 #include "third_party/webrtc/api/mediastreaminterface.h" | 13 #include "third_party/webrtc/api/mediastreaminterface.h" |
| 14 #include "third_party/webrtc/api/videosourceinterface.h" | |
| 15 | 14 |
| 16 namespace content { | 15 namespace content { |
| 17 | 16 |
| 18 class MediaStreamVideoTrack; | 17 class MediaStreamVideoTrack; |
| 19 class PeerConnectionDependencyFactory; | 18 class PeerConnectionDependencyFactory; |
| 20 | 19 |
| 21 // MediaStreamVideoWebRtcSink is an adapter between a | 20 // MediaStreamVideoWebRtcSink is an adapter between a |
| 22 // content::MediaStreamVideoTrack object and a webrtc VideoTrack that is | 21 // content::MediaStreamVideoTrack object and a webrtc VideoTrack that is |
| 23 // currently sent on a PeerConnection. | 22 // currently sent on a PeerConnection. |
| 24 // The responsibility of the class is to create and own a representation of a | 23 // The responsibility of the class is to create and own a representation of a |
| (...skipping 25 matching lines...) Expand all Loading... |
| 50 | 49 |
| 51 class WebRtcVideoSourceAdapter; | 50 class WebRtcVideoSourceAdapter; |
| 52 scoped_refptr<WebRtcVideoSourceAdapter> source_adapter_; | 51 scoped_refptr<WebRtcVideoSourceAdapter> source_adapter_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoWebRtcSink); | 53 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoWebRtcSink); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace content | 56 } // namespace content |
| 58 | 57 |
| 59 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_TRACK_ADAPTER_H_ | 58 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_VIDEO_TRACK_ADAPTER_H_ |
| OLD | NEW |