Update V8 to version 4.7.53.
[chromium-blink-merge.git] / net / disk_cache / simple / simple_net_log_parameters.h
bloba8e46ecf2444e7e067d4ccc5f07c209dab2f611f
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.
5 #ifndef NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_
6 #define NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_
8 #include "net/log/net_log.h"
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 {
14 class SimpleEntryImpl;
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
18 // outlive the returned callback.
19 net::NetLog::ParametersCallback CreateNetLogSimpleEntryConstructionCallback(
20 const SimpleEntryImpl* entry);
22 // Creates a NetLog callback that returns parameters for the result of calling
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
25 // the returned callback.
26 net::NetLog::ParametersCallback CreateNetLogSimpleEntryCreationCallback(
27 const SimpleEntryImpl* entry,
28 int net_error);
30 } // namespace disk_cache
32 #endif // NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_