Index: content/browser/renderer_host/media/video_capture_manager.h |
diff --git a/content/browser/renderer_host/media/video_capture_manager.h b/content/browser/renderer_host/media/video_capture_manager.h |
index 35aee8eba235ef42c49b1fae80e37feb8b17652f..87d5d26fc5f5dbf109c0711dbb19bb1ef30b63c3 100644 |
--- a/content/browser/renderer_host/media/video_capture_manager.h |
+++ b/content/browser/renderer_host/media/video_capture_manager.h |
@@ -84,6 +84,16 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { |
VideoCaptureControllerID client_id, |
VideoCaptureControllerEventHandler* client_handler); |
+ // Called by VideoCaptureHost to remove |client_handler| when a device error |
+ // happened . If this is the last client of the device, the |controller| and |
mcasas
2014/04/24 11:09:47
No blank before '.'
jiayl
2014/04/24 18:11:13
Done.
|
+ // its VideoCaptureDevice may be destroyed. The client must not access |
+ // |controller| after calling this function. The MediaStreamProviderListener |
+ // will be notified. |
+ void AbortCaptureForDeviceError( |
+ VideoCaptureController* controller, |
+ VideoCaptureControllerID client_id, |
+ VideoCaptureControllerEventHandler* client_handler); |
+ |
// Retrieves all capture supported formats for a particular device. Returns |
// false if the |capture_session_id| is not found. The supported formats are |
// cached during device(s) enumeration, and depending on the underlying |
@@ -145,7 +155,7 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { |
// Find the DeviceEntry that owns a particular controller pointer. |
DeviceEntry* GetDeviceEntryForController( |
- const VideoCaptureController* controller); |
+ const VideoCaptureController* controller) const; |
bool IsOnDeviceThread() const; |