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_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 protected: | 90 protected: |
91 // Implements MediaStreamVideoSource. | 91 // Implements MediaStreamVideoSource. |
92 void GetCurrentSupportedFormats( | 92 void GetCurrentSupportedFormats( |
93 int max_requested_width, | 93 int max_requested_width, |
94 int max_requested_height, | 94 int max_requested_height, |
95 double max_requested_frame_rate, | 95 double max_requested_frame_rate, |
96 const VideoCaptureDeviceFormatsCB& callback) override; | 96 const VideoCaptureDeviceFormatsCB& callback) override; |
97 | 97 |
98 void StartSourceImpl( | 98 void StartSourceImpl( |
99 const media::VideoCaptureFormat& format, | 99 const media::VideoCaptureFormat& format, |
| 100 const blink::WebMediaConstraints& constraints, |
100 const VideoCaptureDeliverFrameCB& frame_callback) override; | 101 const VideoCaptureDeliverFrameCB& frame_callback) override; |
101 | 102 |
102 void StopSourceImpl() override; | 103 void StopSourceImpl() override; |
103 | 104 |
104 private: | 105 private: |
105 void OnStarted(bool result); | 106 void OnStarted(bool result); |
106 // The delegate that provides video frames. | 107 // The delegate that provides video frames. |
107 const scoped_ptr<media::VideoCapturerSource> delegate_; | 108 const scoped_ptr<media::VideoCapturerSource> delegate_; |
108 | 109 |
109 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); | 110 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
110 }; | 111 }; |
111 | 112 |
112 } // namespace content | 113 } // namespace content |
113 | 114 |
114 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 115 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |