]> git.ipfire.org Git - thirdparty/squid.git/blame - src/CollapsingHistory.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / CollapsingHistory.h
CommitLineData
d2a6dcba 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
d2a6dcba
EB
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
ff9d9458
FC
9#ifndef SQUID_SRC_COLLAPSINGHISTORY_H
10#define SQUID_SRC_COLLAPSINGHISTORY_H
d2a6dcba
EB
11
12/// collapsed forwarding history of a master transaction
13class CollapsingHistory
14{
15public:
16 /// whether at least one request was collapsed
17 bool collapsed() const { return revalidationCollapses || otherCollapses; }
18
19 /* These stats count collapsing decisions, regardless of their outcome. */
20
21 /// the total number of collapsed internal revalidation requests
22 int revalidationCollapses = 0;
23 /// the total number of all other (a.k.a. "classic") collapsed requests
24 int otherCollapses = 0;
25};
26
ff9d9458 27#endif /* SQUID_SRC_COLLAPSINGHISTORY_H */
d2a6dcba 28