[media] Add MediaStreamManager::GetDevicesOpenedForFrame

This method allows the caller to get all open devices for the
given frame ID. It will be used to show the correct device in
the page info bubble.

Bug: b:297422934
Change-Id: Icf1f2bc947e6ae4a3840ad6d6f47accd9a7e888d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4976193
Commit-Queue: Bryant Chandler <[email protected]>
Reviewed-by: Guido Urdaneta <[email protected]>
Reviewed-by: John Abd-El-Malek <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1242159}
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 668d080..0daa926 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -44,6 +44,7 @@
 #include "third_party/blink/public/mojom/frame/remote_frame.mojom-forward.h"
 #include "third_party/blink/public/mojom/input/pointer_lock_result.mojom.h"
 #include "third_party/blink/public/mojom/media/capture_handle_config.mojom-forward.h"
+#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-forward.h"
 #include "third_party/blink/public/mojom/picture_in_picture_window_options/picture_in_picture_window_options.mojom.h"
 #include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
 #include "third_party/skia/include/core/SkColor.h"
@@ -1485,6 +1486,11 @@
   // current page.
   virtual void UpdateAttributionSupportRenderer() = 0;
 
+  // Return all currently streaming devices of `type` via `callback`.
+  virtual void GetMediaCaptureRawDeviceIdsOpened(
+      blink::mojom::MediaStreamType type,
+      base::OnceCallback<void(std::vector<std::string>)> callback) = 0;
+
  private:
   // This interface should only be implemented inside content.
   friend class WebContentsImpl;