OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VIDEO_DESTINATION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 protected: | 50 protected: |
51 // MediaStreamVideoSource implementation. | 51 // MediaStreamVideoSource implementation. |
52 void GetCurrentSupportedFormats( | 52 void GetCurrentSupportedFormats( |
53 int max_requested_width, | 53 int max_requested_width, |
54 int max_requested_height, | 54 int max_requested_height, |
55 double max_requested_frame_rate, | 55 double max_requested_frame_rate, |
56 const VideoCaptureDeviceFormatsCB& callback) override; | 56 const VideoCaptureDeviceFormatsCB& callback) override; |
57 void StartSourceImpl( | 57 void StartSourceImpl( |
58 const media::VideoCaptureFormat& format, | 58 const media::VideoCaptureFormat& format, |
| 59 const blink::WebMediaConstraints& constraints, |
59 const VideoCaptureDeliverFrameCB& frame_callback) override; | 60 const VideoCaptureDeliverFrameCB& frame_callback) override; |
60 void StopSourceImpl() override; | 61 void StopSourceImpl() override; |
61 | 62 |
62 private: | 63 private: |
63 media::VideoFramePool frame_pool_; | 64 media::VideoFramePool frame_pool_; |
64 | 65 |
65 class FrameWriterDelegate; | 66 class FrameWriterDelegate; |
66 scoped_refptr<FrameWriterDelegate> delegate_; | 67 scoped_refptr<FrameWriterDelegate> delegate_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(PpFrameWriter); | 69 DISALLOW_COPY_AND_ASSIGN(PpFrameWriter); |
(...skipping 14 matching lines...) Expand all Loading... |
83 const std::string& url, | 84 const std::string& url, |
84 FrameWriterInterface** frame_writer); | 85 FrameWriterInterface** frame_writer); |
85 | 86 |
86 private: | 87 private: |
87 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); | 88 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ | 93 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_VIDEO_DESTINATION_HANDLER_H_ |
OLD | NEW |