| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_ |
| 6 #define NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_ |
| 7 | 7 |
| 8 #include "net/log/net_log_parameters_callback.h" | 8 #include "net/log/net_log_parameters_callback.h" |
| 9 | 9 |
| 10 // This file augments the functions in net/disk_cache/net_log_parameters.h to | 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. | 11 // include ones that deal with specifics of the Simple Cache backend. |
| 12 namespace disk_cache { | 12 namespace disk_cache { |
| 13 | 13 |
| 14 class SimpleEntryImpl; | 14 class SimpleEntryImpl; |
| 15 | 15 |
| 16 // Creates a NetLog callback that returns parameters for the construction of a | 16 // Creates a NetLog callback that returns parameters for the construction of a |
| 17 // SimpleEntryImpl. Contains the entry's hash. |entry| can't be NULL and must | 17 // SimpleEntryImpl. Contains the entry's hash. |entry| can't be NULL and must |
| 18 // outlive the returned callback. | 18 // outlive the returned callback. |
| 19 net::NetLogParametersCallback CreateNetLogSimpleEntryConstructionCallback( | 19 net::NetLogParametersCallback CreateNetLogSimpleEntryConstructionCallback( |
| 20 const SimpleEntryImpl* entry); | 20 const SimpleEntryImpl* entry); |
| 21 | 21 |
| 22 // Creates a NetLog callback that returns parameters for the result of calling | 22 // Creates a NetLog callback that returns parameters for the result of calling |
| 23 // |CreateEntry| or |OpenEntry| on a SimpleEntryImpl. Contains the |net_error| | 23 // |CreateEntry| or |OpenEntry| on a SimpleEntryImpl. Contains the |net_error| |
| 24 // and, if successful, the entry's key. |entry| can't be NULL and must outlive | 24 // and, if successful, the entry's key. |entry| can't be NULL and must outlive |
| 25 // the returned callback. | 25 // the returned callback. |
| 26 net::NetLogParametersCallback CreateNetLogSimpleEntryCreationCallback( | 26 net::NetLogParametersCallback CreateNetLogSimpleEntryCreationCallback( |
| 27 const SimpleEntryImpl* entry, | 27 const SimpleEntryImpl* entry, |
| 28 int net_error); | 28 int net_error); |
| 29 | 29 |
| 30 } // namespace disk_cache | 30 } // namespace disk_cache |
| 31 | 31 |
| 32 #endif // NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_ | 32 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_NET_LOG_PARAMETERS_H_ |
| OLD | NEW |