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/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const scoped_refptr<VideoCapturerDelegate>& delegate); | 97 const scoped_refptr<VideoCapturerDelegate>& delegate); |
98 | 98 |
99 virtual ~MediaStreamVideoCapturerSource(); | 99 virtual ~MediaStreamVideoCapturerSource(); |
100 | 100 |
101 protected: | 101 protected: |
102 // Implements MediaStreamVideoSource. | 102 // Implements MediaStreamVideoSource. |
103 virtual void GetCurrentSupportedFormats( | 103 virtual void GetCurrentSupportedFormats( |
104 int max_requested_width, | 104 int max_requested_width, |
105 int max_requested_height, | 105 int max_requested_height, |
106 double max_requested_frame_rate, | 106 double max_requested_frame_rate, |
107 const VideoCaptureDeviceFormatsCB& callback) OVERRIDE; | 107 const VideoCaptureDeviceFormatsCB& callback) override; |
108 | 108 |
109 virtual void StartSourceImpl( | 109 virtual void StartSourceImpl( |
110 const media::VideoCaptureFormat& format, | 110 const media::VideoCaptureFormat& format, |
111 const VideoCaptureDeliverFrameCB& frame_callback) OVERRIDE; | 111 const VideoCaptureDeliverFrameCB& frame_callback) override; |
112 | 112 |
113 virtual void StopSourceImpl() OVERRIDE; | 113 virtual void StopSourceImpl() override; |
114 | 114 |
115 private: | 115 private: |
116 // The delegate that provides video frames. | 116 // The delegate that provides video frames. |
117 scoped_refptr<VideoCapturerDelegate> delegate_; | 117 scoped_refptr<VideoCapturerDelegate> delegate_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); | 119 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace content | 122 } // namespace content |
123 | 123 |
124 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ | 124 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |