]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | /* |
1f7b830e | 2 | * Copyright (C) 1996-2025 The Squid Software Foundation and contributors |
b67e2c8c | 3 | * |
bbc27441 AJ |
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. | |
b67e2c8c | 7 | */ |
bbc27441 AJ |
8 | |
9 | /* DEBUG: section 77 Delay Pools */ | |
10 | ||
ff9d9458 FC |
11 | #ifndef SQUID_SRC_COMMONPOOL_H |
12 | #define SQUID_SRC_COMMONPOOL_H | |
9a0a18de AJ |
13 | |
14 | #if USE_DELAY_POOLS | |
b67e2c8c | 15 | #include "CompositePoolNode.h" |
1e9de476 | 16 | #include "sbuf/SBuf.h" |
b67e2c8c | 17 | |
63be0a78 | 18 | /* |
19 | \ingroup DelayPoolsAPI | |
20 | * | |
9837567d | 21 | * TODO: Next steps: make this a composite, and TypeLabel a composite method. |
26ac0430 | 22 | * Then we have a legacy composite which returns class 1/2/3, and new |
b67e2c8c | 23 | * composites which return a descriptor of some sort. |
24 | */ | |
62e76326 | 25 | class CommonPool |
26 | { | |
b58d2a22 | 27 | MEMPROXY_CLASS(CommonPool); |
62e76326 | 28 | |
29 | public: | |
b67e2c8c | 30 | static CommonPool *Factory (unsigned char _class, CompositePoolNode::Pointer&); |
1e9de476 | 31 | const SBuf &classTypeLabel() const { return typeLabel; } |
62e76326 | 32 | |
b67e2c8c | 33 | protected: |
34 | CommonPool(); | |
1e9de476 | 35 | SBuf typeLabel; |
b67e2c8c | 36 | }; |
62e76326 | 37 | |
9a0a18de | 38 | #endif /* USE_DELAY_POOLS */ |
ff9d9458 | 39 | #endif /* SQUID_SRC_COMMONPOOL_H */ |
b67e2c8c | 40 |