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