webfonts_histogram.h 621 B

123456789101112131415161718192021
  1. // Copyright 2019 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. #ifndef NET_HTTP_WEBFONTS_HISTOGRAM_H_
  5. #define NET_HTTP_WEBFONTS_HISTOGRAM_H_
  6. #include <string>
  7. #include "net/http/http_response_info.h"
  8. // A collection of functions for histogram reporting about web fonts.
  9. namespace net::web_fonts_histogram {
  10. NET_EXPORT void MaybeRecordCacheStatus(
  11. HttpResponseInfo::CacheEntryStatus cache_status,
  12. const std::string& key);
  13. } // namespace net::web_fonts_histogram
  14. #endif // NET_HTTP_WEBFONTS_HISTOGRAM_H_