#include "components/access_code_cast/common/access_code_cast_metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/notreached.h"
AccessCodeCastMetrics::AccessCodeCastMetrics() = default;
AccessCodeCastMetrics::~AccessCodeCastMetrics() = default;
const char AccessCodeCastMetrics::kHistogramAccessCodeNotFoundCount[] = …;
const char AccessCodeCastMetrics::kHistogramAddSinkResultNew[] = …;
const char AccessCodeCastMetrics::kHistogramAddSinkResultRemembered[] = …;
const char AccessCodeCastMetrics::kHistogramCastModeOnSuccess[] = …;
const char AccessCodeCastMetrics::kHistogramDeviceDurationOnRoute[] = …;
const char AccessCodeCastMetrics::kHistogramDialogCloseReason[] = …;
const char AccessCodeCastMetrics::kHistogramDialogLoadTime[] = …;
const char AccessCodeCastMetrics::kHistogramDialogOpenLocation[] = …;
const char AccessCodeCastMetrics::kHistogramFreezeCount[] = …;
const char AccessCodeCastMetrics::kHistogramFreezeDuration[] = …;
const char AccessCodeCastMetrics::kHistogramNewDeviceRouteCreationDuration[] = …;
const char AccessCodeCastMetrics::kHistogramRememberedDevicesCount[] = …;
const char AccessCodeCastMetrics::kHistogramRouteDiscoveryTypeAndSource[] = …;
const char AccessCodeCastMetrics::kHistogramRouteDuration[] = …;
const char AccessCodeCastMetrics::kHistogramSavedDeviceRouteCreationDuration[] = …;
const char AccessCodeCastMetrics::kHistogramUiTabSwitcherUsageType[] = …;
const char AccessCodeCastMetrics::kHistogramUiTabSwitchingCount[] = …;
void AccessCodeCastMetrics::OnCastSessionResult(int route_request_result_code,
AccessCodeCastCastMode mode) { … }
void AccessCodeCastMetrics::RecordAccessCodeNotFoundCount(int count) { … }
void AccessCodeCastMetrics::RecordAccessCodeRouteStarted(
base::TimeDelta duration,
bool is_saved,
AccessCodeCastCastMode mode) { … }
void AccessCodeCastMetrics::RecordAddSinkResult(
bool is_remembered,
AccessCodeCastAddSinkResult result) { … }
void AccessCodeCastMetrics::RecordDialogCloseReason(
AccessCodeCastDialogCloseReason reason) { … }
void AccessCodeCastMetrics::RecordDialogLoadTime(base::TimeDelta load_time) { … }
void AccessCodeCastMetrics::RecordDialogOpenLocation(
AccessCodeCastDialogOpenLocation location) { … }
void AccessCodeCastMetrics::RecordMirroringPauseCount(int count) { … }
void AccessCodeCastMetrics::RecordMirroringPauseDuration(
base::TimeDelta duration) { … }
void AccessCodeCastMetrics::RecordRememberedDevicesCount(int count) { … }
void AccessCodeCastMetrics::RecordRouteDuration(base::TimeDelta duration) { … }
void AccessCodeCastMetrics::RecordTabSwitchesCountInTabSession(int count) { … }
void AccessCodeCastMetrics::RecordTabSwitcherUsageCase(
AccessCodeCastUiTabSwitcherUsage usage) { … }
void AccessCodeCastMetrics::RecordSavedDeviceConnectDuration(
base::TimeDelta duration) { … }
void AccessCodeCastMetrics::RecordNewDeviceConnectDuration(
base::TimeDelta duration) { … }