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_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Returns a callback that is used to stop capturing. Note that stopping | 66 // Returns a callback that is used to stop capturing. Note that stopping |
67 // video capture is not synchronous. Client should handle the case where | 67 // video capture is not synchronous. Client should handle the case where |
68 // callbacks are called after capturing is instructed to stop, typically | 68 // callbacks are called after capturing is instructed to stop, typically |
69 // by binding the passed callbacks on a WeakPtr. | 69 // by binding the passed callbacks on a WeakPtr. |
70 base::Closure StartCapture( | 70 base::Closure StartCapture( |
71 media::VideoCaptureSessionId id, | 71 media::VideoCaptureSessionId id, |
72 const media::VideoCaptureParams& params, | 72 const media::VideoCaptureParams& params, |
73 const VideoCaptureStateUpdateCB& state_update_cb, | 73 const VideoCaptureStateUpdateCB& state_update_cb, |
74 const VideoCaptureDeliverFrameCB& deliver_frame_cb); | 74 const VideoCaptureDeliverFrameCB& deliver_frame_cb); |
75 | 75 |
| 76 // Requests that the video capturer send a frame "soon" (e.g., to resolve |
| 77 // picture loss or quality issues). |
| 78 void RequestRefreshFrame(media::VideoCaptureSessionId id); |
| 79 |
76 // Get supported formats supported by the device for the given session | 80 // Get supported formats supported by the device for the given session |
77 // ID. |callback| will be called on the IO thread. | 81 // ID. |callback| will be called on the IO thread. |
78 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id, | 82 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id, |
79 const VideoCaptureDeviceFormatsCB& callback); | 83 const VideoCaptureDeviceFormatsCB& callback); |
80 | 84 |
81 // Get supported formats currently in use for the given session ID. | 85 // Get supported formats currently in use for the given session ID. |
82 // |callback| will be called on the IO thread. | 86 // |callback| will be called on the IO thread. |
83 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id, | 87 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id, |
84 const VideoCaptureDeviceFormatsCB& callback); | 88 const VideoCaptureDeviceFormatsCB& callback); |
85 | 89 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Bound to the render thread. | 125 // Bound to the render thread. |
122 // NOTE: Weak pointers must be invalidated before all other member variables. | 126 // NOTE: Weak pointers must be invalidated before all other member variables. |
123 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 127 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; |
124 | 128 |
125 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); |
126 }; | 130 }; |
127 | 131 |
128 } // namespace content | 132 } // namespace content |
129 | 133 |
130 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 134 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
OLD | NEW |