#include "content/browser/renderer_host/media/media_stream_metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/notreached.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "url/origin.h"
namespace content::media_stream_metrics {
namespace {
enum class MediaStreamRequestResult2 { … };
MediaStreamRequestResult2 MapResultToResult2(
blink::mojom::MediaStreamRequestResult result) { … }
void RecordMediaDeviceUpdateResponseMetric(
blink::mojom::MediaStreamType video_type,
blink::mojom::MediaStreamRequestResult result) { … }
}
void RecordMediaStreamRequestResponseMetric(
blink::mojom::MediaStreamType video_type,
blink::MediaStreamRequestType request_type,
blink::mojom::MediaStreamRequestResult result) { … }
void RecordMediaStreamRequestResponseUKM(
ukm::SourceId ukm_source_id,
blink::mojom::MediaStreamType video_type,
blink::MediaStreamRequestType request_type,
blink::mojom::MediaStreamRequestResult result) { … }
}