diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-22 09:53:13 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-22 10:23:17 +0000 |
commit | c5dbcb143405a38088d78b4b760d64aaff5157ab (patch) | |
tree | b37edca540b35f898e212bebfa6ded0806988122 /chromium/content/browser/renderer_host/media/video_capture_manager.h | |
parent | 774f54339e5db91f785733232d3950366db65d07 (diff) | |
download | qtwebengine-chromium-c5dbcb143405a38088d78b4b760d64aaff5157ab.tar.gz |
BASELINE: Update Chromium to 102.0.5005.137
Change-Id: I162cdc7f56760218868e000a4c8ea92573344036
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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; |