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_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ |
7 | 7 |
8 #include "base/threading/thread_checker.h" | 8 #include "base/threading/thread_checker.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/renderer/media/media_stream_video_source.h" | 10 #include "content/renderer/media/media_stream_video_source.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 explicit MediaStreamRemoteVideoSource( | 24 explicit MediaStreamRemoteVideoSource( |
25 webrtc::VideoTrackInterface* remote_track); | 25 webrtc::VideoTrackInterface* remote_track); |
26 virtual ~MediaStreamRemoteVideoSource(); | 26 virtual ~MediaStreamRemoteVideoSource(); |
27 | 27 |
28 protected: | 28 protected: |
29 // Implements MediaStreamVideoSource. | 29 // Implements MediaStreamVideoSource. |
30 virtual void GetCurrentSupportedFormats( | 30 virtual void GetCurrentSupportedFormats( |
31 int max_requested_width, | 31 int max_requested_width, |
32 int max_requested_height, | 32 int max_requested_height, |
| 33 double max_requested_frame_rate, |
33 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; | 34 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; |
34 | 35 |
35 virtual void StartSourceImpl( | 36 virtual void StartSourceImpl( |
36 const media::VideoCaptureParams& params, | 37 const media::VideoCaptureParams& params, |
37 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; | 38 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; |
38 | 39 |
39 virtual void StopSourceImpl() OVERRIDE; | 40 virtual void StopSourceImpl() OVERRIDE; |
40 | 41 |
41 // Used by tests to test that a frame can be received and that the | 42 // Used by tests to test that a frame can be received and that the |
42 // MediaStreamRemoteVideoSource behaves as expected. | 43 // MediaStreamRemoteVideoSource behaves as expected. |
(...skipping 13 matching lines...) Expand all Loading... |
56 | 57 |
57 // Bound to the render thread. | 58 // Bound to the render thread. |
58 base::ThreadChecker thread_checker_; | 59 base::ThreadChecker thread_checker_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource); | 61 DISALLOW_COPY_AND_ASSIGN(MediaStreamRemoteVideoSource); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace content | 64 } // namespace content |
64 | 65 |
65 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ | 66 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MEDIA_STREAM_REMOTE_VIDEO_SOURCE_H_ |
OLD | NEW |