chromium/media/remoting/metrics.cc

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

#include "media/remoting/metrics.h"

#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "media/base/sample_rates.h"

namespace media {
namespace remoting {

namespace {

////////////////////////////////////////////////////////////////////////////////
// BEGIN: These were all borrowed from src/media/filters/ffmpeg_demuxer.cc.
// Some videos just want to watch the world burn, with a height of 0; cap the
// "infinite" aspect ratio resulting.
constexpr int kInfiniteRatio =;

// Common aspect ratios (multiplied by 100 and truncated) used for histogramming
// video sizes.  These were taken on 20111103 from
// http://wikipedia.org/wiki/Aspect_ratio_(image)#Previous_and_currently_used_aspect_ratios
constexpr int kCommonAspectRatios100[] =;

// END: Code borrowed from src/media/filter/ffmpeg_demuxer.cc.
////////////////////////////////////////////////////////////////////////////////

// Buckets for video width histograms.
constexpr int kVideoWidthBuckets[] =;

}  // namespace

SessionMetricsRecorder::SessionMetricsRecorder()
    :{}

SessionMetricsRecorder::~SessionMetricsRecorder() = default;

void SessionMetricsRecorder::WillStartSession(StartTrigger trigger) {}

void SessionMetricsRecorder::DidStartSession() {}

void SessionMetricsRecorder::StartSessionFailed(
    mojom::RemotingStartFailReason reason) {}

void SessionMetricsRecorder::WillStopSession(StopTrigger trigger) {}

void SessionMetricsRecorder::OnPipelineMetadataChanged(
    const PipelineMetadata& metadata) {}

void SessionMetricsRecorder::OnRemotePlaybackDisabled(bool disabled) {}

void SessionMetricsRecorder::RecordVideoPixelRateSupport(
    PixelRateSupport support) {}

void SessionMetricsRecorder::RecordCompatibility(
    RemotingCompatibility compatibility) {}

void SessionMetricsRecorder::RecordAudioConfiguration() {}

void SessionMetricsRecorder::RecordVideoConfiguration() {}

void SessionMetricsRecorder::RecordTrackConfiguration() {}

RendererMetricsRecorder::RendererMetricsRecorder()
    :{}

RendererMetricsRecorder::~RendererMetricsRecorder() = default;

void RendererMetricsRecorder::OnRendererInitialized() {}

void RendererMetricsRecorder::OnEvidenceOfPlayoutAtReceiver() {}

void RendererMetricsRecorder::OnAudioRateEstimate(int kilobits_per_second) {}

void RendererMetricsRecorder::OnVideoRateEstimate(int kilobits_per_second) {}

}  // namespace remoting
}  // namespace media