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 10 namespace disk_cache { 11 12 class EntryImpl; 13 14 // A collection of functions for histogram reporting about web fonts. 15 namespace web_fonts_histogram { 16 17 void RecordCacheMiss(const std::string& key); 18 void RecordEvictedEntry(const std::string& key); 19 void RecordCacheHit(EntryImpl* entry); 20 void 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