#include "chrome/browser/media/extension_media_access_handler.h"
#include <utility>
#include "chrome/browser/media/webrtc/media_stream_device_permissions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/web_contents.h"
#include "extensions/common/extension.h"
#include "extensions/common/permissions/permissions_data.h"
APIPermissionID;
namespace {
bool IsMediaRequestAllowedForExtension(const extensions::Extension* extension) { … }
}
ExtensionMediaAccessHandler::ExtensionMediaAccessHandler() { … }
ExtensionMediaAccessHandler::~ExtensionMediaAccessHandler() { … }
bool ExtensionMediaAccessHandler::SupportsStreamType(
content::WebContents* web_contents,
const blink::mojom::MediaStreamType type,
const extensions::Extension* extension) { … }
bool ExtensionMediaAccessHandler::CheckMediaAccessPermission(
content::RenderFrameHost* render_frame_host,
const url::Origin& security_origin,
blink::mojom::MediaStreamType type,
const extensions::Extension* extension) { … }
void ExtensionMediaAccessHandler::HandleRequest(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
content::MediaResponseCallback callback,
const extensions::Extension* extension) { … }