OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RTC_VIDEO_RENDERER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ |
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/media/video_capture.h" | 11 #include "content/common/media/video_capture.h" |
12 #include "content/public/renderer/media_stream_video_sink.h" | 12 #include "content/public/renderer/media_stream_video_sink.h" |
13 #include "content/renderer/media/video_frame_provider.h" | 13 #include "content/renderer/media/video_frame_provider.h" |
14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 14 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class MessageLoopProxy; | 18 class MessageLoopProxy; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 // RTCVideoRenderer is a VideoFrameProvider designed for rendering | 23 // RTCVideoRenderer is a VideoFrameProvider designed for rendering |
24 // Video MediaStreamTracks, | 24 // Video MediaStreamTracks, |
25 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack | 25 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 gfx::Size frame_size_; | 71 gfx::Size frame_size_; |
72 blink::WebMediaStreamTrack video_track_; | 72 blink::WebMediaStreamTrack video_track_; |
73 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_; | 73 base::WeakPtrFactory<RTCVideoRenderer> weak_factory_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer); | 75 DISALLOW_COPY_AND_ASSIGN(RTCVideoRenderer); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
79 | 79 |
80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ | 80 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_RENDERER_H_ |
OLD | NEW |