chromium/components/access_code_cast/common/access_code_cast_metrics.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// static
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[] =;

// static
void AccessCodeCastMetrics::OnCastSessionResult(int route_request_result_code,
                                                AccessCodeCastCastMode mode) {}

// static
void AccessCodeCastMetrics::RecordAccessCodeNotFoundCount(int count) {}

// static
void AccessCodeCastMetrics::RecordAccessCodeRouteStarted(
    base::TimeDelta duration,
    bool is_saved,
    AccessCodeCastCastMode mode) {}

// static
void AccessCodeCastMetrics::RecordAddSinkResult(
    bool is_remembered,
    AccessCodeCastAddSinkResult result) {}

// static
void AccessCodeCastMetrics::RecordDialogCloseReason(
    AccessCodeCastDialogCloseReason reason) {}

// static
void AccessCodeCastMetrics::RecordDialogLoadTime(base::TimeDelta load_time) {}

// static
void AccessCodeCastMetrics::RecordDialogOpenLocation(
    AccessCodeCastDialogOpenLocation location) {}

// static
void AccessCodeCastMetrics::RecordMirroringPauseCount(int count) {}

// static
void AccessCodeCastMetrics::RecordMirroringPauseDuration(
    base::TimeDelta duration) {}

// static
void AccessCodeCastMetrics::RecordRememberedDevicesCount(int count) {}

// static
void AccessCodeCastMetrics::RecordRouteDuration(base::TimeDelta duration) {}

// static
void AccessCodeCastMetrics::RecordTabSwitchesCountInTabSession(int count) {}

// static
void AccessCodeCastMetrics::RecordTabSwitcherUsageCase(
    AccessCodeCastUiTabSwitcherUsage usage) {}

// static
void AccessCodeCastMetrics::RecordSavedDeviceConnectDuration(
    base::TimeDelta duration) {}

// static
void AccessCodeCastMetrics::RecordNewDeviceConnectDuration(
    base::TimeDelta duration) {}