Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Unified Diff: content/browser/renderer_host/media/video_capture_manager.h

Issue 248113003: Fix for closing the desktop sharing notification bar when the shared window is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698