- add sources.
[platform/framework/web/crosswalk.git] / src / net / disk_cache / simple / simple_net_log_parameters.h
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
5 #ifndef NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_
6 #define NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_
7
8 #include "net/base/net_log.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 // 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);
21
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);
29
30 }  // namespace disk_cache
31
32 #endif  // NET_DISK_CACHE_SIMPLE_NET_LOG_PARAMETERS_H_