#include "extensions/browser/media_capture_util.h"
#include <string>
#include <utility>
#include "base/check.h"
#include "base/functional/callback.h"
#include "base/ranges/algorithm.h"
#include "content/public/browser/media_capture_devices.h"
#include "extensions/common/extension.h"
#include "extensions/common/permissions/permissions_data.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-shared.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom.h"
MediaStreamDevice;
MediaStreamDevices;
MediaCaptureDevices;
MediaStreamUI;
APIPermissionID;
namespace extensions {
namespace {
const MediaStreamDevice* GetRequestedDeviceOrDefault(
const MediaStreamDevices& devices,
const std::vector<std::string>& requested_device_ids) { … }
}
namespace media_capture_util {
void GrantMediaStreamRequest(content::WebContents* web_contents,
const content::MediaStreamRequest& request,
content::MediaResponseCallback callback,
const Extension* extension) { … }
void VerifyMediaAccessPermission(blink::mojom::MediaStreamType type,
const Extension* extension) { … }
}
}