naiveproxy/net/disk_cache/blockfile/webfonts_histogram.h

27 lines
738 B
C
Raw Permalink Normal View History

2018-01-28 21:32:06 +03:00
// Copyright 2014 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.
#ifndef NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_
#define NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_
#include <string>
namespace disk_cache {
class EntryImpl;
// A collection of functions for histogram reporting about web fonts.
namespace web_fonts_histogram {
void RecordCacheMiss(const std::string& key);
void RecordEvictedEntry(const std::string& key);
void RecordCacheHit(EntryImpl* entry);
void RecordEviction(EntryImpl* entry);
} // namespace web_fonts_histogram
} // namespace disk_cache
#endif // NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_