]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
26ac0430 | 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_DELAYIDCOMPOSITE_H |
12 | #define SQUID_SRC_DELAYIDCOMPOSITE_H | |
9a0a18de AJ |
13 | |
14 | #if USE_DELAY_POOLS | |
a928fdfd | 15 | #include "base/forward.h" |
8bf217bd | 16 | #include "base/RefCount.h" |
582c2af2 | 17 | #include "fatal.h" |
b67e2c8c | 18 | |
62e76326 | 19 | class DelayIdComposite : public RefCountable |
20 | { | |
21 | ||
b67e2c8c | 22 | public: |
23 | typedef RefCount<DelayIdComposite> Pointer; | |
337b9aa4 | 24 | inline ~DelayIdComposite() override {} |
62e76326 | 25 | |
b67e2c8c | 26 | virtual int bytesWanted (int min, int max) const =0; |
27 | virtual void bytesIn(int qty) = 0; | |
a46d2c0e | 28 | /* only aggregate and vector need this today */ |
a928fdfd | 29 | virtual void delayRead(const AsyncCallPointer &) { fatal("Not implemented"); } |
b67e2c8c | 30 | }; |
31 | ||
9a0a18de | 32 | #endif /* USE_DELAY_POOLS */ |
ff9d9458 | 33 | #endif /* SQUID_SRC_DELAYIDCOMPOSITE_H */ |
f53969cc | 34 |