]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 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 | ||
b67e2c8c | 11 | #ifndef COMMONPOOL_H |
12 | #define COMMONPOOL_H | |
9a0a18de AJ |
13 | |
14 | #if USE_DELAY_POOLS | |
b67e2c8c | 15 | #include "CompositePoolNode.h" |
602d9612 | 16 | #include "SquidString.h" |
b67e2c8c | 17 | |
63be0a78 | 18 | /* |
19 | \ingroup DelayPoolsAPI | |
20 | * | |
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&); |
bb790702 | 31 | char const* theClassTypeLabel() const {return typeLabel.termedBuf();} |
62e76326 | 32 | |
b67e2c8c | 33 | protected: |
34 | CommonPool(); | |
30abd221 | 35 | String typeLabel; |
b67e2c8c | 36 | }; |
62e76326 | 37 | |
9a0a18de | 38 | #endif /* USE_DELAY_POOLS */ |
b67e2c8c | 39 | #endif /* COMMONPOOL_H */ |
40 |