#include "content/browser/cache_storage/cache_storage_histogram_utils.h"
#include <string_view>
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
namespace content {
blink::mojom::CacheStorageError MakeErrorStorage(ErrorStorageType type) { … }
namespace {
#define RETURN_LITERAL_STRING_PIECE(target) …
std::string_view UMAToName(CacheStorageSchedulerUMA uma_type) { … }
std::string_view ClientToName(CacheStorageSchedulerClient client_type) { … }
bool ShouldRecordOpUMA(CacheStorageSchedulerOp op_type) { … }
std::string_view OpToName(CacheStorageSchedulerOp op_type) { … }
std::string GetClientHistogramName(CacheStorageSchedulerUMA uma_type,
CacheStorageSchedulerClient client_type) { … }
}
void RecordCacheStorageSchedulerUMA(CacheStorageSchedulerUMA uma_type,
CacheStorageSchedulerClient client_type,
CacheStorageSchedulerOp op_type,
int value) { … }
void RecordCacheStorageSchedulerUMA(CacheStorageSchedulerUMA uma_type,
CacheStorageSchedulerClient client_type,
CacheStorageSchedulerOp op_type,
base::TimeDelta value) { … }
}