diff options
Diffstat (limited to 'chromium/content/browser/renderer_host/media/video_capture_manager.h')
-rw-r--r-- | chromium/content/browser/renderer_host/media/video_capture_manager.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chromium/content/browser/renderer_host/media/video_capture_manager.h b/chromium/content/browser/renderer_host/media/video_capture_manager.h index cc30ec2a964..34a0e709b55 100644 --- a/chromium/content/browser/renderer_host/media/video_capture_manager.h +++ b/chromium/content/browser/renderer_host/media/video_capture_manager.h @@ -26,6 +26,7 @@ #include "content/browser/renderer_host/media/video_capture_device_launch_observer.h" #include "content/browser/renderer_host/media/video_capture_provider.h" #include "content/common/content_export.h" +#include "content/public/browser/global_routing_id.h" #include "content/public/browser/screenlock_observer.h" #include "media/base/video_facing.h" #include "media/capture/video/video_capture_device.h" @@ -178,6 +179,12 @@ class CONTENT_EXPORT VideoCaptureManager blink::mojom::MediaStreamType stream_type, const std::string& device_id); + // If there is a capture session associated with |session_id|, and the + // captured entity a tab, return the GlobalRoutingID of the captured tab. + // Otherwise, returns an empty GlobalRoutingID. + GlobalRoutingID GetGlobalRoutingID( + const base::UnguessableToken& session_id) const; + // Sets the platform-dependent window ID for the desktop capture notification // UI for the given session. void SetDesktopCaptureWindowId(const media::VideoCaptureSessionId& session_id, @@ -251,7 +258,7 @@ class CONTENT_EXPORT VideoCaptureManager // |device_id| and |type| (if it is already opened), by its |controller| or by // its |serial_id|. In all cases, if not found, nullptr is returned. VideoCaptureController* LookupControllerBySessionId( - const base::UnguessableToken& session_id); + const base::UnguessableToken& session_id) const; VideoCaptureController* LookupControllerByMediaTypeAndDeviceId( blink::mojom::MediaStreamType type, const std::string& device_id) const; |