naiveproxy/src/net/base/cache_metrics.h

28 lines
787 B
C
Raw Normal View History

2024-01-19 10:08:33 +08:00
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains definitions for media caching metrics.
#ifndef NET_BASE_CACHE_METRICS_H_
#define NET_BASE_CACHE_METRICS_H_
#include "base/metrics/histogram_macros.h"
#include "net/base/net_export.h"
namespace net {
// UMA histogram enumerations for indicating whether media caching
// is enabled or disabled.
enum class MediaResponseCacheType {
kMediaResponseTransactionCacheDisabled = 0,
kMediaResponseTransactionCacheEnabled = 1,
kMaxValue = kMediaResponseTransactionCacheEnabled
};
NET_EXPORT void MediaCacheStatusResponseHistogram(MediaResponseCacheType type);
} // namespace net
#endif // NET_BASE_CACHE_METRICS_H_