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 // VideoCaptureHost serves video capture related messages from | 5 // VideoCaptureHost serves video capture related messages from |
6 // VideoCaptureMessageFilter which lives inside the render process. | 6 // VideoCaptureMessageFilter which lives inside the render process. |
7 // | 7 // |
8 // This class is owned by RenderProcessHostImpl, and instantiated on UI | 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI |
9 // thread, but all other operations and method calls happen on IO thread. | 9 // thread, but all other operations and method calls happen on IO thread. |
10 // | 10 // |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 const base::WeakPtr<VideoCaptureController>& controller); | 118 const base::WeakPtr<VideoCaptureController>& controller); |
119 | 119 |
120 // IPC message: Stop capture on device referenced by |device_id|. | 120 // IPC message: Stop capture on device referenced by |device_id|. |
121 void OnStopCapture(int device_id); | 121 void OnStopCapture(int device_id); |
122 | 122 |
123 // IPC message: Pause capture on device referenced by |device_id|. | 123 // IPC message: Pause capture on device referenced by |device_id|. |
124 void OnPauseCapture(int device_id); | 124 void OnPauseCapture(int device_id); |
125 | 125 |
126 // IPC message: Receive an empty buffer from renderer. Send it to device | 126 // IPC message: Receive an empty buffer from renderer. Send it to device |
127 // referenced by |device_id|. | 127 // referenced by |device_id|. |
128 void OnReceiveEmptyBuffer(int device_id, int buffer_id, uint32 sync_point); | 128 void OnReceiveEmptyBuffer(int device_id, |
| 129 int buffer_id, |
| 130 const std::vector<uint32>& sync_points); |
129 | 131 |
130 // IPC message: Get supported formats referenced by |capture_session_id|. | 132 // IPC message: Get supported formats referenced by |capture_session_id|. |
131 // |device_id| is needed for message back-routing purposes. | 133 // |device_id| is needed for message back-routing purposes. |
132 void OnGetDeviceSupportedFormats( | 134 void OnGetDeviceSupportedFormats( |
133 int device_id, | 135 int device_id, |
134 media::VideoCaptureSessionId capture_session_id); | 136 media::VideoCaptureSessionId capture_session_id); |
135 | 137 |
136 // IPC message: Get a device's currently in use format(s), referenced by | 138 // IPC message: Get a device's currently in use format(s), referenced by |
137 // |capture_session_id|. |device_id| is needed for message back-routing | 139 // |capture_session_id|. |device_id| is needed for message back-routing |
138 // purposes. | 140 // purposes. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // is connected. An entry in this map holds a null controller while it is in | 185 // is connected. An entry in this map holds a null controller while it is in |
184 // the process of starting. | 186 // the process of starting. |
185 EntryMap entries_; | 187 EntryMap entries_; |
186 | 188 |
187 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 189 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
188 }; | 190 }; |
189 | 191 |
190 } // namespace content | 192 } // namespace content |
191 | 193 |
192 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 194 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
OLD | NEW |