1 // Copyright 2019 The Chromium Authors 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 7 #ifndef NET_BASE_CACHE_METRICS_H_ 8 #define NET_BASE_CACHE_METRICS_H_ 9 10 #include "base/metrics/histogram_macros.h" 11 #include "net/base/net_export.h" 12 13 namespace net { 14 15 // UMA histogram enumerations for indicating whether media caching 16 // is enabled or disabled. 17 enum class MediaResponseCacheType { 18 kMediaResponseTransactionCacheDisabled = 0, 19 kMediaResponseTransactionCacheEnabled = 1, 20 kMaxValue = kMediaResponseTransactionCacheEnabled 21 }; 22 23 NET_EXPORT void MediaCacheStatusResponseHistogram(MediaResponseCacheType type); 24 25 } // namespace net 26 27 #endif // NET_BASE_CACHE_METRICS_H_ 28