summaryrefslogtreecommitdiff
path: root/chromium/net/base/cache_metrics.h
blob: 6979e5dd512a12d3a778cef48a259ddad2154a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// 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_