1// Copyright 2014 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#ifndef NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_ 6#define NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_ 7 8#include <string> 9 10namespace disk_cache { 11 12class EntryImpl; 13 14// A collection of functions for histogram reporting about web fonts. 15namespace web_fonts_histogram { 16 17void RecordCacheMiss(const std::string& key); 18void RecordEvictedEntry(const std::string& key); 19void RecordCacheHit(EntryImpl* entry); 20void RecordEviction(EntryImpl* entry); 21 22} // namespace web_fonts_histogram 23 24} // namespace disk_cache 25 26#endif // NET_DISK_CACHE_BLOCKFILE_WEBFONTS_HISTOGRAM_H_ 27