simple_net_log_parameters.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2013 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_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_
  5. #define NET_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_
  6. #include "net/log/net_log_with_source.h"
  7. // This file augments the functions in net/disk_cache/net_log_parameters.h to
  8. // include ones that deal with specifics of the Simple Cache backend.
  9. namespace disk_cache {
  10. class SimpleEntryImpl;
  11. // Logs the construction of a SimpleEntryImpl. Contains the entry's hash.
  12. // |entry| can't be nullptr.
  13. void NetLogSimpleEntryConstruction(const net::NetLogWithSource& net_log,
  14. net::NetLogEventType type,
  15. net::NetLogEventPhase phase,
  16. const SimpleEntryImpl* entry);
  17. // Logs a call to |CreateEntry| or |OpenEntry| on a SimpleEntryImpl. Contains
  18. // the |net_error| and, if successful, the entry's key. |entry| can't be
  19. // nullptr.
  20. void NetLogSimpleEntryCreation(const net::NetLogWithSource& net_log,
  21. net::NetLogEventType type,
  22. net::NetLogEventPhase phase,
  23. const SimpleEntryImpl* entry,
  24. int net_error);
  25. } // namespace disk_cache
  26. #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_