cache_metrics.h 813 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. //
  5. // This file contains definitions for media caching metrics.
  6. #ifndef NET_BASE_CACHE_METRICS_H_
  7. #define NET_BASE_CACHE_METRICS_H_
  8. #include "base/metrics/histogram_macros.h"
  9. #include "net/base/net_export.h"
  10. namespace net {
  11. // UMA histogram enumerations for indicating whether media caching
  12. // is enabled or disabled.
  13. enum class MediaResponseCacheType {
  14. kMediaResponseTransactionCacheDisabled = 0,
  15. kMediaResponseTransactionCacheEnabled = 1,
  16. kMaxValue = kMediaResponseTransactionCacheEnabled
  17. };
  18. NET_EXPORT void MediaCacheStatusResponseHistogram(MediaResponseCacheType type);
  19. } // namespace net
  20. #endif // NET_BASE_CACHE_METRICS_H_