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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 76 // Requests that the video capturer send a frame "soon" (e.g., to resolve |
77 // picture loss or quality issues). | 77 // picture loss or quality issues). |
78 void RequestRefreshFrame(media::VideoCaptureSessionId id); | 78 void RequestRefreshFrame(media::VideoCaptureSessionId id); |
79 | 79 |
| 80 // Set if the video capturing link is secure. |
| 81 void SetCapturingLinkSecured(media::VideoCaptureSessionId id, bool is_secure); |
| 82 |
80 // Get supported formats supported by the device for the given session | 83 // Get supported formats supported by the device for the given session |
81 // ID. |callback| will be called on the IO thread. | 84 // ID. |callback| will be called on the IO thread. |
82 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id, | 85 void GetDeviceSupportedFormats(media::VideoCaptureSessionId id, |
83 const VideoCaptureDeviceFormatsCB& callback); | 86 const VideoCaptureDeviceFormatsCB& callback); |
84 | 87 |
85 // Get supported formats currently in use for the given session ID. | 88 // Get supported formats currently in use for the given session ID. |
86 // |callback| will be called on the IO thread. | 89 // |callback| will be called on the IO thread. |
87 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id, | 90 void GetDeviceFormatsInUse(media::VideoCaptureSessionId id, |
88 const VideoCaptureDeviceFormatsCB& callback); | 91 const VideoCaptureDeviceFormatsCB& callback); |
89 | 92 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Bound to the render thread. | 128 // Bound to the render thread. |
126 // NOTE: Weak pointers must be invalidated before all other member variables. | 129 // NOTE: Weak pointers must be invalidated before all other member variables. |
127 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; | 130 base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_; |
128 | 131 |
129 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); | 132 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); |
130 }; | 133 }; |
131 | 134 |
132 } // namespace content | 135 } // namespace content |
133 | 136 |
134 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ | 137 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ |
OLD | NEW |